Skip to content

Commit

Permalink
[Docs Site] Upgrade Astro to 4.15.7, Starlight to 0.28.1 (#16917)
Browse files Browse the repository at this point in the history
  • Loading branch information
KianNH committed Sep 19, 2024
1 parent 570554c commit 06bdeac
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 28 deletions.
75 changes: 54 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
"@astrojs/check": "^0.9.3",
"@astrojs/rss": "^4.0.7",
"@astrojs/sitemap": "^3.1.6",
"@astrojs/starlight": "^0.27.1",
"@astrojs/starlight-docsearch": "^0.1.1",
"@astrojs/starlight": "^0.28.1",
"@astrojs/starlight-docsearch": "^0.2.0",
"@astrojs/starlight-tailwind": "^2.0.3",
"@astrojs/tailwind": "^5.1.0",
"@astrojs/tailwind": "^5.1.1",
"@cloudflare/workers-types": "^4.20240903.0",
"@codingheads/sticky-header": "^1.0.2",
"@types/node": "^20.16.1",
"algoliasearch": "^4.24.0",
"astro": "^4.15.5",
"astro": "^4.15.7",
"astro-breadcrumbs": "^2.3.1",
"astro-icon": "^1.1.1",
"astro-live-code": "^0.0.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/node_modules/@astrojs/starlight/utils/navigation.ts b/node_modules/@astrojs/starlight/utils/navigation.ts
index cd1475d..69d8801 100644
index 526d9f2..de8c64a 100644
--- a/node_modules/@astrojs/starlight/utils/navigation.ts
+++ b/node_modules/@astrojs/starlight/utils/navigation.ts
@@ -346,8 +346,12 @@ export function getSidebarFromConfig(
@@ -360,8 +360,12 @@ export function getSidebarFromConfig(
locale: string | undefined
): SidebarEntry[] {
const routes = getLocaleRoutes(locale);
Expand Down
3 changes: 2 additions & 1 deletion src/content/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { z, defineCollection } from "astro:content";
import { docsSchema } from "@astrojs/starlight/schema";
import { docsSchema, i18nSchema } from "@astrojs/starlight/schema";
import {
appsSchema,
changelogsSchema,
Expand All @@ -24,6 +24,7 @@ export const collections = {
extend: baseSchema,
}),
}),
i18n: defineCollection({ type: "data", schema: i18nSchema() }),
changelogs: defineCollection({
schema: changelogsSchema,
type: "data",
Expand Down
3 changes: 3 additions & 0 deletions src/content/i18n/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"aside.caution": "Warning"
}

0 comments on commit 06bdeac

Please sign in to comment.