Repository navigation
Architecture: the reference split into a wiki of pages by area - #1898
Open
vmillet-dev wants to merge 2 commits into
Open
vmillet-dev wants to merge 2 commits into
vmillet-dev wants to merge 2 commits into
Conversation
docs/architecture.md becomes docs/architecture/: a home page that maps the pages, then one page an area, each opening with what it covers and a link home. Every section moves whole and unchanged; only heading levels, four relative links and one heading (the UI's « The gate, drawn ») change. scripts/architecture-links.mjs fails when a name after an arrow finds no section or more than one, and when a link into or between the pages leads nowhere; its test runs it on the repository. Three references broken before the split are repointed. Closes #1841 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BbVs5tCyTr9AasGra3Zzg3
This was referenced Dec 4, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1841
docs/architecture.md(6 953 lines) becomesdocs/architecture/, a wiki: a home page (README.md) that maps the pages — what each holds, when to read it —, says how a section is named and where a new one goes; then one page an area, each opening with a line on what it covers and a link home.overview.md·decisions.md·interface.md·backend.mdnotes/kinds.md·notes/cards.md·notes/editing.mdspaces-folders-board.mdhttp/requests.md·http/environments-and-scripts.md·http/drawn.mdtools.md·window.md·libraries.md·engine.mdi18n-accessibility-theming.md·releasing.md·testing.md·website.mdThe text moves as it is. Each section moves whole, in the place the ticket gives its area; the sections the ticket names no page for went beside their neighbours (the checklist's « Reordering » to editing, « Untriaged », the card menu and the header row to cards, the library rail to spaces and folders, « Data access » to the backend, « Leaving with requests not saved » to HTTP on screen). Only heading levels change, and one heading's name: the interface's
The gateis nowThe gate, drawn(the vault's keeps its name, whichCLAUDE.mdnames). Four links to an anchor of the old file now name their page.Headings aside, the wiki's text against the old file's (each side's lines sorted, since sections moved) — the four links, and the 55 lines added (the opening lines and the home page):
The check —
scripts/architecture-links.mjsreads every name after an arrow (→ "…",→ « … », a list after one arrow, a name wrapped over two comment lines) in the Markdown, Rust, TOML, YAML and scripts of the repository, and fails when it finds no section or more than one; it fails too on a heading twice in the wiki, and on a relative link between pages, or into the wiki from anywhere, that leads nowhere or names an anchor its page does not have. A name is a heading, or the bold words opening a paragraph (→ "Closing is not quitting"), and may stop where its heading goes on after a comma, a colon or a bracket (→ "A card is two layers"): that is howCLAUDE.mdalready names them. A name after another file (`CONTRIBUTING.md` → "…") is looked for in that file. Its test runs it on the repository, so CI's « Lint docs » job holds it.Repointed —
CLAUDE.md, the local skills (add-feature,desktop-e2e-testing,devnotes-security-review,egui-ui,performance-profiling,platform-integration,rust-guidelines' ownSKILL.md),CONTRIBUTING.md, the README's table,Cargo.toml,ci.yml,website.yml,docs/releasing.md(which now links the wiki'sreleasing.md) andperf.rs. Three names led nowhere before the split, and the check found them: « Error contract » (now « Errors are codes »), « Window geometry » (« The binary, its profile and its window ») and « The modal frame » (« The widget kit »).Where this differs from the ticket
package.jsonat the root (test:scriptsis the website's): the check isscripts/architecture-links.test.mjs, which CI'snode --test "scripts/*.test.mjs"picks up with the other script tests.npm run lintis the website's ESLint and reads no Markdown; the repository has no Markdown linter, so nothing was run for that line.notes/cards.md616,window.md620,tools.md662,spaces-folders-board.md666): they hold what the ticket puts in them, and the home page says a page past ~600 lines is split into a folder, asnotes/andhttp/are.Checks run (Linux)
node --test "scripts/*.test.mjs": 77 pass, 13 of them the new check's — a name found nowhere, a name found twice, a name cut mid-heading, a list, a wrapped name, a name in another file, a string holding an arrow, a heading in a code block, broken links and anchors, and the repository itself.node scripts/architecture-links.mjs: clean. Before the references were repointed it reported exactly the three broken names above.cargo fmt --all --check;cargo metadata(theCargo.tomlcomment). No Rust code changed besides one comment.Generated by Claude Code