Skip to content

Commit 96f3003

Browse files
authored
Fix Starlight/Zod v4 incompatibility: upgrade to 0.40.0, fix social/sidebar config, add CI workflow
1 parent c8acf47 commit 96f3003

4 files changed

Lines changed: 108 additions & 290 deletions

File tree

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches-ignore: [main]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Setup pnpm
15+
uses: pnpm/action-setup@v4
16+
# version is read from the "packageManager" field in package.json
17+
- name: Setup Node
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
cache: pnpm
22+
- name: Install dependencies
23+
run: pnpm install --frozen-lockfile
24+
- name: Build with Astro
25+
run: pnpm build

astro.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export default defineConfig({
2121
replacesTitle: false,
2222
},
2323
favicon: "/favicon.png",
24-
social: {
25-
github: "https://github.com/data-privacy-stack",
26-
},
24+
social: [
25+
{ icon: "github", label: "GitHub", href: "https://github.com/data-privacy-stack" },
26+
],
2727
customCss: ["./src/styles/tokens.css"],
2828
head: [
2929
{
@@ -49,7 +49,7 @@ export default defineConfig({
4949
sidebar: [
5050
{
5151
label: "Blog",
52-
autogenerate: { directory: "blog" },
52+
items: [{ autogenerate: { directory: "blog" } }],
5353
},
5454
// Back to the main site
5555
{ label: "← Data Privacy Stack", link: "/" },

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"astro": "astro"
1414
},
1515
"dependencies": {
16-
"@astrojs/starlight": "^0.32.0",
16+
"@astrojs/starlight": "^0.40.0",
1717
"astro": "^6.4.6",
1818
"sharp": "^0.33.5"
1919
}

0 commit comments

Comments
 (0)