Skip to content

Add sitemap and sitemap meta tag to docs site#499

Merged
csharpfritz merged 2 commits intodevfrom
copilot/add-sitemap-to-docs-site
Mar 22, 2026
Merged

Add sitemap and sitemap meta tag to docs site#499
csharpfritz merged 2 commits intodevfrom
copilot/add-sitemap-to-docs-site

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 22, 2026

The docs site was missing a sitemap.xml link tag in the HTML <head>, limiting discoverability by search engines.

Changes

  • docs/_overrides/main.html — New MkDocs Material theme override that injects a <link rel="sitemap"> tag into every page's <head> via the extrahead block:
    <link rel="sitemap" type="application/xml" title="Sitemap" href="{{ config.site_url }}sitemap.xml">
  • mkdocs.yml — Added custom_dir: docs/_overrides to the theme config to activate the override.

MkDocs already generates sitemap.xml automatically when site_url is set; this adds the corresponding HTML meta link. The _overrides directory was already pre-excluded by the mkdocs-exclude plugin, indicating this pattern was anticipated.


⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.

Copilot AI linked an issue Mar 22, 2026 that may be closed by this pull request
@csharpfritz csharpfritz marked this pull request as ready for review March 22, 2026 20:38
Copilot AI changed the title [WIP] Add sitemap and meta tag to docs website Add sitemap and sitemap meta tag to docs site Mar 22, 2026
Copilot AI requested a review from csharpfritz March 22, 2026 20:41
@csharpfritz csharpfritz merged commit 9a884b7 into dev Mar 22, 2026
1 check passed
@csharpfritz csharpfritz deleted the copilot/add-sitemap-to-docs-site branch March 22, 2026 20:44
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.

Docs site: needs a sitemap

2 participants