Skip to content

docs: fix broken anchors in batch and architecture docs - #27

Closed
viwe-monai wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
viwe-monai:docs/fix-broken-anchors
Closed

viwe-monai wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
viwe-monai:docs/fix-broken-anchors

Conversation

@viwe-monai

Copy link
Copy Markdown

What

Repairs four dead anchors in the docs, each verified against the rendered page:

  1. docs/deploy/batch.md - the "Send it the rows" row links [fan-out](#fan-out-to-an-endpoint), but no such heading exists on the page. Point it at the fan-out recipe it names: ../../deploy/batch/README.md#4-fan-out-to-a-running-endpoint, the same target the file's Recipe row (line 65) already uses.
  2. docs-site/src/content/docs/deploy/batch.md - same broken anchor in the Starlight copy; fixed with that copy's own convention (absolute GitHub URL to the recipe, matching its Recipe row).
  3. docs/confidence/architecture.md - the Test-Time Compute term links ../glossary.md#fixed-depth-circuits-tc0-vs-test-time-compute, but the rendered heading ### Fixed-Depth Circuits ($\mathsf{TC}^0$) vs. Test-Time Compute gets the anchor #fixed-depth-circuits-mathsftc0-vs-test-time-compute on GitHub (confirmed in the blob page's element ids). Link updated to the real anchor.
  4. docs-site/src/content/docs/confidence/architecture.md - same term in the Starlight copy; the site serializes the math spans differently and generates #fixed-depth-circuits-tc0mathsftc0tc0-vs-test-time-compute (confirmed at https://googlecloudplatform.github.io/dgem/glossary/). Link updated accordingly.

Why

All four links land nowhere as shipped. Three of the four sit in the decoder-ring table and the batch short-answer table - the first places readers click.

How it was verified

  • Anchors checked against GitHub's rendered element ids (blob pages) and the live docs site's HTML.
  • A link/anchor checker run over every *.md in the repo found exactly these four dead targets and no others.

Follow-ups deliberately left out

  • The $\mathsf{TC}^0$ heading produces a noisy anchor under both renderers. Renaming the heading would be cleaner but changes inbound links elsewhere, so this PR only repairs the links.

@google-cla

google-cla Bot commented Nov 4, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@ghchinoy

Copy link
Copy Markdown
Collaborator

Thanks for opening this PR, @viwe-monai! Both broken Markdown anchors in docs/confidence/architecture.md and docs/deploy/batch.md—along with automated #heading anchor validation in CI (scripts/docs_link_check.py)—have now landed on main via #61, so I'm closing this as superseded. Appreciate you spotting these!

@ghchinoy ghchinoy closed this Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants