Skip to content

[finding] kernel/index.mdx labels /docs/plugins with the section title while the page it lands on is titled "Plugin System" #10476

Description

@os-zhuang

Observation, not a defect with a repro — and the judgement call is genuinely open, which is why this is recorded rather than fixed.

Found while sweeping content/docs/** for the /docs/deployment label defect in #8984. That card's third row is content/docs/kernel/index.mdx:46, and the same line carries a second link with the same shape against a different target:

- **Neighbors:** building and packaging plugins is covered in [Plugins & Packages](/docs/plugins); running the kernel in production is covered in [Deployment Overview](/docs/deployment).
  • /docs/plugins resolves to content/docs/plugins/index.mdx, whose frontmatter is title: Plugin System.
  • Plugins & Packages is the section title, from content/docs/plugins/meta.json.

So both strings exist in the nav — one as a group, one as the page — which is exactly the property #8984 identified as making this class hard to notice.

Why it was NOT swept into #8984's PR

Deliberate, and worth stating so the next reader does not think it was missed:

  1. Different link target.docs: three pages link the deployment section index under labels that name neither of its two lifecycles #8984 is scoped to links pointing at /docs/deployment; its dispatch was explicit that re-pointing or widening targets is a different card.

  2. The correct shape is not pinned by existing evidence. Whether this is wrong depends on whether the author meant to send the reader to the section or to the page — "building and packaging plugins is covered in …" reads naturally as a section reference, and the section really is titled Plugins & Packages. docs: three pages link the deployment section index under labels that name neither of its two lifecycles #8984's card made that judgement explicitly for deployment; nobody has made it here.

  3. Counter-evidence that section-title labels are an accepted convention. The module grid in content/docs/index.mdx uses section titles uniformly for section-root links, including where they diverge from the page title:

    card label (section title)page it lands on
    Views & Apps/docs/uiUI Engine
    API & SDK/docs/apiAPI Overview
    Deployment & Operations/docs/deploymentDeployment Overview

    That grid was examined during the docs: three pages link the deployment section index under labels that name neither of its two lifecycles #8984 sweep and left alone for the same reason.

What would settle it

A ruling on whether a prose link to a section root should carry the section title or the landing page's title. If the answer is "the page's title", this line and the content/docs/index.mdx grid are both in scope and it is a small mechanical sweep; if "the section title", content/docs/kernel/index.mdx:46 is already correct and nothing changes.

No gate covers it either way: check:doc-anchors judges only #fragment targets, check:docs-redirects judges only that the destination resolves, and check:published-readme-links covers published package READMEs rather than content/docs. Link labels have no owner. Same class as the closed #9668.

Related: #8984.


Generated by Claude Code

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions