Skip to content

Check Markdown Links #945

Check Markdown Links

Check Markdown Links #945

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