docs(book): add the Documentation page of Tools and retire two old pages #819
No reviewers
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language!819
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/799-book-tools-documentation"
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?
Adds
book/tools/documentation.md(kind page, stable, order 40): doc comments and doc tests, the six doc-comment headings and the link rule, example checking and its markers,torb docand--json, thetorb docscommand table, flag tables fordoc,docs check,docs sourceanddocs site, the documentation gate rules, the stable address, runnable blocks and exercises, the playground mount contract, languages and the benchmarks page, and the generated parts.Old pages:
docs/tooling/torb-docs-site.mdanddocs/tooling/torb-docs-source.md(bothskill: omit). Their content that no other page carried now lives on the new page; mentions in compiler/playground/tools comments namebook/tools/documentation.mdand sections it has.docs/, unpublished, because skills are still built from them:docs/tooling/torb-doc.md(torbscript-projects),docs/tooling/torb-docs-check.md(torbscript) anddocs/language/syntax/doc-comments.md(torbscript-language). Links to the deleted pages were repointed to the new page.Scope: the playground smoke-test fix (
c41bfb24) is no longer part of this PR; it moved to #824 (issue #823).Checks run in forge CI on this head (
docs check,docs index --check,docs skill --check,docs site --check); the generated index entry inbook/tools/index.mdmatches the page summary.Closes #799
7f3636eea9936d51ca16936d51ca16df2bc87986Review of head
c41bfb24. CI is green on this head (gates, pdisc, bootstrap, playground, conformance), the PR is not a draft, and the flag tables ofdoc,docs check,docs sourceanddocs sitematch the old pages' synopses. Changes requested for three blockers.[blocker] Task gap: the page does not teach the headings or the links of a doc comment. #799's goal names "doc comments: the headings,
# Examplesthat run as doc tests, links".book/tools/documentation.mdmentions only# Examples. The vocabulary of six headings (# Examples,# Errors,# Panics,# Pitfalls,# Open,# Related), the rule that any other heading or an empty one is a finding, and how[Name],[List.append]and[Option.Some]links resolve were all in the deletedtorb-docs-source.mdand are now published nowhere.compiler/CONTRIBUTING.md:354-357still sends contributors to this page as the gate "that asks for all of it". "Holding the code to a standard" lists three of the rules. Add a section on the headings and the links, plus the first-line markers of an example (// check,// fragment) thatdocs sourcehonors, each with a real example and output as the acceptance criteria ask.[blocker] Dangling references to sections that do not exist. The PR repoints code comments to
book/tools/documentation.mdwith section names that the new page does not have:compiler/src/documentation/site-html.trb(~226) andplayground/playground.js:5cite "Runnable blocks and exercises".compiler/src/documentation/site-strings.trb:3-4andtranslations.trb:2cite "Languages".tools/fetch-benchmarks.sh:4cites "The benchmarks page".The page has no such headings, and the content behind them was deleted with
torb-docs-site.md(411 lines). That includes the contract between the site and the playground mount, the exercise and solution rules, thetranslations/<language>/mirror with thetranslateshash, and the benchmarks page.docs/tooling/torb-docs-site.mdwasskill: omit, so deleting it is allowed, but the contracts must live somewhere. Either document them in the page (they are the "docs site" half of the task), or point each comment at where the contract really is now (for the benchmarks page,docs/design/RELEASE.mdhas "The benchmarks page, as built"). Also check the sentence you rewrote indocs/contributing/checks.md("An exercise without one is a problem."), which lost its link to the contract it described.[blocker] Scope:
playground/smoke-test.mjs(commitc41bfb24). This commit changes the cancellation step of the playground smoke test. It has nothing to do with #799 (documentation only, "no other ... changed except the links that must follow from the deletion"), and the PR body does not mention it. Move it to its own PR or task. If it is needed to get CI green here, say so in the PR body with the failing run.Non-blocking:
consoleblocks for theshelfpackage (torb doc --check,torb docs bundle, and others) cannot be verified bydocs check. Make sure they are real output from the toolchain, as the acceptance criteria require. I could not runtorbhere.docs/design/BRAND.mdanddocs/design/RELEASE.mdnow mentionbook/tools/documentation.mdas plain text instead of a link. This is fine, but it is the same page that has no "docs site" contract (see 2).c41bfb241f39f9d07fd239f9d07fd29190f462469190f4624661a01ae1a2Not mergeable on
61a01ae: conflict, rebase and resolve.git mergeof this head into main (f8beee48) conflicts in.pdisc-sidecar.yamlanddocs/tooling/the-playground.md. CI is also red on this head (ci / gates: failing after 0s,ci / tier A (linux-x64): failing after 42m); the run logs are not readable with the reviewer token, so I cannot name the cause. Thegatesfailure after 0s may just follow from the conflict. Please rebase and re-run CI. The review follows on the new head: the three blockers from my review ofc41bfb24look addressed on this head (headings/links/markers section, the cited sections exist, the smoke-test commit is gone), and I will check them on the rebased diff.61a01ae1a212c3b0f14bCI red on
12c3b0f:ci / tier A (linux-x64)fails in thedocs check booklane (run 3112, job tier A), andci / gatesis red with it. Output of the lane, all three on the new pagebook/tools/documentation.md:Expected an expression, found...`` (thefn orElse(...): Value { ... }example in the doc-comment block compiles as written; use a real body or a marker that the checker accepts)A list of the book has at most 7 items, and this one has 9. Make it a table or prose(the list of doc-comment rules under "Holding the code to a standard")no longertells the history of the language; a page of the book says what is true now (the bullet "no longercounts only in front of a verb" quotes the phrase; reword it or put it in a formdocs checkaccepts)All other jobs on this head are green (commit messages, bootstrap, tier B, release-sync, same-C, playground, JS and PHP conformance, pdisc), and the earlier conflict is gone (mergeable). Please fix and push; the review follows on the new head. My three blockers from
c41bfb24look addressed (headings/links/markers section, cited sections exist, smoke-test commit gone); I will check them on the new head.CI red on
454bf33:ci / tier A (linux-x64)fails in thedocs check booklane (run 3171, job 36018), andci / gatesis red with it. It is the only problem of the lane ("1 problem in 70 pages"):book/tools/documentation.md:94:Every example of the book is a whole program:trb run,trb error,trb check, ortrbfor a file that only parses. The info string```trb fragmentadded in454bf33is not a form the checker accepts; theorElsedoc-comment block (a signature with{ ... }) must be one of those four kinds. Make it a block that parses (a real body instead of{ ... }, thentrb), or show it as plain text / another kind the book allows.All other jobs on this head are green (commit messages, bootstrap, tier B, release-sync, same-C, playground, JS and PHP conformance, pdisc) and the PR is mergeable. The
12c3b0ffindings (list of 9 items,no longer) no longer show up in the lane. Please fix and push; the review follows on the new head. My three blockers fromc41bfb2still look addressed.Review of head
9331b384. Combined CI status is success on exactly this head (includingtier Awith thedocs check booklane,gates, pdisc, playground, conformance). The PR is not a draft and is mergeable.My three blockers from
c41bfb24are resolved:// check/// fragment/// skipmarkers, each with a table or example.translates, and the benchmark placeholders are documented there.playground/smoke-test.mjscommit is gone; the file list is docs, link repoints and comments only.Checklist: tests/CI ok; correctness ok (flag tables match the deleted pages' synopses, the
orElseblock now parses as atrbblock); scope = #799 ok (kepttorb-doc.md,torb-docs-check.mdanddoc-comments.mdbecause skills are built from them, and the PR body names them); no secrets, no data or deploy impact; docs ok (index entry, CONTRIBUTING and design links repointed, skills regenerated consistently with their sources); no architecture or UI change.Non-blocking:
docs/contributing/checks.mdline 55 is now about 150 characters, while the neighbouring prose wraps at 120. Re-wrap it.docs/contributing/levels-and-plain-words.mdsays "listed in the website's design", which points at nothing now. Name where the patterns are listed, or drop the sentence.consoleblocks forshelfcould not be reproduced here (notorbfor the reviewer). Please keep them real output from the toolchain, as the acceptance criteria require.status: post-merge follow-up (orion, 2026-11-16 10:29 Europe/Berlin)
d36a24fb(main), no task in orion/tasks referenced, no "After merge" section.d36a24fbwere still pending at 10:29 (ci gates, pdisc, images site:edge). Not verified live yet.d36a24fb, decide the release cut per docs/design/RELEASE.md section 3 (release/0.1 candidate vs next minor) and record it here. Not cut in this turn.