Skip to content

Commit

Permalink
Merge branch 'main' into deprecate-function-per-route
Browse files Browse the repository at this point in the history
  • Loading branch information
sarah11918 authored Aug 20, 2024
2 parents c199396 + 26cb2c1 commit 2ef90c0
Show file tree
Hide file tree
Showing 65 changed files with 1,033 additions and 239 deletions.
1 change: 1 addition & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default defineConfig({
SiteTitle: './src/components/starlight/SiteTitle.astro',
Search: './src/components/starlight/Search.astro',
Sidebar: './src/components/starlight/Sidebar.astro',
MobileMenuFooter: './src/components/starlight/MobileMenuFooter.astro',
PageTitle: './src/components/starlight/PageTitle.astro',
},
editLink: {
Expand Down
2 changes: 1 addition & 1 deletion config/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function makeSidebar(): StarlightSidebarConfig {
};
if (item.nested) {
const parentGroup = sidebar.at(-1);
if (parentGroup && 'items' in parentGroup) {
if (parentGroup && typeof parentGroup !== 'string' && 'items' in parentGroup) {
parentGroup.items.push(newGroup);
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"dependencies": {
"@astrojs/check": "^0.7.0",
"@astrojs/sitemap": "^3.1.5",
"@astrojs/starlight": "^0.24.4",
"@astrojs/starlight": "^0.26.1",
"@docsearch/js": "^3.5.2",
"@fontsource/ibm-plex-mono": "^4.5.10",
"@lunariajs/core": "^0.1.1",
Expand Down
Loading

0 comments on commit 2ef90c0

Please sign in to comment.