Skip to content

Commit b87c0c0

Browse files
KianNHelithrar
authored andcommitted
[Docs Site] Upgrade Astro to 4.15.7, Starlight to 0.28.1 (#16917)
1 parent 064331f commit b87c0c0

File tree

5 files changed

+65
-28
lines changed

5 files changed

+65
-28
lines changed

package-lock.json

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

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
"@astrojs/check": "^0.9.3",
2222
"@astrojs/rss": "^4.0.7",
2323
"@astrojs/sitemap": "^3.1.6",
24-
"@astrojs/starlight": "^0.27.1",
25-
"@astrojs/starlight-docsearch": "^0.1.1",
24+
"@astrojs/starlight": "^0.28.1",
25+
"@astrojs/starlight-docsearch": "^0.2.0",
2626
"@astrojs/starlight-tailwind": "^2.0.3",
27-
"@astrojs/tailwind": "^5.1.0",
27+
"@astrojs/tailwind": "^5.1.1",
2828
"@cloudflare/workers-types": "^4.20240903.0",
2929
"@codingheads/sticky-header": "^1.0.2",
3030
"@types/node": "^20.16.1",
3131
"algoliasearch": "^4.24.0",
32-
"astro": "^4.15.5",
32+
"astro": "^4.15.7",
3333
"astro-breadcrumbs": "^2.3.1",
3434
"astro-icon": "^1.1.1",
3535
"astro-live-code": "^0.0.3",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/node_modules/@astrojs/starlight/utils/navigation.ts b/node_modules/@astrojs/starlight/utils/navigation.ts
2-
index cd1475d..69d8801 100644
2+
index 526d9f2..de8c64a 100644
33
--- a/node_modules/@astrojs/starlight/utils/navigation.ts
44
+++ b/node_modules/@astrojs/starlight/utils/navigation.ts
5-
@@ -346,8 +346,12 @@ export function getSidebarFromConfig(
5+
@@ -360,8 +360,12 @@ export function getSidebarFromConfig(
66
locale: string | undefined
77
): SidebarEntry[] {
88
const routes = getLocaleRoutes(locale);

src/content/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { z, defineCollection } from "astro:content";
2-
import { docsSchema } from "@astrojs/starlight/schema";
2+
import { docsSchema, i18nSchema } from "@astrojs/starlight/schema";
33
import {
44
appsSchema,
55
changelogsSchema,
@@ -24,6 +24,7 @@ export const collections = {
2424
extend: baseSchema,
2525
}),
2626
}),
27+
i18n: defineCollection({ type: "data", schema: i18nSchema() }),
2728
changelogs: defineCollection({
2829
schema: changelogsSchema,
2930
type: "data",

src/content/i18n/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"aside.caution": "Warning"
3+
}

0 commit comments

Comments
 (0)