Repository navigation
docs: 修掉两处悬空锚点 —— sla-and-escalation 指向 automation 的 Flows 一节,zh 版 mobile 的 roadmap 去锚点 - #868
Merged
Merged
Conversation
sla-and-escalation linked /docs/administration/automation#case-escalation in all three locales, but the automation page has no "Case Escalation" heading — "Case Escalation Process" is a row in the table under "## Flows (multi-step)". English now links #flows-multi-step; the Chinese pages drop the anchor because their heading is 流程(多步骤)/ 流程(多步驟), whose slug differs. guides/mobile in Chinese linked whats-new#roadmap while the translated heading is 路线图 / 路線圖 — heading translated, anchor not. Both drop the anchor, matching PR #755 / #762. English keeps #roadmap, which resolves.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
yinlianghui
marked this pull request as ready for review
August 6, 2026 01:07
This was referenced Aug 6, 2026
Closed
Closed
yinlianghui
added a commit
to yinlianghui/hotcrm
that referenced
this pull request
Aug 10, 2026
…ach (objectstack-ai#881) (objectstack-ai#893) The closing paragraph of the *Sharing* section on `content/docs/revenue/contracts.mdx` was rewritten in objectstack-ai#699 (0899b4f) against the reach measured in objectstack-ai#694: neither route an admin can take actually delivers "contracts follow the account" today — a sharing rule on Contract widens the records it matches for every holder of the object, and a Controlled-by-Parent OWD derives org-wide in this release, the parent link not being consulted per caller. That commit touched the English page only. Both Chinese pages stayed on the pre-correction text, which said the two routes merely "open contract visibility to every user of the object" and omitted the conclusion the correction exists to deliver. `contracts.zh-Hans.mdx` and `contracts.zh-Hant.mdx` now carry the same three facts as the English page, and cite the *Controlled by Parent, in practice* section by its translated heading — “由父级控制”在实践中 / 「由父層控制」在實務中 — on top of the page-level link they already had. No new anchor link: the translated headings do not slugify to the English anchor, so the zh pages keep the un-anchored form used since objectstack-ai#868, and the English page cites that section as plain text as well. Translation only — no new assertion beyond what the English page states. No English page, metadata, profile, sharing-rule or OWD change; the reach being described stays pinned by `test/parent-derived-reach.test.ts`. The first two bullets of the same section, rewritten in objectstack-ai#878, are untouched. Fixes objectstack-ai#881 Co-authored-by: Claude <noreply@anthropic.com>
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 #749
Fixes #764
两单同缺陷类(站内链接的锚点在目标页不存在),文件面互斥,按 #749 的 PM 认领裁定并单一个 PR。
slug 规则先钉死(两单共用的判据)
不推断,实测:
apps/docs用 fumadocs-core 16.9.3,source.config.ts的mdxOptions是空的,走默认remark-heading—— 也就是github-slugger。装github-slugger@2逐个跑出来:对照组佐证这套规则与仓库现状一致:
content/docs/administration/sharing-and-security.zh-Hans.mdx:169的既有链接#字段级安全,目标profiles.zh-Hans.mdx的## 字段级安全算出来正是字段级安全—— 现有能跳的锚点按这套规则算得出来,所以它就是渲染时用的那套。#749 —— sla-and-escalation 三语的 automation 锚点
前提复核:issue 正文列的 automation 页标题清单已经过期(#854 重构过),所以按裁定实测了当前
main:## Workflow rules这个标题已经不存在了(#833 把那节退休成了 Flows 节里的一段说明)。但 issue 的核心断言仍然成立:automation 页三语都没有 Case Escalation 这个标题,#case-escalation确实悬空;Case Escalation Process 是## Flows (multi-step)一节内置流程表里的一行(automation.mdx:73)。前提有效。改法按裁定:
/docs/administration/automation#flows-multi-step。## Flows (multi-step)在,slug 实测flows-multi-step。/zh-Hans/docs/administration/automation与/zh-Hant/docs/administration/automation。zh 标题是「流程(多步骤)」「流程(多步驟)」,slug 分别是流程多步骤/流程多步驟,与英文不同名;按 PR docs(guides): email-and-calendar 按实测改写——Log a Call 的三写路径、活动指标所在仪表盘、连接器段落标注未落地 (#738) #755 / docs(guides): 按实际落地能力重述 integrations 页,并校正指南索引描述行 (#756) #762 已立的写法,zh 侧不带锚点。sla-and-escalation是 #850 八页族之一(未派)。本 PR 只动:128这一行的链接,该页其它内容(包括:129的「工作流规则」字样)一概未碰 —— 那是 #850 的面。#764 —— zh 版 mobile 的 roadmap 锚点
前提复核:实测确认
content/docs/whats-new.zh-Hans.mdx:98是## 路线图、whats-new.zh-Hant.mdx:98是## 路線圖,slug 里不含roadmap,两处#roadmap悬空;英文侧whats-new.mdx:116的## Roadmap在,guides/mobile.mdx:10的#roadmap正常。前提有效。zh 两处去锚点(
/zh-Hans/docs/whats-new、/zh-Hant/docs/whats-new),en 侧不动。全仓同类扫尾(只报不改)
按裁定第 3 条做了一次全量抽检:解析
content/docs下所有带锚点的站内链接,用github-slugger算目标页每个标题的 slug 比对。其它链接形式(href=、reference-style 链接定义、fumadocs Card 的url=、content/blog)实测零命中,内联 markdown 链接即全集。main上 36 条带锚点站内链接,22 条悬空。本 PR 修掉其中属于两单的 5 条;其余 17 条已另开 #866 记录,含逐条的「链接位置 / 锚点 / 目标标题 / 实际 slug」表和三类新成因(emoji 标题产生前导连字符的 slug、标题后来加了后缀、zh 页沿用英文锚点)。本 PR 后:(32 = 36 − 4,因为 4 条 zh 链接去掉了锚点、1 条 en 链接换了锚点。)
顺带记一条:
.github/workflows/link-check.yml配的是file-extension: '.md',而content/docs全是.mdx—— 这个 workflow 对产品文档实际是空转的,所以这批悬空锚点在 CI 里从来没有信号。已写进 #867。守卫能力单已另立 #867(不带标签、不指派,交 PM 分级):记录四种已证成因、现有门禁为何都抓不到、以及 #749 评论建议的「链接语言前缀一致性」检查(本轮扫尾该类零命中,属防复发而非修存量,已在单里注明以免定级虚高)。按裁定本 PR 不加测试。
验证
worktree
hotcrm-issue-749,共享锁 +NODE_OPTIONS=--max-old-space-size=4096:test里 source-hygiene 元测试打印的✗ source hygiene: scanned director(y|ies) missing: .changeset是该用例的预期 stderr,不是失败(TEST_EXIT=0)。控制字节自扫(5 个改动文件 + changeset)零命中:
changeset:
.changeset/dangling-anchors.md('hotcrm': patch),站内路径一律反引号写(#797)。Generated by Claude Code