Repository navigation
docs(zh): zh headings carry the English explicit anchor id (#1359) - #1966
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01X8U3asekbiC7yWoEPWR4Dg
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
This was referenced Sep 28, 2026
os-warren
marked this pull request as ready for review
September 28, 2026 06:30
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 #1359
Implements the maintainer ruling on #1359 (comment 5481236425, verbatim 「其他同意」 → option B, unified scope), items 1-4 only. Dispatch scope note 5823995849: the carriage-guard rider is out; no new guard, no test file touched.
What changed
A zh (Hans/Hant) heading now carries the same English explicit anchor id its English twin answers to, via the fumadocs
[#id]spelling, and the links that were de-anchored because the id did not exist are links with the id again.Target headings (English id added, text unchanged)
content/docs/marketing/campaigns.zh-Hans.mdx:66## 营销活动加入流程→... [#campaign-enrollment-flow]content/docs/marketing/campaigns.zh-Hant.mdx:68## 行銷活動加入流程→... [#campaign-enrollment-flow]content/docs/reference/security-and-compliance.zh-Hans.mdx:150### 静态加密→... [#at-rest]content/docs/reference/security-and-compliance.zh-Hans.mdx:178### 字段级控制→... [#field-level-controls]content/docs/reference/security-and-compliance.zh-Hant.mdx:152### 靜態加密→... [#at-rest]content/docs/reference/security-and-compliance.zh-Hant.mdx:180### 欄位級控制→... [#field-level-controls]content/docs/sales/quotes.zh-Hans.mdx:85## 生成报价→... [#generating-a-quote]content/docs/sales/quotes.zh-Hant.mdx:87## 生成報價→... [#generating-a-quote]content/docs/service/sla-and-escalation.zh-Hans.mdx:67## 工单升级→... [#case-escalation]content/docs/service/sla-and-escalation.zh-Hant.mdx:69## 工單升級→... [#case-escalation]content/docs/administration/profiles.zh-Hans.mdx:79## 字段级安全→... [#field-level-security]Same-page links restored (the conservative form PR #1358 shipped, text kept / link removed, is a link again)
marketing/campaigns.zh-Hans.mdx:64[营销活动加入流程](#campaign-enrollment-flow)marketing/campaigns.zh-Hant.mdx:66[行銷活動加入流程](#campaign-enrollment-flow)reference/security-and-compliance.zh-Hans.mdx:90[加密](#field-level-controls)一节reference/security-and-compliance.zh-Hans.mdx:240[静态加密](#at-rest)一节reference/security-and-compliance.zh-Hant.mdx:92[加密](#field-level-controls)一節reference/security-and-compliance.zh-Hant.mdx:242[靜態加密](#at-rest)一節#866 group C cross-page links re-anchored (8)
marketing/campaign-members.zh-Hans.mdx:14/zh-Hans/docs/marketing/campaigns→...#campaign-enrollment-flowmarketing/campaign-members.zh-Hant.mdx:16/zh-Hant/docs/marketing/campaigns→...#campaign-enrollment-flowsales/opportunities.zh-Hans.mdx:184/zh-Hans/docs/sales/quotes→...#generating-a-quotesales/opportunities.zh-Hant.mdx:186/zh-Hant/docs/sales/quotes→...#generating-a-quoteservice/cases.zh-Hans.mdx:124/zh-Hans/docs/service/sla-and-escalation→...#case-escalationservice/cases.zh-Hant.mdx:126/zh-Hant/docs/service/sla-and-escalation→...#case-escalationservice/index.zh-Hans.mdx:30/zh-Hans/docs/service/sla-and-escalation→...#case-escalationservice/index.zh-Hant.mdx:32/zh-Hant/docs/service/sla-and-escalation→...#case-escalationRuling item 4:
administration/sharing-and-security.zh-Hans.mdx:182profiles#字段级安全→profiles#field-level-security(one line. Open PR #1956 also edits this file andprofiles.zh-Hans.mdx; measured against its current diff, no hunk overlaps: its hunks sit at profiles :41-53 and sharing-and-security :27, :45, :114, :205, mine at :79 and :182).Changeset:
.changeset/zh-headings-carry-the-english-anchor-id.md, empty frontmatter (docs only, releases nothing).Verification (all on
4a42859e)apps/docspnpm buildexit 0; the prerendered HTML under.next/server/appcarriesid="campaign-enrollment-flow"(zh-Hans, zh-Hant, en campaigns),at-rest+field-level-controls(both zh security-and-compliance),generating-a-quote(both zh quotes),case-escalation(both zh sla-and-escalation),field-level-security(zh-Hans profiles); zero localized ids remain on those headings, the visible heading text carries no literal[#, and the rendered links point at the English ids (e.g.href="/zh-Hans/docs/service/sla-and-escalation#case-escalation").test/docs-anchor-links.test.ts18/18 passed. Reverse check (one-off, not committed): mutating[#case-escalation]to[#case-escalatio]onsla-and-escalation.zh-Hans.mdxturned it red namingcases.zh-Hans.mdx:124andindex.zh-Hans.mdx:30(1 failed / 17 passed); restored withgit checkout HEAD --,git diff HEADempty, blob hash equals HEAD.pnpm verifychain, each step's exit: validate 0 · typecheck 0 · lint 0 · lint:i18n-gate 0 · hygiene 0 · hygiene:tokens 0 · build 0 · test 0 (173 files, 3716 passed, 1 skipped).Acceptance notes
Left alone on purpose (same rule, not named by the ruling's items 1-4 or this dispatch's file surface; reported to the seat, not fixed here):
administration/sharing-and-security.zh-Hant.mdx:184still links the localizedprofiles#欄位層級安全(it resolves; the ruling's item 4 names the zh-Hans file only).reference/performance-and-limits.zh-Han{s,t}→guides/import-and-export(en#scheduled-export),service/sla-and-escalation.zh-Han{s,t}→ai-copilot/skills(en#case-triage),service/knowledge-base.zh-Han{s,t}→service(en#standard-dashboards--reports).Generated by Claude Code