Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit 54bbe76

Browse files
feat: Upgrade to Astro v5
1 parent a67d671 commit 54bbe76

File tree

12 files changed

+1464
-1590
lines changed

12 files changed

+1464
-1590
lines changed

astro.config.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-check
12
import { defineConfig } from "astro/config";
23
import embeds from "astro-embed/integration";
34
import starlight from "@astrojs/starlight";
@@ -108,9 +109,7 @@ export default defineConfig({
108109
"https://github.com/ChefKissInc/ChefKissInc.github.io/edit/master/",
109110
},
110111
}),
111-
tailwind({
112-
applyBaseStyles: false,
113-
}),
112+
tailwind({ applyBaseStyles: false }),
114113
icon(),
115114
],
116115
});

package.json

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,26 @@
1010
"preview": "astro preview",
1111
"astro": "astro"
1212
},
13-
"dependencies": {
13+
"devDependencies": {
1414
"@astrojs/check": "^0.9.4",
15-
"@astrojs/starlight": "^0.29.3",
16-
"@astrojs/starlight-tailwind": "^2.0.3",
17-
"@astrojs/tailwind": "^5.1.3",
15+
"@astrojs/starlight": "^0.32.2",
16+
"@astrojs/starlight-tailwind": "^3.0.0",
17+
"@astrojs/tailwind": "^5.1.5",
1818
"@iconify-json/ph": "^1.2.2",
19-
"astro": "^4.16.18",
19+
"astro": "^5.5.2",
2020
"astro-embed": "^0.9.0",
21-
"astro-icon": "^1.1.4",
22-
"astro-og-canvas": "^0.5.5",
23-
"astro-vtbot": "^1.10.7",
21+
"astro-icon": "^1.1.5",
22+
"astro-og-canvas": "^0.7.0",
23+
"astro-vtbot": "^2.1.1",
2424
"canvaskit-wasm": "^0.39.1",
2525
"sharp": "^0.33.5",
26-
"starlight-blog": "^0.15.0",
27-
"starlight-image-zoom": "^0.9.0",
28-
"starlight-links-validator": "^0.13.4",
26+
"starlight-blog": "^0.18.0",
27+
"starlight-image-zoom": "^0.11.1",
28+
"starlight-links-validator": "^0.14.3",
2929
"tailwindcss": "^3.4.17",
30-
"typescript": "^5.7.2"
30+
"typescript": "^5.8.2"
31+
},
32+
"pnpm": {
33+
"neverBuiltDependencies": []
3134
}
3235
}

pnpm-lock.yaml

Lines changed: 1424 additions & 1560 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/favicon.svg

Lines changed: 8 additions & 1 deletion
Loading

src/components/starlight/Head.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
---
2-
import type { Props } from "@astrojs/starlight/props";
32
import StarlightHead from "@astrojs/starlight/components/Head.astro";
43
import VtbotStarlight from "astro-vtbot/components/starlight/Base.astro";
54
import PageOffset from "astro-vtbot/components/PageOffset.astro";
65
import PageOrder from "astro-vtbot/components/starlight/PageOrder.astro";
76
import ProgressBar from "astro-vtbot/components/ProgressBar.astro";
87
import AutoNameSelected from "astro-vtbot/components/AutoNameSelected.astro";
98
10-
let imagePath = `${Astro.props.slug || "index"}.png`;
9+
let imagePath = `${Astro.locals.starlightRoute.entry.id || "index"}.png`;
1110
if (Astro.props.isFallback) {
1211
imagePath = 'en' + imagePath.slice(imagePath.indexOf('/'));
1312
}

src/components/starlight/MarkdownContent.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
import StarlightBlogMarkdownContent from "starlight-blog/overrides/MarkdownContent.astro";
3-
import type { Props } from "@astrojs/starlight/props";
43
54
import ImageZoom from "starlight-image-zoom/components/ImageZoom.astro";
65
---

src/components/starlight/SocialIcons.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
---
33
import config from "virtual:starlight/user-config";
44
import { Icon } from "astro-icon/components";
5-
import type { Props } from "@astrojs/starlight/props";
65

76
type Platform = keyof NonNullable<typeof config.social>;
87
type SocialConfig = NonNullable<NonNullable<typeof config.social>[Platform]>;

src/content.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/content/config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
import { defineCollection } from "astro:content";
2+
import { docsLoader, i18nLoader } from "@astrojs/starlight/loaders";
23
import { docsSchema, i18nSchema } from "@astrojs/starlight/schema";
34
import { blogSchema } from "starlight-blog/schema";
45

56
export const collections = {
67
docs: defineCollection({
8+
loader: docsLoader(),
79
schema: docsSchema({ extend: (context) => blogSchema(context) }),
810
}),
9-
i18n: defineCollection({ type: "data", schema: i18nSchema() }),
11+
i18n: defineCollection({
12+
loader: i18nLoader(),
13+
schema: i18nSchema(),
14+
}),
1015
};

src/env.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/// <reference path="../.astro/types.d.ts" />
2+
/// <reference path="../.astro/icon.d.ts" />
23
/// <reference types="astro/client" />
4+
/// <reference types="astro-icon/types" />

0 commit comments

Comments
 (0)