Files
bpf-developer-tutorial/.github/workflows/check-docs.yml
云微 e08f604769 Fix bilingual tutorial indexes and internal links (#209)
* Fix bilingual tutorial index generation

* Check relative Markdown links in CI

* Harden documentation regression checks

* Reduce link parser complexity

* Run link checks for every repository change

---------

Co-authored-by: LinuxDev9002 <i@littlefisher.me>
2026-07-14 04:10:51 -07:00

24 lines
668 B
YAML

name: Check documentation
on:
push:
branches: ["main"]
pull_request:
permissions:
contents: read
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Test documentation scripts
run: python3 -m unittest scripts.test_check_internal_links scripts.test_generate_toc
- name: Regenerate documentation indexes
run: python3 scripts/generate_toc.py
- name: Verify generated documentation is current
run: git diff --exit-code -- README.md README.zh.md src/SUMMARY.md src/SUMMARY.zh.md
- name: Check relative Markdown links
run: python3 scripts/check_internal_links.py