Skip to content

Commit

Permalink
COMDOX-156: Add a check for external links on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
dshevtsov committed Nov 21, 2023
1 parent ae7eea4 commit 66ecde2
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 10 deletions.
21 changes: 15 additions & 6 deletions .remarkrc.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import remarkValidateLinks from 'remark-validate-links';
import remarkFrontmatter from 'remark-frontmatter';
import remarkLintFrontmatterSchema from 'remark-lint-frontmatter-schema';
import remarkValidateLinks from "remark-validate-links";
import remarkFrontmatter from "remark-frontmatter";
import remarkLintFrontmatterSchema from "remark-lint-frontmatter-schema";
import remarkLintNoDeadUrls from "remark-lint-no-dead-urls";

const remarkConfig = {
plugins: [
Expand All @@ -11,13 +12,21 @@ const remarkConfig = {
{
schemas: {
/* One schema for many files */
'./.github/linters/metadata.schema.yml': [
"./.github/linters/metadata.schema.yml": [
/* Support glob patterns ———v */
'./src/pages/**/*.md',
"./src/pages/**/*.md",
],
},
},
],
[
remarkLintNoDeadUrls,
{
skipUrlPatterns: [
"https://www.php.net"
]
}
],
],
};
export default remarkConfig;
export default remarkConfig;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"remark-cli": "^10.0.1",
"remark-frontmatter": "4.0.1",
"remark-lint-frontmatter-schema": "^3.15.2",
"remark-lint-no-dead-urls": "^1.1.0",
"remark-validate-links": "^11.0.2"
},
"scripts": {
Expand Down
Loading

0 comments on commit 66ecde2

Please sign in to comment.