Skip to content

fix/links: Fix broken heading links (21 reworded, admin) - #1868

Open
marcleblanc2 wants to merge 2 commits into
mainfrom
fix-reworded-anchors-admin
Open

fix/links: Fix broken heading links (21 reworded, admin)#1868
marcleblanc2 wants to merge 2 commits into
mainfrom
fix-reworded-anchors-admin

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Linear FE-499: Fix doc site issues

Smaller, more easily reviewed subset of fixes from #1861

#anchor links under docs/admin/ whose target heading was reworded. The section still exists; the link now uses the current heading's slug.

Review: for each row, the new heading should be the same topic as the old anchor's words. Rows where the heading was replaced rather than renamed (e.g. several anchors collapsed onto one #configuration or #upgrade-types section) are the ones worth a second look.

Left alone on purpose: anchors that name a JSON-schema key (/admin/repo/perforce#rateLimit, #depots, #p4-user, #p4-passwd); the schema renderer emits no per-key ids, so those get a separate fix.

One to note: #library-examples#examples-2 in docs/admin/config/batch-changes.mdx — the page has several ## Examples headings, so github-slugger numbers them.

Checker findings (npm run check-links -- --check-anchors, from #1858, with its heading-slug fix): 278 on main → 257 on this branch.

Verification

The docs site serves its not-found page with HTTP 200 (fix in progress), so status codes prove nothing. Instead, every changed link was fetched on this PR's Vercel preview and the rendered HTML checked for two ids: the target page's own first heading (taken from its MDX source — the 404 page never has it) and the link's #fragment. Script: node dev/verify-links-live.mjs --site <preview-url>, coming in #1858.

Old links point at the current production site so you can see the breakage; new links point at the preview and land on the heading.

Checked 21 changed links against https://sourcegraph-docs-git-fix-reworded-a-2d2500-sourcegraph-f8c71130.vercel.app: 21 resolve, 0 fail.
Page rendered = the target page's first heading id is present (the 404 page never has it); Anchor = the #fragment is an id on the page. Old links point at the current site.

All 21 links
File containing the link Old link (broken today) New link (preview) Page rendered Anchor found
docs/admin/auth/index.mdx /admin/code-hosts/github#repository-syncing /admin/code-hosts/github#selecting-repositories-to-sync
docs/admin/auth/index.mdx #how-to-control-user-sign-up #how-to-control-user-sign-up-and-sign-in-with-github-auth-provider
docs/admin/auth/saml/microsoft-adfs.mdx /admin/auth/saml/#saml-troubleshooting /admin/auth/saml#troubleshooting
docs/admin/code-hosts/bitbucket-server.mdx /integration/bitbucket-server#sourcegraph-bitbucket-server-plugin /integration/bitbucket-server#sourcegraph-bitbucket-plugin
docs/admin/code-hosts/bitbucket-server.mdx /integration/bitbucket-server#sourcegraph-bitbucket-server-plugin /integration/bitbucket-server#sourcegraph-bitbucket-plugin
docs/admin/code-hosts/bitbucket-server.mdx /integration/bitbucket-server#sourcegraph-bitbucket-server-plugin /integration/bitbucket-server#sourcegraph-bitbucket-plugin
docs/admin/code-hosts/gerrit.mdx #configure-gerrit-as-code-host-connection #configure-gerrit-as-a-code-host-connection
docs/admin/code-hosts/gerrit.mdx #add-gerrit-as-an-authnetication-provider #add-gerrit-as-an-authentication-provider
docs/admin/code-hosts/github.mdx /admin/config/batch-changes#commit-signing-for-github /admin/config/batch-changes#commit-signing-with-github-apps
docs/admin/code-hosts/github.mdx /admin/auth/#requiredssoOrgs /admin/auth#github
docs/admin/code-hosts/github.mdx /admin/webhooks/incoming#user-permissions /admin/webhooks/incoming#github
docs/admin/code-hosts/github.mdx /admin/webhooks/incoming#user-permissions /admin/webhooks/incoming#github
docs/admin/code-hosts/github.mdx /admin/webhooks/incoming#user-permissions /admin/webhooks/incoming#github
docs/admin/config/batch-changes.mdx #library-examples #examples-2
docs/admin/how-to/index.mdx /admin/how-to/remove-repo#manually-purge-deleted-repository-data-from-disk /admin/how-to/remove-repo#remove-corrupted-repository-data-from-sourcegraph
docs/admin/permissions/index.mdx /admin/repo/perforce#repository-permissions /admin/repo/perforce#repository-permissions-beta
docs/admin/permissions/webhooks.mdx /admin/webhooks/incoming#user-permissions /admin/webhooks/incoming#github
docs/admin/scim.mdx #setting-up-okta-as-the-idp #configuring-scim-for-okta
docs/admin/security-event-logs.mdx /admin/audit-log#excessive-audit-logging /admin/audit-log#configuring
docs/admin/webhooks/incoming.mdx /integration/bitbucket-server#sourcegraph-bitbucket-server-plugin /integration/bitbucket-server#sourcegraph-bitbucket-plugin
docs/admin/webhooks/incoming.mdx /integration/bitbucket-server#sourcegraph-bitbucket-server-plugin /integration/bitbucket-server#sourcegraph-bitbucket-plugin

Amp threads

@vercel

vercel Bot commented Sep 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sourcegraph-docs Ready Ready Preview Sep 7, 2026 11:26pm UTC

Request Review

@marcleblanc2 marcleblanc2 changed the title Fix broken heading links (23 reworded, admin) Fix broken heading links (21 reworded, admin) Sep 7, 2026
@marcleblanc2 marcleblanc2 changed the title Fix broken heading links (21 reworded, admin) fix/links: Fix broken heading links (21 reworded, admin) Sep 9, 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.

1 participant