Skip to content

Commit 6f250f3

Browse files
committed
feat: Add changelog functionality with starlight-changelog
- Installed starlight-changelog plugin - Configured changelog at /changelog URL - Added changelog link to sidebar with 'New' badge - Created initial v0.1.0 release entry - Comprehensive release notes with features, metrics, and acknowledgments URL: https://docs.lumos-lang.com/changelog
1 parent e959d9b commit 6f250f3

File tree

4 files changed

+318
-3
lines changed

4 files changed

+318
-3
lines changed

astro.config.mjs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @ts-check
22
import { defineConfig } from 'astro/config';
33
import starlight from '@astrojs/starlight';
4+
import starlightChangelog from 'starlight-changelog';
45

56
// https://astro.build/config
67
export default defineConfig({
@@ -27,6 +28,14 @@ export default defineConfig({
2728
customCss: [
2829
'./src/styles/custom.css',
2930
],
31+
plugins: [
32+
starlightChangelog({
33+
// Use /changelog as the base URL
34+
prefix: 'changelog',
35+
// Set the title for the changelog page
36+
title: 'Changelog',
37+
}),
38+
],
3039
sidebar: [
3140
{
3241
label: 'Getting Started',
@@ -63,6 +72,11 @@ export default defineConfig({
6372
{ label: 'Token Vesting', slug: 'examples/token-vesting' },
6473
],
6574
},
75+
{
76+
label: 'Changelog',
77+
link: '/changelog/',
78+
badge: { text: 'New', variant: 'success' },
79+
},
6680
],
6781
}),
6882
],

package-lock.json

Lines changed: 179 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"dependencies": {
1313
"@astrojs/starlight": "^0.36.2",
1414
"astro": "^5.6.1",
15-
"sharp": "^0.34.2"
15+
"sharp": "^0.34.2",
16+
"starlight-changelog": "^0.24.3"
1617
}
17-
}
18+
}

0 commit comments

Comments
 (0)