Skip to content

Add docs last-updated metadata#60309

Draft
katie-z-geer wants to merge 1 commit into
docs/ai-readinessfrom
docs/last-updated
Draft

Add docs last-updated metadata#60309
katie-z-geer wants to merge 1 commit into
docs/ai-readinessfrom
docs/last-updated

Conversation

@katie-z-geer

Copy link
Copy Markdown
Contributor

Adds per-page freshness metadata to the docs, generated from the same mdBook source as the rest of the AI-readiness artifacts.

  • Derives each page's last-updated date from Git history, with a committed docs/last-updated.json fallback for shallow CI/deploy checkouts.
  • Adds <lastmod> to docs/sitemap.xml.
  • Emits last-modified and article:modified_time meta tags in the built HTML.
  • Annotates the generated llms.txt index 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), not main. Set the PR base to docs/ai-readiness and merge that first, or retarget to main once it lands. The freshness code plugs into the ai_discovery module that #59577 introduces.

Validation

  • cargo check -p docs_preprocessor
  • cargo test -p docs_preprocessor (9 passed)
  • ./script/clippy -p docs_preprocessor

Suggested .rules additions

N/A

Release Notes:

  • N/A

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.
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jul 2, 2026
@zed-community-bot zed-community-bot Bot added the staff Pull requests authored by a current member of Zed staff label Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant