fix/links: Fix broken heading links (28 dead sections) - #1865
Draft
marcleblanc2 wants to merge 1 commit into
Draft
fix/links: Fix broken heading links (28 dead sections)#1865marcleblanc2 wants to merge 1 commit into
marcleblanc2 wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Sep 7, 2026
marcleblanc2
marked this pull request as draft
September 10, 2026 01:14
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.
Linear FE-499: Fix doc site issues
Smaller, more easily reviewed subset of fixes from #1861
#anchorlinks whose target section no longer exists on the page. The page is still the right destination, so the link now points at the page top; where the linked words themselves described the removed section, the link is unlinked and the words kept:docs/admin/code-hosts/github.mdx: "less than 1000 results" (therepositoryQuery returns first 1000 results onlysection is gone)docs/admin/how-to/converting-version-contexts-to-search-contexts.mdx: "version contexts" ×2 (feature sunset, section gone)docs/code-navigation/how-to/index-other-languages.mdx: "supply a GitHub token" (the ownership-proof section is gone)Review: for each row, confirm the page has no heading close to the old anchor. Each was checked against the page's headings and against production; none has a near match.
Left alone on purpose:
#view-and-edit-site-configurationand#editing-your-site-configuration-if-you-cannot-access-the-web-uion/admin/config/site-config— #1861 dropped them but both headings exist. Also left alone: anchors that name a JSON-schema key (/admin/config/site-config#<key>,/admin/code-hosts/<host>#<key>); the schema renderer emits no per-key ids, so those get a separate fix.Checker findings (
npm run check-links -- --check-anchors, from #1858, with its heading-slug fix): 278 on main → 250 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.
The 4 unlinked lines above carry no link to check and are not in the table.
Checked 24 changed links against https://sourcegraph-docs-git-fix-dead-secti-081906-sourcegraph-f8c71130.vercel.app: 24 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 24 links
docs/admin/audit-log.mdx/self-hosted/deploy/kubernetes/scale#core-components/self-hosted/deploy/kubernetes/scaledocs/admin/auth/index.mdx/admin/config/site-config#authentication-providers/admin/config/site-configdocs/admin/faq.mdx/admin/repo/auth#repositories-that-need-http-s-or-ssh-authentication/admin/repo/authdocs/admin/how-to/site-admin-quickstart.mdx/self-hosted/updates/#migrating-to-a-new-deployment-type/self-hosted/updatesdocs/batch-changes/delete-a-batch-change.mdx/batch-changes/create-a-batch-change#viewing-batch-changes/batch-changes/create-a-batch-changedocs/code-navigation/auto-indexing.mdx/code-navigation/features#dependency-navigation/code-navigation/featuresdocs/code-navigation/auto-indexing.mdx/code-navigation/features#dependency-navigation/code-navigation/featuresdocs/code-navigation/index.mdx/code-navigation/features#find-implementations/code-navigation/featuresdocs/code-search/index.mdx/code-search/features#statistics/code-search/featuresdocs/cody/clients/install-jetbrains.mdx/cody/enterprise/model-configuration#completions-configuration/cody/enterprise/model-configurationdocs/cody/clients/install-vscode.mdx/model-provider#configuring-custom-models/model-providerdocs/cody/core-concepts/index.mdx/admin/architecture#cody/admin/architecturedocs/cody/enterprise/model-configuration.mdx/cody/enterprise/model-configuration#self-hosted-models/cody/enterprise/model-configurationdocs/getting-started/github-vs-sourcegraph.mdx/code-navigation/features#beta-dependency-navigation/code-navigation/featuresdocs/integration/bitbucket-server.mdx/integration/browser-extension#configuring-the-sourcegraph-instance-to-use/integration/browser-extensiondocs/integration/github.mdx/integration/browser-extension#configuring-the-sourcegraph-instance-to-use/integration/browser-extensiondocs/integration/gitlab.mdx/integration/browser-extension#configuring-the-sourcegraph-instance-to-use/integration/browser-extensiondocs/integration/phabricator.mdx/integration/browser-extension#configuring-the-sourcegraph-instance-to-use/integration/browser-extensiondocs/self-hosted/deploy/kubernetes/configure.mdx/self-hosted/deploy/kubernetes/kustomize/#patches-directory/self-hosted/deploy/kubernetes/kustomizedocs/self-hosted/deploy/kubernetes/configure.mdx/self-hosted/deploy/kubernetes/kustomize/#patches-directory/self-hosted/deploy/kubernetes/kustomizedocs/self-hosted/deploy/kubernetes/configure.mdx/admin/code-hosts/#full-code-host-docs/admin/code-hostsdocs/self-hosted/deploy/kubernetes/configure.mdx/self-hosted/deploy/kubernetes/kustomize/#patches-directory/self-hosted/deploy/kubernetes/kustomizedocs/self-hosted/deploy/repositories.mdx/self-hosted/deploy/#installation/self-hosted/deploydocs/self-hosted/workers.mdx/admin/migration#mout-of-band-migrations/admin/migrationAmp threads