Add docs last-updated metadata#60309
Draft
katie-z-geer wants to merge 1 commit into
Draft
Conversation
Adds the freshness pipeline on top of docs AI-readiness: per-page last-updated dates from git history with a committed last-updated.json fallback, <lastmod> in sitemap.xml, last-modified / article:modified_time HTML meta, llms.txt date annotations, and the artifact freshness test.
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.
Adds per-page freshness metadata to the docs, generated from the same mdBook source as the rest of the AI-readiness artifacts.
docs/last-updated.jsonfallback for shallow CI/deploy checkouts.<lastmod>todocs/sitemap.xml.last-modifiedandarticle:modified_timemeta tags in the built HTML.llms.txtindex and Markdown copies with last-updated dates.Split out of #59577 so the freshness pipeline — and the shallow-checkout robustness it needs — can be reviewed on its own.
Stacked on
Based on
docs/ai-readiness(#59577), notmain. Set the PR base todocs/ai-readinessand merge that first, or retarget tomainonce it lands. The freshness code plugs into theai_discoverymodule that #59577 introduces.Validation
cargo check -p docs_preprocessorcargo test -p docs_preprocessor(9 passed)./script/clippy -p docs_preprocessorSuggested .rules additions
N/A
Release Notes: