docs: embed the documentation pages in the README as collapsible sections #76
No reviewers
Labels
No labels
accessibility
bug
ci
docs
documentation
duplicate
enhancement
fixes issue
good first issue
help wanted
invalid
library request
libs
needs rebase
question
relinker
stale
tools
unblocks title
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Dark3581--AnyBox!76
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/76/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Dark3581 on GitHub · 2026-11-23 06:22 UTC · original
Dark3581:docs/readme-embedded→main· +782 −11 · 5 files · 1 commits · merged 2026-11-23 06:26 UTCWhat
The README's tab bar (#75) moved you to another page. GitHub strips scripts and most CSS from READMEs, so real in-place tabs aren't possible there. The closest thing is collapsible sections, so the README now embeds every documentation page in one:
<details>blocks: Usage, Build, Architecture, Game testing, Contributing, Conventions, Technical debt, Progress. Each opens in place to show the whole page, and each summary also links to the page's own file. The doc pages keep their tab bar for moving between them.tools/readme_docs.pygenerates the blocks between<!-- docs:start -->and<!-- docs:end -->:href/src) so they resolve from the README; links to a heading inside a page point at that page's file; fenced code is left alone;--checkfails when the README is out of date.debt_fold.pyregenerates the README after folding, since folding changes the technical-debt page.tools/tests/test_readme_docs.pyfails, naming the command to run, if any embedded page changes without regenerating. CONTRIBUTING says so.Tested
tools/tests/test_readme_docs.py:mailto:;debt_fold.py --check,test_debt_and_reports.py,python tools/check_conventions.pyand the 15tools_*tests: ok. The README is 69 KB.Checklist
main; no other open PR implements the same functionspython tools/check_conventions.pypasses (no comments in code, one declaration per export, Conventional Commit subjects)AbxNotImplemented/AbxUnsupported); silent stubs are listed under Silent stubs through a debt fragmentdocs/dev/debt/changes/<branch>.md