Skip to content

Commit 3ad5f71

Browse files
chore(deps): update astro to v6 and starlight to v0.38 (#3545)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
1 parent e66b015 commit 3ad5f71

13 files changed

Lines changed: 1000 additions & 930 deletions

File tree

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
- uses: actions/setup-node@v4
1818
with:
19-
node-version: 20
19+
node-version: 22
2020
cache: 'pnpm'
2121

2222
- run: pnpm i

.github/workflows/syncSponsorsData.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@ jobs:
1010
sync-sponsors-data:
1111
name: Sync Sponsors Data
1212
runs-on: ubuntu-latest
13-
13+
1414
steps:
1515
- name: Checkout repository
1616
uses: actions/checkout@v4
17-
17+
1818
- uses: pnpm/action-setup@v4
1919

2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version: 20
22+
node-version: 22
2323
cache: 'pnpm'
2424

2525
- run: pnpm i
26-
26+
2727
- name: sync-sponsors
2828
run: pnpm sync:sponsors
2929
env:
3030
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131

3232
- run: pnpm prettier src/data -w
33-
33+
3434
# tauri-docs PR
3535
- name: Git config
3636
run: |

astro.config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ export default defineConfig({
7676
integrations: [
7777
starlight({
7878
plugins: [
79-
starlightBlog({ authors }),
79+
starlightBlog({
80+
authors,
81+
// We're doing it in `src/components/overrides/Header.astro`
82+
navigation: 'none',
83+
}),
8084
starlightSidebarTopics(
8185
[
8286
{

package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,28 @@
2424
"preview": "astro preview"
2525
},
2626
"dependencies": {
27-
"@astrojs/markdown-remark": "^6.3.2",
28-
"@astrojs/rss": "^4.0.12",
29-
"@astrojs/starlight": "0.36.0",
27+
"@astrojs/markdown-remark": "^7.1.0",
28+
"@astrojs/rss": "^4.0.18",
29+
"@astrojs/starlight": "0.38.2",
3030
"@lunariajs/core": "^0.1.1",
3131
"@lunariajs/starlight": "^0.1.1",
32+
"@types/jsdom": "^28.0.1",
3233
"@types/json-schema": "^7.0.15",
33-
"astro": "^5.15.9",
34-
"astro-d2": "^0.8.0",
34+
"astro": "^6.1.3",
35+
"astro-d2": "^0.10.0",
3536
"astro-feelback": "^0.3.4",
3637
"astrojs-service-worker": "^2.0.0",
3738
"jsdom": "^28.0.0",
3839
"prettier": "^3.2.5",
3940
"prettier-plugin-astro": "^0.14.1",
4041
"rehype-autolink-headings": "^7.1.0",
4142
"sass": "^1.89.0",
42-
"sharp": "^0.34.0",
43-
"shiki": "^3.0.0",
44-
"starlight-blog": "^0.24.0",
45-
"starlight-sidebar-topics": "^0.6.0",
46-
"starlight-links-validator": "^0.18.0"
43+
"sharp": "^0.34.5",
44+
"shiki": "^4.0.2",
45+
"starlight-blog": "^0.26.1",
46+
"starlight-links-validator": "^0.21.0",
47+
"starlight-sidebar-topics": "^0.7.1",
48+
"vite": "^7.3.1"
4749
},
4850
"minimumReleaseAge": 4320,
4951
"packageManager": "pnpm@10.29.3",

packages/fetch-sponsors/config.ts

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
import { fileURLToPath } from 'url';
2-
import path from 'path';
1+
import { searchForWorkspaceRoot } from 'vite';
2+
import process from 'node:process';
3+
import path from 'node:path';
34

4-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
5+
// FIXME: This is used by both this package and the starlight build environment,
6+
// so we can't use `import ProjectContext from 'virtual:starlight/project-context'` here
7+
// (starlight seems to copy all the dependency files out so dynamic relative paths don't work)
8+
const workspaceRoot = searchForWorkspaceRoot(process.cwd());
59

6-
export const OPEN_COLLECTIVE_FILE = path.resolve(
7-
__dirname,
8-
'../../src/data/openCollectiveData.json'
9-
);
10-
export const GITHUB_SPONSORS_FILE = path.resolve(
11-
__dirname,
12-
'../../src/data/githubSponsorsData.json'
13-
);
10+
export const OPEN_COLLECTIVE_FILE = path.resolve(workspaceRoot, 'src/data/openCollectiveData.json');
11+
export const GITHUB_SPONSORS_FILE = path.resolve(workspaceRoot, 'src/data/githubSponsorsData.json');
1412
export const GITHUB_CONTRIBUTORS_FILE = path.resolve(
15-
__dirname,
16-
'../../src/data/githubContributorsData.json'
13+
workspaceRoot,
14+
'src/data/githubContributorsData.json'
1715
);
1816

1917
export const PLATINUM_THRESHOLD = 5_000;

0 commit comments

Comments
 (0)