mirror of
https://github.com/sass/sass.git
synced 2024-09-21 10:37:22 +00:00
Style changes
This commit is contained in:
parent
bca5235eb4
commit
9dbf71b8fa
@ -6,4 +6,4 @@ install:
|
|||||||
- npm ci
|
- npm ci
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- npm test
|
- npm test
|
||||||
|
@ -22,16 +22,13 @@ files.forEach(function (file) {
|
|||||||
|
|
||||||
console.log('Reading: ' + file)
|
console.log('Reading: ' + file)
|
||||||
|
|
||||||
var markdownToc = toc(markdown, {
|
// Get a list of all headers so we can verify intra-document links.
|
||||||
filter: (string, _, __) => string.indexOf('Table of Contents') === -1
|
var markdownToc = toc(markdown).content
|
||||||
}).content
|
|
||||||
|
|
||||||
results.forEach(function (result) {
|
results.forEach(function (result) {
|
||||||
if (result.link.match(/^#/)) {
|
if (result.link.match(/^#/) && !markdownToc.includes(result.link)) {
|
||||||
if (!markdownToc.includes(result.link)) {
|
result.status = 'dead'
|
||||||
result.status = 'dead'
|
result.statusCode = 0
|
||||||
result.statusCode = 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result.status === 'dead') {
|
if (result.status === 'dead') {
|
||||||
|
Loading…
Reference in New Issue
Block a user