Check Markdown Links #985
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
name: Check Markdown Links | |
on: | |
push: | |
schedule: | |
- cron: '0 0 * * *' # Runs every day at 00:00 | |
jobs: | |
markdown-link-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Check for broken links (internal) | |
run: python ./scripts/check_md_links.py --path ./docs | |
- name: Check for broken links (external) | |
run: | | |
pip install mkdocs-linkcheck | |
exclude_patterns=$(cat exclude_link_patterns.txt | tr '\n' '|' | sed 's/|$//') | |
mkdocs-linkcheck -rv ./docs --ext=".md" --exclude="$exclude_patterns" -m get || mkdocs-linkcheck -rv ./docs --ext=".md" --exclude="$exclude_patterns" -m get --sync | |