Repository navigation
test(docs): track fences line by line in strip_fences to preserve headings between blocks (#7872) - #7974
test(docs): track fences line by line in strip_fences to preserve headings between blocks (#7872)#7974itsfufi wants to merge 1 commit into
Conversation
…dings between blocks (ItsNotRexed#7872) - Replace naive regex FENCE in test_docs_links.py with line-by-line fence tracking so headings between code blocks survive in anchors(). - Add unit test test_strip_fences_preserves_headings_between_blocks. - Fix broken link in docs/gpu_test_results.md pointing to non-existent file. Fixes ItsNotRexed#7872. AI-assisted. CPU only.
|
At f60f308 the diff contains one link change in I ran both PR heads on the same Markdown fixture on Windows (Python 3.14): a heading inside a four-tilde fence followed by a real heading outside. This head retained both headings. #7935 removed the fenced heading and kept the real one. Could you remove the closing reference and reconcile the link change with #7532? That earlier PR fixes the relative path to the original RX9070GRE.txt note; this one points to a section of the same page. AI-assisted. |
|
checked: #7974 | with: python -m pytest -q tests/test_docs_links.py | on: Windows 10, CPython 3.13, head f60f308, CPU only | result: test still fails, but only on the pre-existing unrelated dev-tools.md -> runtime/README.md#a-600-frame-headless-guest-scene anchor; this PR removes the gpu_test_results.md missing-file failure (changed the link to the in-page anchor). No game data, no GPU. |
What this PR does
Fixes #7872:
****:
****:
Verification
AI-assisted. CPU only, no game files needed.