Skip to content

Commit aad48c3

Browse files
authored
Merge pull request #936 from AvdLee/docs/seo-lastmod
Enable last updated dates on docs pages
2 parents 1a646c7 + 270925c commit aad48c3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
steps:
2121
- name: Checkout your repository using git
2222
uses: actions/checkout@v4
23+
with:
24+
# We need this for the `lastUpdated` configuration in the Starlight docs to work.
25+
#
26+
# Number of commits to fetch. 0 indicates all history for all branches and tags. If not set to `0` the checkout action will truncate git history for performance reasons. Loosing accurate updated date data to show on docs pages.
27+
fetch-depth: 0
2328
- name: Install, build, and upload your site
2429
uses: withastro/action@v3
2530
with:

docs/astro.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export default defineConfig({
8181
],
8282
title: "RocketSim Docs",
8383
disable404Route: true,
84+
lastUpdated: true,
8485
logo: {
8586
light: "./src/assets/rocketsim-logo-dark.svg",
8687
dark: "./src/assets/rocketsim-logo.svg",

0 commit comments

Comments
 (0)