diff --git a/package-lock.json b/package-lock.json index 9cdd553093733d0..e999090a3481371 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@astrojs/react": "4.2.5", "@astrojs/rss": "4.0.11", "@astrojs/sitemap": "3.4.0", - "@astrojs/starlight": "0.34.1", + "@astrojs/starlight": "0.34.3", "@astrojs/starlight-docsearch": "0.6.0", "@astrojs/starlight-tailwind": "4.0.1", "@cloudflare/vitest-pool-workers": "0.8.30", @@ -863,9 +863,9 @@ } }, "node_modules/@astrojs/starlight": { - "version": "0.34.1", - "resolved": "https://registry.npmjs.org/@astrojs/starlight/-/starlight-0.34.1.tgz", - "integrity": "sha512-FmgS3R4SfLX8hmXoxNG5w1YicAs29Ix8A1cqczHEB4zJzIZVrvPiTEaQffJztqXTWERZtSZhHsckyDWImOPzJA==", + "version": "0.34.3", + "resolved": "https://registry.npmjs.org/@astrojs/starlight/-/starlight-0.34.3.tgz", + "integrity": "sha512-MAuD3NF+E+QXJJuVKofoR6xcPTP4BJmYWeOBd03udVdubNGVnPnSWVZAi+ZtnTofES4+mJdp8BNGf+ubUxkiiA==", "dev": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index f4f8df2bc165750..0d8765a2be55a12 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "@astrojs/react": "4.2.5", "@astrojs/rss": "4.0.11", "@astrojs/sitemap": "3.4.0", - "@astrojs/starlight": "0.34.1", + "@astrojs/starlight": "0.34.3", "@astrojs/starlight-docsearch": "0.6.0", "@astrojs/starlight-tailwind": "4.0.1", "@cloudflare/vitest-pool-workers": "0.8.30", diff --git a/patches/@astrojs+starlight+0.34.1.patch b/patches/@astrojs+starlight+0.34.1.patch index 3e06be70ca1dabe..dc2dfc4c9c74666 100644 --- a/patches/@astrojs+starlight+0.34.1.patch +++ b/patches/@astrojs+starlight+0.34.1.patch @@ -1,12 +1,12 @@ diff --git a/node_modules/@astrojs/starlight/components/SidebarSublist.astro b/node_modules/@astrojs/starlight/components/SidebarSublist.astro -index a027f56..7e372d7 100644 +index a027f56..639be81 100644 --- a/node_modules/@astrojs/starlight/components/SidebarSublist.astro +++ b/node_modules/@astrojs/starlight/components/SidebarSublist.astro @@ -4,6 +4,7 @@ import type { SidebarEntry } from '../utils/routing/types'; import Icon from '../user-components/Icon.astro'; import Badge from '../user-components/Badge.astro'; import SidebarRestorePoint from './SidebarRestorePoint.astro'; -+import SidebarIcon from "~/components/SidebarIcon.astro" ++import SidebarIcon from "~/components/SidebarIcon.astro"; interface Props { sublist: SidebarEntry[]; @@ -45,15 +45,3 @@ index 6d173df..61eed80 100644 {label} -diff --git a/node_modules/@astrojs/starlight/utils/git.ts b/node_modules/@astrojs/starlight/utils/git.ts -index 1536fac..94876b1 100644 ---- a/node_modules/@astrojs/starlight/utils/git.ts -+++ b/node_modules/@astrojs/starlight/utils/git.ts -@@ -72,6 +72,7 @@ export function getAllNewestCommitDate(rootPath: string, docsPath: string): [str - { - cwd: repoRoot, - encoding: 'utf-8', -+ maxBuffer: 10 * 1024 * 1024, - } - ); - diff --git a/patches/@astrojs+starlight+0.34.3.patch b/patches/@astrojs+starlight+0.34.3.patch new file mode 100644 index 000000000000000..dc2dfc4c9c74666 --- /dev/null +++ b/patches/@astrojs+starlight+0.34.3.patch @@ -0,0 +1,47 @@ +diff --git a/node_modules/@astrojs/starlight/components/SidebarSublist.astro b/node_modules/@astrojs/starlight/components/SidebarSublist.astro +index a027f56..639be81 100644 +--- a/node_modules/@astrojs/starlight/components/SidebarSublist.astro ++++ b/node_modules/@astrojs/starlight/components/SidebarSublist.astro +@@ -4,6 +4,7 @@ import type { SidebarEntry } from '../utils/routing/types'; + import Icon from '../user-components/Icon.astro'; + import Badge from '../user-components/Badge.astro'; + import SidebarRestorePoint from './SidebarRestorePoint.astro'; ++import SidebarIcon from "~/components/SidebarIcon.astro"; + + interface Props { + sublist: SidebarEntry[]; +@@ -24,7 +25,7 @@ const { sublist, nested } = Astro.props; + class:list={[{ large: !nested }, entry.attrs.class]} + {...entry.attrs} + > +- {entry.label} ++ {entry.icon && }{entry.label} + {entry.badge && ( + +- {icon && } ++ {icon && } + {label} + +