Skip to content

Commit 26cb2c1

Browse files
liruifengvdelucis
andauthored
[i18nIgnore] Upgrade Starlight to 0.26.1 (withastro#9131)
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
1 parent 9505b78 commit 26cb2c1

20 files changed

+238
-133
lines changed

‎astro.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default defineConfig({
3636
SiteTitle: './src/components/starlight/SiteTitle.astro',
3737
Search: './src/components/starlight/Search.astro',
3838
Sidebar: './src/components/starlight/Sidebar.astro',
39+
MobileMenuFooter: './src/components/starlight/MobileMenuFooter.astro',
3940
PageTitle: './src/components/starlight/PageTitle.astro',
4041
},
4142
editLink: {

‎config/sidebar.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function makeSidebar(): StarlightSidebarConfig {
3333
};
3434
if (item.nested) {
3535
const parentGroup = sidebar.at(-1);
36-
if (parentGroup && 'items' in parentGroup) {
36+
if (parentGroup && typeof parentGroup !== 'string' && 'items' in parentGroup) {
3737
parentGroup.items.push(newGroup);
3838
}
3939
} else {

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"dependencies": {
8484
"@astrojs/check": "^0.7.0",
8585
"@astrojs/sitemap": "^3.1.5",
86-
"@astrojs/starlight": "^0.24.4",
86+
"@astrojs/starlight": "^0.26.1",
8787
"@docsearch/js": "^3.5.2",
8888
"@fontsource/ibm-plex-mono": "^4.5.10",
8989
"@lunariajs/core": "^0.1.1",

0 commit comments

Comments
 (0)