Repository navigation
fix(docs): resolve section links with shared anchor targets - #157
Conversation
Preserve published primary IDs while emitting real compatible aliases and component targets. Reuse the source-owned parser and redirect contract, and open collapsed content during fragment navigation. Deploy only after normal source support sync; source audit activation follows live verification. Related: openclaw/openclaw#137032.
|
Land-ready at Docs Code CI attempt 1 and the exact-head CodeQL checks passed. Normal source sync delivered both shared modules; their generated Git blobs match source support merge Local Ten isolated Chromium flows pass against the actual integrated artifact: published primary IDs, dotted aliases, slash/parenthesis and plus/dev fragments, canonical TOC selection and copied URL, and opening the sandbox details target. All three captures were inspected. The Browser pane independently confirms actual alias ownership and component targets without console errors; its background-host visibility prevents treating its paused scrolling as the browser-flow proof. The rebase preserves the separately landed locale-owner fix and both changelog entries. Production/tooling net −306; tests/test-support +178/-11. Active rules impose no independent approving-review requirement; no server rule is bypassed. Proceeding with the authorized renderer merge and normal R2 publication. Production parity will be verified before source audit activation. |
|
Published and verified on production. R2 run 33727893894, attempt 1, built and uploaded docs commit All ten real Chromium flows on The working-directory alias selects The production gate is satisfied; the final source-audit activation can now proceed. No generated mirror docs were manually edited, and no npm/product release was performed. |



Related: openclaw/openclaw#137032
Support contract: openclaw/openclaw#137038
What Problem This Solves
Fixes an issue where readers following a documentation section link could land at the top of the page even though the source anchor audit accepted that link. Published MarkdownIt headings and Mintlify's independent checker disagree on punctuation, duplicate numbering, and component targets.
Why This Change Was Made
The publisher now consumes the source-owned document/ID and redirect contracts delivered by normal
.openclaw-syncgeneration. Existing published primary IDs and explicit anchors retain their ownership; compatible Mint compiler spellings become real, unambiguous DOM aliases. Conflicting aliases are omitted instead of stealing an existing target. Components receive actual targets, and fragment navigation opens enclosing details and selects the canonical heading.This removes the old publisher preprocessing/frontmatter/redirect owners rather than maintaining parallel implementations. Relative document links resolve against final published page URLs. Exact literal percent-containing IDs take precedence over a single decode. Existing current-main invite behavior is preserved. Generated mirror docs are not hand-edited.
User Impact
Existing section links continue to work, while dotted settings, slash/parenthesis headings, plus/dev flags, and supported component titles can also resolve through compatible spellings. Copy-link controls still produce canonical published heading URLs. Initial navigation, same-page clicks, PJAX, and history use the same target resolution; external links are not intercepted as local navigation.
This is stage two of the explicitly approved support → renderer → audit rollout. Source audit activation must wait for this renderer to deploy and pass real production fragment verification.
Evidence
npm testpasses 126 tests on the integrated branch, including real DOM, browser boundary, and newly landed locale-ownership coverage; no source-repo dependency leakage is needed.github-actions-2alias collision is intentionally omitted so existing base/-1/-2ownership remains intact.make docs-checkpassed: 14,934 pages built, 14,933 indexed pages in 21 languages, 85,003 R2 objects prepared, full artifact smoke passed. The local checkout lacked the optional source-code-index checkout; that optional index was not claimed as tested.Before: the accepted alias does not select its section on the old production renderer.
After, candidate: alias selects the existing canonical heading and TOC entry.
After, candidate: component target opens its details container and scrolls into view.