feat: add git-derived lastmod to sitemap and fix canonical URLs - #14
Merged
scriptautomate-bc merged 2 commits intoSep 5, 2026
Merged
Conversation
Bump sphinx-sitemap to 2.9.0 to pick up sitemap_show_lastmod, which
sources <lastmod> from each page's git commit time via
sphinx-last-updated-by-git. Move the en/latest/ path segment into
html_baseurl and switch sitemap_url_scheme to {link} so rel=canonical
tags resolve correctly instead of pointing at a 404.
The build job's checkout was depth-1, which causes sphinx-last-updated-by-git to either fail the build under -W or silently emit sitemap entries with no lastmod. Use fetch-depth: 0 with a blobless filter to keep the clone cheap while preserving commit history.
scriptautomate-bc
marked this pull request as ready for review
September 5, 2026 00:24
This was referenced Sep 5, 2026
Merged
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.
Summary
Basic sitemap improvements across the docs to assist with AI agent or search engine crawlers for understanding when certain docs have last been updated.
Details
sources from each page's git commit time via
sphinx-last-updated-by-git. Move the en/latest/ path segment into
html_baseurl and switch sitemap_url_scheme to {link} so rel=canonical
tags resolve correctly instead of pointing at a 404.
sphinx-last-updated-by-git to either fail the build under -W or
silently emit sitemap entries with no lastmod. Use fetch-depth: 0
with a blobless filter to keep the clone cheap while preserving
commit history.