Skip to content

fix/links: Fix broken heading links (13 reworded, integrations & misc) - #1872

Open
marcleblanc2 wants to merge 1 commit into
mainfrom
fix-reworded-anchors-misc
Open

fix/links: Fix broken heading links (13 reworded, integrations & misc)#1872
marcleblanc2 wants to merge 1 commit into
mainfrom
fix-reworded-anchors-misc

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/integration/, docs/getting-started/, docs/analytics, docs/cloud and docs/technical-changelog 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.

Checker findings (npm run check-links -- --check-anchors, from #1858, with its heading-slug fix): 278 on main → 265 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 13 changed links against https://sourcegraph-docs-git-fix-reworded-a-c82527-sourcegraph-f8c71130.vercel.app: 13 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 13 links
File containing the link Old link (broken today) New link (preview) Page rendered Anchor found
docs/analytics/api.mdx #token-creation #access-tokens
docs/cloud/index.mdx #custom-domain #custom-domains
docs/getting-started/github-vs-sourcegraph.mdx /code-search/queries#standard-search /code-search/queries#regular-expression-search
docs/getting-started/github-vs-sourcegraph.mdx /code-search/working/search-contexts#beta-query-based-search-contexts /code-search/working/search-contexts#query-based-search-contexts
docs/getting-started/index.mdx #mcp-server-integration #mcp-server
docs/getting-started/index.mdx /code-search/features#search-scopes /code-search/features#saved-searches
docs/integration/bitbucket-server.mdx #sourcegraph-bitbucket-server-plugin #sourcegraph-bitbucket-plugin
docs/integration/gitolite.mdx /admin/code-hosts/gitolite#repository-syncing /admin/code-hosts/gitolite#configuration
docs/integration/gitolite.mdx /admin/code-hosts/gitolite#repository-syncing /admin/code-hosts/gitolite#configuration
docs/integration/phabricator.mdx /admin/code-hosts/phabricator#repository-linking-and-syncing /admin/code-hosts/phabricator#repository-association
docs/integration/phabricator.mdx /admin/code-hosts/phabricator#repository-linking-and-syncing /admin/code-hosts/phabricator#repository-association
docs/integration/phabricator.mdx /admin/code-hosts/phabricator#repository-syncing-and-linking /admin/code-hosts/phabricator#repository-association
docs/technical-changelog.mdx /self-hosted/updates#multi-version-upgrades /self-hosted/updates#upgrade-types

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 (13 reworded, integrations & misc) fix/links: Fix broken heading links (13 reworded, integrations & misc) 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