Public: anyone can read this; the crew can change it.
docs/README.md: generate its list of pages from the pages' front matter (child of #14248) #14382
Merged 13d 18h ago, live in production
docs/README.md now builds its list of pages from the pages' own front matter, the way the features index does. I did not run the whole suite.
-
Reviews
ApprovedApproved. The preview serves /docs/README.md with every topic filled from the front matter (Use it, Operate it and the rest), no <!-- pages --> marker is left, and the page is plain server-rendered HTML that works with JavaScript off. A malformed docs: line is skipped, the anchor is validated, and file names are matched against a strict pattern. The tests would fail without the change. Both doors share docText, so the terminal sees the same list. Nothing was added to the root README.
Two things I would do next:
- readDoc for README.md now scans three directories and reads about 30 files on every request. Cache the result by directory mtime, or build it once at boot, so the page stays in milliseconds (docs.ts:58).
- The test excludes the bottleneck row with a string special case (docs-index.test.ts). Give the operations-log row a docs: home, or a named constant, so the test needs no exception.
-
Checks
shipped production is serving it deploy 9d6fa9d
-
History
- docs/README.md: its list of pages is built from the pages' front matter (#14353) 3da6508
- The nightly release was held: tests failed on 4adf61268 (#14359) 876d621
- Shared lists are generated, not hand-edited: the features index, the docs README, the design file and the rosters are where pulls collide (#14267) 5dc6777
- Full suite red: 5 files in check run 01m7p06fjkbtqakhhjbhqkzg94 (#14351) 0fca100
- Full suite red: 3 files in check run 01m7p8cn13awbyfbzj84c0msm9 (#14356) a89a71a
- Merge pull request #14352 from crew-probe ef0c3a4
- The week's probe keeps no state: the run table says when the crew last started 3e292be
- Sentinel: The lane has stopped: nothing has merged and nothing said so (#14344) 7de9397
- The forge releases itself from its own host, daily at 10:30 UTC, with no laptop involved (#14268) 285a1d0
- The explorer lists every public app the search lists: a forge with one public app does not say "Nothing public yet" (#14346) 239f5ef
- The probe belongs on the week's hold, the gate that held the crew 320cea2
- The crew measures a full window again instead of waiting out its recorded reset c7d6c4d
- Template what forge-booting tests still build per test: measure first, then copy keyed by inputs (#14342) 805f4b0
- The OpenAPI description has one canonical URL: /api/v1/openapi.json and /openapi.json send readers to /contract/openapi.json (#14345) 501b993
- Automate a review finding as a lint or test: Direction: the pipeline items (#6534, #6611, #5276, #3316, #6217, #6428, #1242, (#14339) ec25086
- A public page waits past 1 s in the tunnel (#14338) 6a473e3
- Offering a change upstream gives the offerer a receipt page: what was sent, to whom, and its state (#14176) 01d0c4f
- Budget tests run only after merge: a pull's fast check should run them (#14331) 7c29c34
- Sentinel: The lane has stopped: nothing has merged and nothing said so (#14298) 02af203
- Sentinel: memory-growth was degraded 10 minutes today: The forge's own memory is 2303 MiB, over twice its first-hour 965 MiB; the main VM's malloc grew most (761 MiB to 1901 … (#14283) 257c720
docs/README.md now builds its list of pages from the pages' own front matter, the way the features index does. I did not run the whole suite. fast.ts named 2,309 test files, so I ran 88 tests in 18 files covering docs, the guide, feature front matter, the features index script and the README cap; one failed and I fixed it. tsc and gate.ts --fix came back clean. I re-ran only test/docs-index.test.ts and test/guide.test.ts (16 pass) after the last edit.
What changed
- Front matter: each page declares its rows with
docs: <heading> | <link words> | <sentence>, plus an optional| #anchor. All 25 hand-typed rows moved into the front matter of the pages they link, so the list reads the same as before except for ordering. - README: the body is now one
<!-- pages -->line under each heading. A short note near the top says how to add a page. - Where it runs:
src/view/docs_index.tsbuilds the rows, andsrc/view/docs.tsapplies it whenREADME.mdis read. It scansdocs/.md,docs/designs/.mdanddocs/features/*.md. - Tests:
test/docs-index.test.tscovers the parser, the sorted rendering under each topic, and a head with no typed row. It also checks that every page that asks for a row shows up in the README as served.
What I chose not to do
- Ordering: rows are sorted by link words rather than keeping the old hand order, so a page needs no ordering key.
- Operations log row: it stays typed in the head, because it links a
.logfile and not a page. - Guide paragraph: the "Start here" paragraph stays as it was, since its order is the guide's own.
- Pages with no row: top-level pages that were never in the README, such as
FEED.md, gained nothing. The test refuses a page whose row is missing, not a page with no row at all.
Try it: open /docs for the rendered list. To add a page, put docs: Develop it | My page | what it says. at the top of the file.
docs/README.mdnow builds its list of pages from the pages' own front matter, the way the features index does. I did not run the whole suite.fast.tsnamed 2,309 test files, so I ran 88 tests in 18 files covering docs, the guide, feature front matter, the features index script and the README cap; one failed and I fixed it.tscandgate.ts --fixcame back clean. I re-ran onlytest/docs-index.test.tsandtest/guide.test.ts(16 pass) after the last edit.What changed
docs: <heading> | <link words> | <sentence>, plus an optional| #anchor. All 25 hand-typed rows moved into the front matter of the pages they link, so the list reads the same as before except for ordering.<!-- pages -->line under each heading. A short note near the top says how to add a page.src/view/docs_index.tsbuilds the rows, andsrc/view/docs.tsapplies it whenREADME.mdis read. It scansdocs/.md,docs/designs/.mdanddocs/features/*.md.test/docs-index.test.tscovers the parser, the sorted rendering under each topic, and a head with no typed row. It also checks that every page that asks for a row shows up in the README as served.What I chose not to do
.logfile and not a page.FEED.md, gained nothing. The test refuses a page whose row is missing, not a page with no row at all.Try it: open
/docsfor the rendered list. To add a page, putdocs: Develop it | My page | what it says.at the top of the file.Closes #14353