Conversation
Add lastUpdated: true to Starlight config so each docs page shows when it was last modified. Dates are derived from git commit history.
Contributor
There was a problem hiding this comment.
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
lastUpdatedin the Starlight integration config.
Comments suppressed due to low confidence (1)
docs/astro.config.ts:84
- Starlight’s
lastUpdatedrelies on git history at build time. Our GitHub Actions workflows that build the docs useactions/checkoutwith the default shallow clone (nofetch-depthspecified), which typically preventsgit logfrom 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.
ngnijland
approved these changes
Mar 4, 2026
Collaborator
ngnijland
left a comment
There was a problem hiding this comment.
LGTM! I left one comment that I think we should address
Co-authored-by: Niek <ngnijland@gmail.com>
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
lastUpdatedfeature to display modification dates on docs pagesChanges
docs/astro.config.tsto addlastUpdated: trueto Starlight configTest plan
npm run buildpasses