Repository navigation
docs(cli): give every doc a named home; authoring owns integration authoring - #7835
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewNo new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: No accessibility violations detected. Visual Regression46 of 486 shot(s) changed. A change here is a question, not a failure: check whether the after is the
and 26 more. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
bbf3aec to
793aede
Compare
There was a problem hiding this comment.
This pull request is on hold for an engineering owner. It intentionally rewrites the current spec:AST-046 (FR2, FR9, FR11, FR12, and DEC-8 in place of OQ1) and architecture:cli-surface INV26, so approval needs an owner to approve that spec change on this exact head, or to ask for changes to the records. Separately, three places still disagree with the branch and need a fix:
- The moved-route error suggests only the new route, but AST-046 FR6 still requires the children of the deepest namespace the route reaches; amend FR6 or keep those suggestions.
- INV25 and doctor's misfiled-doc messages in
cli-self-docs.mjsstill nameastryx docs authoringas the list of field-reference sections, which now lives atastryx docs authoring/field-reference. - Guides below
authoringshare three section keys (global-mode,run-the-add-command,install-the-packed-package), which FR13 forbids after a split; scope the rule or give those sections unique ids.
[Automated review]
| if (moved) { | ||
| return new AstryxError( | ||
| `Unknown topic "${String(topic)}". It moved to "${moved.route}"${notLoaded(catalog)}`, | ||
| [{name: moved.route, reason: moved.summary}], |
There was a problem hiding this comment.
This single suggestion replaces the ones AST-046 FR6 still requires: "An unknown route MUST fail with ERR_UNKNOWN_TOPIC and suggest the children of the deepest namespace the route reaches". For cli/integrations/quick-start that is cli/component-lookups, cli/host-entry, cli/commands and cli/api, which cli/integrations/no-such-guide still gets. Either amend FR6 in this PR so a moved route suggests its new route, or keep FR6's suggestions after the moved one.
| so every doc has a home in the tree. | ||
| Every flat topic sits in the generated level for its category, Guides or | ||
| Foundations, under its own name, so every doc has a named home in the tree. | ||
| Everything an integration author reads lives under `authoring`. |
There was a problem hiding this comment.
INV25 above (line 491) still says authoring docs "are sections of astryx docs authoring and appear in its list". On this branch that command lists the guides and the field reference, and astryx docs authoring --index returns the namespace with no sections. Amend INV25 with this edit to name astryx docs authoring/field-reference; the same pointer is in packages/cli/foundation/discovery/cli-self-docs.mjs lines 44, 495 and 501.
| doc MUST have a route under `cli/commands`, and every function, schema, and | ||
| enum doc in the `cli/api` group a route under `cli/api/<kind>s`. The | ||
| integration guides MUST live under `authoring`, one short guide per task, | ||
| beside the field reference whose sections `astryx docs authoring <name>` |
There was a problem hiding this comment.
Turning the flat authoring topic into this namespace is an FR13 split, and FR13 says "No two guides below the namespace share a section key". The moved guides share global-mode (14 guides), run-the-add-command (2) and install-the-packed-package (2), so astryx docs authoring global-mode is ambiguous. Scope that rule to the split topic's own sections in this rewrite, or give those sections unique ids.
…rence where doctor lists sections; scope FR13 keys
|
/approve-spec 1bf96e0 |
There was a problem hiding this comment.
The move to one authoring home, the Guides and Foundations levels and the moved-route errors all match the owner-approved records, and CI is green. One small fix remains before this can be approved: three record lines still describe the old layout.
docs/specs/AST-046-docs-tree/spec.mdCurrent-state impact says/docs/cli-integrationsredirects to the firstcliguide, but it now redirects to/docs/authoring.- The FR14 verification row in the same record still lists "the Unorganized level", which FR12 no longer has.
- Draft
spec:AST-047FR2 still sends a flat topic's Up to "the Unorganized level".
A new commit will need a fresh /approve-spec on its head.
[Automated review]
| Foundations, as FR12 states; | ||
| - a flat topic that becomes a namespace keeps its unambiguous reads inside | ||
| its own package, as FR13 and FR6 state; | ||
| - the docsite reads the tree through `docs()`: each root namespace is one page |
There was a problem hiding this comment.
This bullet still ends "and /docs/cli-integrations redirects to the first of them" (line 286), but on this branch /docs/cli-integrations redirects to /docs/authoring (apps/docsite/scripts/docs-pages.mjs, ROOT_PAGE_ALIASES). Suggest naming the Authoring page there.
| group MUST be the namespace's own `category`; without one, `foundations` | ||
| when every guide below it is a foundations doc, and `guide` otherwise. A | ||
| namespace with no guide below it, such as the Unorganized level (FR12), has | ||
| namespace with no guide below it, such as a generated topic level (FR12), has |
There was a problem hiding this comment.
FR14 now says "a generated topic level", but its verification row (line 304) still lists "the Unorganized level" among the representative states, and the docsite test it describes now checks the foundations level. Draft spec:AST-047 FR2 (line 48) has the same leftover.
… and the named topic levels
|
/approve-spec 0dec58d |
There was a problem hiding this comment.
The move to one authoring home, the Guides and Foundations levels and the moved-route errors match the owner-approved records, every check passes, and the three record lines flagged on the previous head are fixed. One thing remains before approval: the description changes ten knowledge records but has no ## Writing rubric results section, which docs/architecture/knowledge-contracts.md asks every record-changing pull request to report before review. Please add one line per rubric item R1–R6 from docs/contributing/spec-writing.md (the specification.md pull request template carries the section); a description edit needs no new commit, so the current /approve-spec still applies.
[Automated review]
|
/approve-spec 6bde770 |
There was a problem hiding this comment.
This is ready to merge: moving every integration guide and the field reference under one authoring home, the new Guides and Foundations levels, and the moved-route errors all match the owner-approved spec:AST-046 and architecture:cli-surface records on this head, and the description now reports the writing-rubric results. The docs, doctor, search and CLI tests pass, old cli/integrations routes name where they moved, and old docsite addresses redirect into the new Authoring page. Nothing further is needed from you.
[Automated review]
What users see
astryx docslists three named homes where the catch-all used to be: Authoring, Guides, and Foundations. The generated "Unorganized" level is gone, and no doc was dropped.astryx docs authoring: the guides that werecli/integrations/…and the field reference that was the flatauthoringtopic (nowauthoring/field-reference).astryx docs authoring <name>still opens one field-reference section, through the namespace section read (AST-046 FR6). Typed links to an authoring schema still open its section.astryx docs getting-started,astryx docs color, and the rest still open; their Up move is nowastryx docs guidesorastryx docs foundations, picked by the category each topic already declares.cli/integrations/…route is unknown, and its error names the new route first:Unknown topic "cli/integrations/quick-start". It moved to "authoring/quick-start", followed by the usual suggestions (FR6). There is no alias: AST-017 FR45 makes docs routes mutable data./docs/cli-integrations,/docs/cli-integrations-*,/docs/cli-writing-docs) redirects to its section there.docs authoringon its own line, sodocs clino longer claims integration authoring.The repo check
packages/cli/api/docs/docs-homes.test.mjsfails when:guideorfoundationscategory. Deleting the category fromprinciplesmakes it fail and nameprinciples;cli/integrationsroute stops naming its new one.Records
astryx docs authoring <key>), while integration guides may share their own keys. DEC-8 records the maintainer decision, and OQ1 (where the authoring docs live) is answered. Draft AST-047 FR2 names the new levels. Theaffects_consumer_docsroute lists in the other specs move with it. One stale guide route in the template-authoring architecture record is corrected.[docs]patch changeset. Under AST-017 FR45 a docs route move is nonbreaking, and the changeset names each replacement route.Writing rubric results
Run over every record this PR touches:
spec:AST-046, draftspec:AST-047,architecture:cli-surface,architecture:template-authoring, and theaffects_consumer_docslists of AST-031, AST-035, AST-039, AST-040, AST-050 and AST-051.authoringholds the integration guides and the field reference"). FR9, FR12, FR13, INV25, INV26 and AST-047 FR2 state the system. Current-state impact keeps its change list, as that section does.Testing
docs-homes.test.mjs(3 tests). The tests that named the old routes or the old level are updated, and five goldens are refreshed: Upguidesin place ofunorganized, plus the new top-level list.pnpm check:repo,check:knowledge,check:changesets,changeset-coverageagainst v0.7.2,typecheck:strict, and eslint on the changed files: all pass.generate+vitest, all pass. The generated registry has one Authoring page (212 sections), no cli-integrations or cli-writing-docs pages, and every old slug redirects into the page.astryx docs,astryx docs authoring,astryx docs authoring integration,astryx docs cli/integrations/ship, andastryx doctor(Authoring docs: all 19 schemas readable; Docs tree: no problems).authoringandmake an integrationboth rank the authoring namespace first, andintegration manifest fieldsranks the field reference's integration section first.Not in this PR
Docs outside this repository that still name the old
cli/integrationsroutes are tracked separately.