Repository navigation
docs: index the two pages nothing linked, and fail when a docs page is an orphan (EGEN-DOCS-ORPHAN-DEVTOOLS) - #7453
Conversation
|
Code read + CPU tests, 796d73e: pass ( |
|
Tested 796d73e on Arch Linux, Python 3.14.10, CPU only: orphans test passes, with one caveat.
No game files. AI-assisted. |
796d73e to
7cb9522
Compare
docs/dev-tools.md shipped with no inbound link: the index had no row and no other page named it, so the only way to reach the 90-line page was to guess the path. The row names what the page documents: scripts/dev.py's producer inventory and its --json output.
A scan of docs/*.md against every inbound link found this page beside dev-tools.md with no row and no mention anywhere, so its measured GPU runs could only be reached by guessing the path. One row in the Runtime, GPU and validation table, next to multi_gpu_validation.md.
A page can be missing from the index in a way no link check sees: nothing points at it, so no link is broken. Reads the tracked Markdown files, resolves each relative link against the page that holds it and fails on a docs/*.md page no other page reaches; two synthetic cases (an orphan is reported, a page quoted only inside a fence is not reached) keep it from passing by parsing nothing.
7cb9522 to
002272b
Compare
|
Re-check of new head 7cb9522 (orphan check folded into test_docs_links.py, gpu_test_results.md newly indexed) on Arch Linux, Python 3.14.10, CPU only.
No game files. AI-assisted. |
|
Rebased onto current
No game files, no GPU. |
|
Independent Windows/Python 3.10 validation on
The orphan detector correctly excludes fenced examples, resolves relative targets from their source page, and retains a non-git directory-walk fallback. It catches the property ordinary link validation cannot: a documentation page with no inbound link. I did not treat the known unrelated broken anchors mentioned in the PR as a result of this change. |
|
Tested Checks on the updated 3-commit head (
AI-assisted. |
sds-228
left a comment
There was a problem hiding this comment.
Re-reviewed at the current head. Two previously unlinked docs pages are indexed, and the new test fails when either index row is removed.
CPU-only verification: 3/3 orphan tests pass with the rows; removing both rows fails with exactly those two pages. The synthetic cases cover orphan detection and fenced links. Docs only, no game data.
AI-assisted (OpenCode).
|
Tested 002272b on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no game files, no GPU/llvm-mc/MSVC used): pass. Ran the test files this PR adds or changes, from a clean checkout of the PR head: AI-assisted (Claude Code). |
Claimed in the coordination issue as: EGEN-DOCS-ORPHAN-DEVTOOLS
Depends on: #7351
What and why
docs/dev-tools.mdshipped with no inbound link:docs/README.mdhad no row for it and no other Markdown page in thetree named it (
git grep dev-toolsoutside the page itself: nothing). The page documentsscripts/dev.py discover,the producer inventory, so it belongs in the "Runtime, GPU and validation" table next to the other tool pages
(commit 1;
python -I scripts/dev.py discover --jsonexits 0 and printsschema_version1 with the two producersboot-traceandguest-scene).A page can also go missing in a way no link check sees: nothing points at it, so no link is broken. Commit 3 adds
tests/test_docs_orphans.py: it reads the tracked Markdown files (git ls-files '*.md', a directory walk withoutgit), resolves every relative link against the page that holds it and fails on a
docs/*.mdpage that no other pagereaches. Two synthetic cases keep it from passing by parsing nothing: an orphan is reported while a linked page is
not, and a Markdown link inside a fenced sample does not count.
Commit 2 is the check doing its job: rebased onto current
mainit reportsdocs/gpu_test_results.md, the GPU runrecord that landed after this PR was opened, so that page gets its index row too.
Tested
No GPU needed.
The check against the index from
upstream/main(both pages unlinked):With the two rows (this branch):
Neighbouring docs checks after the change:
python -I tests/test_docs_table_rows.py,tests/test_docs_repeated_lines.py,tests/test_docs_table_ids.pyandtests/test_i18n_index.pyall exit 0.python -I scripts/check_no_game_data.py docs/README.md tests/test_docs_orphans.pyexits 0.Notes
tests/test_docs_links.pyis still 6 of 7 on this branch, exactly as onmain:docs/dev-tools.mdlinks../runtime/README.md#a-600-frame-headless-guest-sceneand that heading is swallowed by the unclosed fence, which isruntime/README.md: close the code fence that hid the headings after the 1D render targets section (EGEN-RUNTIME-README-FENCE) #7351 (also runtime/README: close the code fence after the placed-dimensions test #7228/runtime/README.md: close the fence that swallowed the second half of the page #7217). That is why the
Depends on:line above is there; the orphan test is unaffected. The otherlink it reports,
gpu-test-results/RX9070GRE.txtfromdocs/gpu_test_results.md, names a local note file that is notin the tree — that page is not mine to trim, so it goes to the coordination issue as a finding.
docs/*.mdpages only.docs/i18n/*/quickstart.mdis indexed fromdocs/i18n/README.mdand
tests/test_i18n_index.pyalready pins that table, so a second check there would duplicate it.docs/README.mdis included in the check, not exempted: it is reachable from the rootREADME.md, so leaving theindex itself in keeps the rule honest without a special case.
reads a different property, so the two do not contradict if both land.
mainand force-pushed (three commits, one rebuilds the branch onto the newer base); the filecontents match what was reviewed at
796d73eeplus the one extra index row.AI-assisted.
Checklist
docs/design.md, with how it was confirmed. (no translator change)