Skip to content

Commit d9ff291

Browse files
fix(docs): complete Astro 7 upgrade [Codex] (#354)
Astro 7 requires a compatible Starlight release and content-collection configuration changes. The original Dependabot update left Starlight's Astro 5 peer requirement in place, so npm ci could not resolve the dependency graph. - Upgrade @astrojs/starlight to 0.41.10, compatible with Astro 7. - Migrate the Starlight content config to docs/content.config.ts and use docsLoader(). - Update sidebar autogeneration to Starlight's current group syntax. - Group Astro and Starlight updates under Dependabot's npm configuration. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Josh Vlk <josh@vlkpack.com>
1 parent 2253e27 commit d9ff291

5 files changed

Lines changed: 4776 additions & 5051 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ updates:
55
directory: "/"
66
schedule:
77
interval: "weekly"
8+
groups:
9+
astro-and-starlight:
10+
patterns:
11+
- "astro"
12+
- "@astrojs/starlight"
813

914
# Manage GitHub Actions dependencies
1015
- package-ecosystem: "github-actions"
1116
directory: "/"
1217
schedule:
1318
interval: "weekly"
14-
groups:
15-
astro-and-starlight:
16-
patterns:
17-
- "astro"
18-
- "@astrojs/starlight"

‎astro.config.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default defineConfig({
5353
},
5454
{
5555
label: "Contributing",
56-
autogenerate: { directory: "contributing" },
56+
items: [{ autogenerate: { directory: "contributing" } }],
5757
},
5858
{
5959
label: "API Documentation",
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { defineCollection } from "astro:content";
2+
import { docsLoader } from "@astrojs/starlight/loaders";
23
import { docsSchema } from "@astrojs/starlight/schema";
34

45
export const collections = {
5-
docs: defineCollection({ schema: docsSchema() }),
6+
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
67
};

0 commit comments

Comments
 (0)