forked from apache/apisix-ingress-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ling Samuel <[email protected]>
- Loading branch information
1 parent
d7128a1
commit d537ddc
Showing
5 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
Submodule markdown-link-check
added at
9710f0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,3 +91,23 @@ jobs: | |
node-version: '12.x' | ||
- run: npm install -g [email protected] | ||
- run: markdownlint '**/*.md' --ignore node_modules --ignore CHANGELOG.md | ||
markdown-link-check: | ||
needs: changes | ||
if: | | ||
(needs.changes.outputs.docs == 'true') | ||
runs-on: ubuntu-latest | ||
name: Check Markdown links | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
- uses: ./.github/actions/markdown-link-check | ||
with: | ||
use-quiet-mode: 'yes' | ||
use-verbose-mode: 'yes' | ||
config-file: 'link-check-config.json' | ||
folder-path: 'docs/en' | ||
file-path: './README.md, ./install.md, ./test/e2e/README.md' | ||
max-depth: -1 | ||
file-extension: ".md" | ||
check-modified-files-only: "no" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"ignorePatterns": [ | ||
{ | ||
"pattern": "^https://github.com/.*?/issue" | ||
}, | ||
{ | ||
"pattern": "^https://github.com/.*?/pull" | ||
}, | ||
{ | ||
"pattern": "^#" | ||
} | ||
], | ||
"replacementPatterns": [ | ||
{ | ||
"pattern": "^https://github.com/apache/apisix-ingress-controller/blob/master/", | ||
"replacement": "{{BASEURL}}/" | ||
}, | ||
{ | ||
"pattern": "^https://github.com/apache/apisix-ingress-controller/tree/master/", | ||
"replacement": "{{BASEURL}}/" | ||
}, | ||
{ | ||
"pattern": "^https://apisix.apache.org/docs/ingress-controller/(.*?)$", | ||
"replacement": "{{BASEURL}}/docs/en/latest/$1.md" | ||
} | ||
], | ||
"timeout": "20s", | ||
"retryOn429": true, | ||
"retryCount": 5, | ||
"fallbackRetryDelay": "30s", | ||
"aliveStatusCodes": [200, 206] | ||
} |