Skip to content

Enable last updated dates on docs pages#936

Merged
AvdLee merged 3 commits intomasterfrom
docs/seo-lastmod
Mar 4, 2026
Merged

Enable last updated dates on docs pages#936
AvdLee merged 3 commits intomasterfrom
docs/seo-lastmod

Conversation

@AvdLee
Copy link
Copy Markdown
Owner

@AvdLee AvdLee commented Mar 2, 2026

Summary

  • Enables Starlight's lastUpdated feature to display modification dates on docs pages
  • Dates are automatically derived from git commit history
  • Improves SEO signals by showing content freshness to search engines

Changes

  • Modified docs/astro.config.ts to add lastUpdated: true to Starlight config

Test plan

  • Verify npm run build passes
  • Check a docs page shows "Last updated" date at the bottom
  • Verify the date corresponds to the file's last git commit

Add lastUpdated: true to Starlight config so each docs page shows
when it was last modified. Dates are derived from git commit history.
Repository owner deleted a comment from Copilot AI Mar 2, 2026
@AvdLee AvdLee requested a review from Copilot March 2, 2026 09:42
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables Starlight’s lastUpdated feature in the docs site configuration so docs pages can display a “Last updated” date derived from git history.

Changes:

  • Enable lastUpdated in the Starlight integration config.
Comments suppressed due to low confidence (1)

docs/astro.config.ts:84

  • Starlight’s lastUpdated relies on git history at build time. Our GitHub Actions workflows that build the docs use actions/checkout with the default shallow clone (no fetch-depth specified), which typically prevents git log from finding the last-modifying commit for most files—so the “Last updated” date may be missing or incorrect in CI/production. Consider updating the docs build/deploy workflows to fetch full history (or otherwise ensure the required commit history is available) so this setting works as intended.
      lastUpdated: true,

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Starlight's lastUpdated relies on git log to find each file's last
commit date. Without fetch-depth: 0 the shallow clone in CI would
produce missing or incorrect dates.
Copy link
Copy Markdown
Collaborator

@ngnijland ngnijland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I left one comment that I think we should address

Comment thread .github/workflows/deploy.yml
Co-authored-by: Niek <ngnijland@gmail.com>
@AvdLee AvdLee merged commit aad48c3 into master Mar 4, 2026
1 check passed
@AvdLee AvdLee deleted the docs/seo-lastmod branch March 4, 2026 13:59
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.

3 participants