Skip to content

Add config to ignore _unlisted folders #1961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/validation/config/config-generic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ verbose: true
debug: false

# Defines rules for what links not to check. Usually relative links should not be checked.
brokenLinkExcludePatterns: [^./, ^../, ^#, ^chrome://, localhost , ^assets/, ^images/]
brokenLinkExcludePatterns: [^./, ^../, ^#, ^chrome://, localhost , ^assets/, ^images/]

# Define a list of foldernames that get ignored during folder name validation
folderNameIgnoreList: ["_unlisted"]
14 changes: 7 additions & 7 deletions scripts/validation/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"author": "Sebastian Romero",
"license": "ISC",
"dependencies": {
"content-lint": "^1.1.3"
"content-lint": "^1.2.0"
}
}
2 changes: 1 addition & 1 deletion scripts/validation/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if(configManager.options.checkBrokenLinks){
};

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

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