Repository navigation
docs(#1610): split services.md into a page per plugin, redirect old anchors, terse CHANGELOG rule - #1670
Merged
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
…nchors, terse CHANGELOG rule docs/services.md becomes the index (generated matrix linking each plugin's page and the concept pages). 68 plugin pages at docs/reference/<plugin>.md and 6 concept pages under docs/reference/concepts/. Cross-section links rewritten to /reference/ URLs and 55 dead GitHub-style anchors fixed. A frozen legacy-anchors.json and a client-side redirect keep old /services#<anchor> links landing. gen-service-reference also writes the services sidebar and checks the legacy map and every docs link's anchor; check-operation-docs reads docs/reference/*.md (no hand map, orphan and missing pages fail, -scaffold); heading and count checks cover the pages.
…e; sidebar from page titles; review fixes
- headingText follows markdown-it's inline parse: emphasis pairing (balance_pairs),
strikethrough, images dropped, reference links, a trailing {#id}, and the emoji
plugin's shortcodes and shortcuts. testdata/headings.golden.json and emoji.json are
written by VitePress itself (make docs-anchor-fixtures).
- Fragments: id= on any element, name= on <a>. Links: reference definitions, href=,
percent-decoded fragments.
- Fences close on the opening character and length in check-docs-headings.sh and
check-operation-docs.
- The sidebar's Services and Concepts groups are generated, labeled by page title.
- The redirect checks Object.hasOwn, so #constructor stays put.
- CHANGELOG follows the terse rule; Compatibility is a listed section in CLAUDE.md; the
contributing checklist carries the PR template's wording.
scttfrdmn
force-pushed
the
docs/v0132-services-split
branch
from
November 24, 2026 03:23
6fe455f to
c475162
Compare
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.
Fixes #1610
The operation tables stay hand-written and asserted rather than generated; the reasons are on #1610 (comment).
docs/services.md(28.7k lines) is now the index: the generated coverage matrix, whose rows link to the pages, and a list of concept pages. There are 68 plugin pages atdocs/reference/<plugin>.md, named by registry name, and 6 concept pages underdocs/reference/concepts/: routing, errors, accounts, listing-order, seeds-and-replay and fault-injection. A one-off script did the split and is not committed. Every page has one#title. A single-section page's headings move up one level, so the outline shows them and their anchors keep the same text./reference/<page>#anchor. 55 links (27 anchors) were dead under VitePress's slugger because they were written as GitHub-style slugs (a-rolesfor "a role's"). They are fixed, including one whose heading had been reworded. One paragraph sat directly on a---and rendered as an h2. It now has a blank line. Inbound links in README,index.md,testing-guide.md,getting-started.md(this also resolves the staleTODO(#178)) andfidelity.mdare updated. Thecfn_validate.gostrict-mode message now namesdocs/reference/cloudformation.md; no other Go comment is touched.docs/.vitepress/legacy-anchors.jsonmaps each of the 908 anchorsservices.mdserved at v0.131.0 below its matrix to the page that holds the heading now. Rebased onto chore(#1611): remove the Docker executors, spawn_control and ReplayCfg.RandomSeed #1668: the three headings it replaced map to their successors (#docker-execution-runs-an-image-never-a-zipand#which-operations-drop-a-warm-containerto Lambda's "Invoke answers a seed or a stub",#task-completion-recordsto S3's "Seeded objects"). The key set is unchanged. A<script setup>inservices.mdreadslocation.hashon mount and onhashchange, and looks it up withObject.hasOwn(so#constructorstays put). It callshistory.replaceState, thenrouter.go(withBase(target)), so Back does not bounce. Verified in headless Chrome againstvitepress preview:/services#supported-operations-17lands on/reference/eventbridge#supported-operations, scrolled, withhistory.lengthunchanged.#strict-mode-and-template-validationand the STS trust-policy anchor land the same way, and#coverage-matrixand an unknown anchor stay put.gen-service-referencealso writesdocs/.vitepress/services-sidebar.json, whichconfig.mtsimports, and-checkdiffs it. It holds the Services group (one entry per plugin) and the Concepts group (one perdocs/reference/concepts/*.md), each labeled with the page's#title, so a renamed or added page fails the check until it is regenerated.-checknow refuses a change to the legacy map's key set (pinned by count and SHA-256) and any entry whose target page or anchor is gone.href=, fragments percent-decoded) that names a missing page or anchor. Fragments are heading ids,id=on any element andname=on<a>. The Go port of VitePress 1.6's heading ids follows markdown-it's inline parse (emphasis pairing, strikethrough, images, reference links), the attrs plugin's trailing{#id}, and the emoji plugin. It matched VitePress on all 1,013 anchors indocs/and the 909 in the old monolith.testdata/headings.golden.jsonand the embeddedemoji.jsonare written by VitePress itself (make docs-anchor-fixtures, dev-only, needsnpm ciindocs/), so the expected ids are VitePress's, not a reading of it.check-operation-docsreadsdocs/reference/*.mdand drops thedocSectionsmap. It fails on a plugin with no page and on an orphan page, and gains-scaffold <plugin>.check-docs-headings.shchecks one#per page, no duplicate titles, and no repeated##within a page, and has a--self-test. Its fences, andcheck-operation-docs', close only on the opening character at the opening length, as CommonMark has it; the self-test passes under macOS awk and Ubuntu's mawk.check-doc-counts.shscansdocs/reference/**in services-md mode, with mode self-tests.replacementPatternsmaps multi-segment routes to{{BASEURL}}/docs/<route>.md. I verified it locally with markdown-link-check 3.8.7, the action's version, including a negative case.- <Service>: <what changed> (#N).), plus### Compatibilitywhenever a consumer must act. Reasoning goes in the PR or issue body.services.md"Generated".golang.org/x/textmoves from indirect to direct ingo.mod, for the slugger's NFKD. It is the same version, andtest/e2eis unchanged after a tidy.The routed-operation catalog is unchanged at 1,128.
Links the Markdown link check may flag until merge. README links to
docs/reference/onmain, and so do the/reference/...routes. The README links are relative file links, and the routes are checked as local files, so neither should fail. Any absolute github.com link to a file that only exists after merge would fail; this PR adds none.Gates run locally:
make lint test e2e,make operation-catalog-check docs-reference-check docs-headings-check operation-docs-check authz-reference-check cfn-schema-check,make wire-bookkeeping-check discarded-unmarshal-check discarded-marshal-check discarded-state-check nondeterminism-check,make docs-versions docs-counts-check,make iac-e2e(SUBSTRATE_IAC=1), the self-tests of both scripts, the VitePress build,vitepress previewwith headless Chrome for the redirect, and markdown-link-check 3.8.7 offline across README anddocs/.