Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit fd021ce

Browse files
sebromeroMatteo-it
andauthored
Add config to ignore _unlisted folders (#1961)
* Add config to ingore _unlisted folders * update content-lint dep to 1.2.0 --------- Co-authored-by: Matteo Marsala <matteo.marsala92@gmail.com>
1 parent efe5356 commit fd021ce

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

‎scripts/validation/config/config-generic.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,7 @@ verbose: true
2222
debug: false
2323

2424
# Defines rules for what links not to check. Usually relative links should not be checked.
25-
brokenLinkExcludePatterns: [^./, ^../, ^#, ^chrome://, localhost , ^assets/, ^images/]
25+
brokenLinkExcludePatterns: [^./, ^../, ^#, ^chrome://, localhost , ^assets/, ^images/]
26+
27+
# Define a list of foldernames that get ignored during folder name validation
28+
folderNameIgnoreList: ["_unlisted"]

‎scripts/validation/package-lock.json‎

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎scripts/validation/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
"author": "Sebastian Romero",
1111
"license": "ISC",
1212
"dependencies": {
13-
"content-lint": "^1.1.3"
13+
"content-lint": "^1.2.0"
1414
}
1515
}

‎scripts/validation/validate.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if(configManager.options.checkBrokenLinks){
5757
};
5858

5959
// Verify if articles contain discouraged foldernames (which translate into URLs)
60-
validator.addValidation(allArticles, validateFolderName);
60+
validator.addValidation(allArticles, validateFolderName,configManager.getConfig("generic").folderNameIgnoreList);
6161

6262
// Verify that all files in the assets folder are referenced
6363
validator.addValidation(allArticles, validateReferencedAssets);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /