mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-10-28 19:24:04 +08:00
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>
This commit is contained in:
23
.github/workflows/check-docs.yml
vendored
Normal file
23
.github/workflows/check-docs.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
||||
Reference in New Issue
Block a user