Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
# Astro 6 requires Node >=22.12; 20 trips an EBADENGINE on `npm
# ci` and a hard "Node.js v20 is not supported by Astro!" on
# `astro build`. Bumped together with the docs astro+starlight
# group bump (#1346).
node-version: '22'
cache: 'npm'
cache-dependency-path: docs/package-lock.json

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/docs-screenshots-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
# Astro 6 requires Node >=22.12; mirrors the bump in
# docs-build.yml that landed with the docs astro+starlight
# group bump (#1346).
node-version: '22'
cache: 'npm'
cache-dependency-path: docs/package-lock.json

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/docs-screenshots-capture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
# Astro 6 requires Node >=22.12; mirrors the bump in
# docs-build.yml that landed with the docs astro+starlight
# group bump (#1346).
node-version: '22'
cache: 'npm'
cache-dependency-path: trusted/docs/package-lock.json

Expand Down
27 changes: 17 additions & 10 deletions docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,23 @@ export default defineConfig({
attrs: { name: 'theme-color', content: '#ea580c' },
},
],
// Starlight 0.30 takes `social` as a record keyed by platform
// name (the schema is `Record<KnownPlatform, url>` in
// node_modules/@astrojs/starlight/schemas/social.ts). Newer
// Starlight (>= 0.32-ish) expanded this to the
// `[{icon, label, href}]` array shape; bump this when the
// dependency floor moves.
social: {
github: 'https://github.com/sbpp/sourcebans-pp',
discord: 'https://discord.gg/tzqYqmAtF5',
},
// Starlight 0.33 changed `social` from a `Record<KnownPlatform, url>`
// map to a `[{icon, label, href}]` array (see the changelog at
// https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md#0330).
// Migrated alongside the @astrojs/starlight ^0.30 → ^0.39 bump
// in this PR.
social: [
{
icon: 'github',
label: 'GitHub',
href: 'https://github.com/sbpp/sourcebans-pp',
},
{
icon: 'discord',
label: 'Discord',
href: 'https://discord.gg/tzqYqmAtF5',
},
],
editLink: {
// Source of truth lives in sourcebans-pp; the deploy shell is
// sbpp.github.io. Edit links point back here.
Expand Down
Loading
Loading