Skip to content

Commit

Permalink
feat: collapsed drawers
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhyll committed Feb 20, 2024
1 parent 157d974 commit 2c5f599
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export default defineConfig({
sidebar: [
{
label: 'Quick Start',
collapsed: true,
items: [
{ label: 'What is Tauri?', link: 'guides' },
{
Expand Down Expand Up @@ -132,6 +133,7 @@ export default defineConfig({
},
{
label: 'Guides',
collapsed: true,
items: [
{
label: 'Develop',
Expand Down Expand Up @@ -161,6 +163,7 @@ export default defineConfig({
},
{
label: 'References',
collapsed: true,
items: [
{
label: 'List of References',
Expand Down Expand Up @@ -191,6 +194,7 @@ export default defineConfig({
},
{
label: 'Features & Recipes',
collapsed: true,
autogenerate: { directory: 'features' },
},
],
Expand Down Expand Up @@ -299,9 +303,9 @@ function i18nRedirect(from, to) {
locale === 'root'
? (routes[from] = to)
: (routes[`/${locale}/${from.replaceAll(/^\/*/g, '')}`] = `/${locale}/${to.replaceAll(
/^\/*/g,
''
)}`)
/^\/*/g,
''
)}`)
);
return routes;
}

0 comments on commit 2c5f599

Please sign in to comment.