Skip to content

fix(docs): use pathname:// for sitemap footer link#1279

Merged
mathuo merged 1 commit into
masterfrom
fix/docs-sitemap-broken-link
May 14, 2026
Merged

fix(docs): use pathname:// for sitemap footer link#1279
mathuo merged 1 commit into
masterfrom
fix/docs-sitemap-broken-link

Conversation

@mathuo
Copy link
Copy Markdown
Owner

@mathuo mathuo commented May 14, 2026

Summary

  • The "Deploy Docs" workflow has been failing because the Docusaurus build aborts on broken links. Every page is reported as linking to a broken /sitemap.xml.
  • Root cause: commit 6155b1e added a footer entry { label: 'Sitemap', to: '/sitemap.xml' }. Docusaurus's broken-link checker validates to: targets against routed pages, but /sitemap.xml is a static artifact emitted by @docusaurus/plugin-sitemap, not a route — so the checker flags it as broken on every page.
  • Fix: switch to href: 'pathname:///sitemap.xml'. The pathname:// prefix is the documented Docusaurus escape hatch that tells the link processor to treat the value as a literal URL path (bypassing the broken-link check).

Failing run for reference: https://github.com/mathuo/dockview/actions/runs/25828829653

Test plan

  • CI "Deploy Docs" workflow passes on this branch
  • Verify the Sitemap footer link still navigates to /sitemap.xml on the deployed site

🤖 Generated with Claude Code

Docusaurus's broken-link checker validates `to:` against routed pages,
but /sitemap.xml is a static artifact emitted by the sitemap plugin.
Treating it as a route caused the broken-link check to fail on every
page and broke the docs build.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mathuo mathuo merged commit 8db7af8 into master May 14, 2026
4 checks passed
@sonarqubecloud
Copy link
Copy Markdown

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