Skip to content

Commit 3477e50

Browse files
authored
docs: upgrade docs dependencies for Astro 6 (#3908)
* chore(deps): upgrade docs dependencies for Astro 6 (DOCSDEV-60) - astro 5.x -> 6.x, starlight 0.37 -> 0.38, markdown-remark 6.x -> 7.x - docs-design-system 0.11 -> 0.12, starlight-versions 0.6 -> 0.8 - starlight-links-validator 0.19 -> 0.23, mermaid 11.12 -> 11.14 - Migrate i18n collection to use i18nLoader (Astro 6 requirement) - Pass explicit sidebar options to starlightFullViewMode for Zod compat * chore(deps): bump remaining docs devDependencies Address review: @eslint/js and eslint bumped from 9.x to 10.x (docs package only; root ESLint 8.x unchanged). Also patch/minor bumps for astro, @astrojs/markdown-remark, prettier, spectaql, @typescript-eslint/parser, typescript-eslint, astro-eslint-parser, eslint-plugin-astro, globals. * chore(deps): pnpm dedupe Removes ~256 duplicate packages from the lockfile. Lockfile only; no package.json specs changed. * Revert "chore(deps): pnpm dedupe" This reverts commit 04b2f6d.
1 parent 4a47620 commit 3477e50

4 files changed

Lines changed: 1495 additions & 959 deletions

File tree

packages/documentation/astro.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,10 @@ export default defineConfig({
388388
errorOnFallbackPages: false,
389389
errorOnInvalidHashes: false
390390
}),
391-
starlightFullViewMode()
391+
starlightFullViewMode({
392+
leftSidebarEnabled: true,
393+
rightSidebarEnabled: true
394+
})
392395
]
393396
})
394397
],

packages/documentation/package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,29 @@
1212
"lint": "prettier --check '**/*.{js,mjs,ts,tsx,json,md,mdx,astro}' && eslint --max-warnings=0 ."
1313
},
1414
"dependencies": {
15-
"@astrojs/markdown-remark": "^6.3.10",
16-
"@astrojs/starlight": "^0.37.5",
17-
"@interledger/docs-design-system": "^0.11.0",
18-
"astro": "^5.17.1",
19-
"mermaid": "^11.12.2",
15+
"@astrojs/markdown-remark": "^7.1.1",
16+
"@astrojs/starlight": "^0.38.3",
17+
"@interledger/docs-design-system": "^0.12.0",
18+
"astro": "^6.1.9",
19+
"mermaid": "^11.14.0",
2020
"rehype-autolink-headings": "^7.1.0",
2121
"rehype-mathjax": "^7.1.0",
2222
"remark-math": "^6.0.0",
2323
"starlight-fullview-mode": "^0.2.6",
24-
"starlight-links-validator": "^0.19.2",
25-
"starlight-versions": "^0.6.0"
24+
"starlight-links-validator": "^0.23.0",
25+
"starlight-versions": "^0.8.1"
2626
},
2727
"devDependencies": {
28-
"@eslint/js": "^9.39.2",
29-
"@typescript-eslint/parser": "^8.54.0",
30-
"astro-eslint-parser": "^1.2.2",
31-
"eslint": "^9.39.2",
28+
"@eslint/js": "^10.0.1",
29+
"@typescript-eslint/parser": "^8.59.0",
30+
"astro-eslint-parser": "^1.4.0",
31+
"eslint": "^10.2.1",
3232
"eslint-config-prettier": "^10.1.8",
33-
"eslint-plugin-astro": "^1.5.0",
34-
"globals": "^17.3.0",
35-
"prettier": "^3.8.1",
33+
"eslint-plugin-astro": "^1.7.0",
34+
"globals": "^17.5.0",
35+
"prettier": "^3.8.3",
3636
"prettier-plugin-astro": "^0.14.1",
37-
"spectaql": "^3.0.6",
38-
"typescript-eslint": "^8.54.0"
37+
"spectaql": "^3.0.9",
38+
"typescript-eslint": "^8.59.0"
3939
}
4040
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { defineCollection } from 'astro:content'
2-
import { docsLoader } from '@astrojs/starlight/loaders'
2+
import { docsLoader, i18nLoader } from '@astrojs/starlight/loaders'
33
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema'
44
import { docsVersionsLoader } from 'starlight-versions/loader'
55

66
export const collections = {
77
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
8-
i18n: defineCollection({ type: 'data', schema: i18nSchema() }),
8+
i18n: defineCollection({ loader: i18nLoader(), schema: i18nSchema() }),
99
versions: defineCollection({ loader: docsVersionsLoader() })
1010
}

0 commit comments

Comments
 (0)