From 2c5f59969c64904ca157be3ae1418f204788383b Mon Sep 17 00:00:00 2001 From: Simon Hyll Date: Tue, 20 Feb 2024 19:43:58 +0100 Subject: [PATCH] feat: collapsed drawers --- astro.config.mjs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index d654be7842e..8bdc15591aa 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -96,6 +96,7 @@ export default defineConfig({ sidebar: [ { label: 'Quick Start', + collapsed: true, items: [ { label: 'What is Tauri?', link: 'guides' }, { @@ -132,6 +133,7 @@ export default defineConfig({ }, { label: 'Guides', + collapsed: true, items: [ { label: 'Develop', @@ -161,6 +163,7 @@ export default defineConfig({ }, { label: 'References', + collapsed: true, items: [ { label: 'List of References', @@ -191,6 +194,7 @@ export default defineConfig({ }, { label: 'Features & Recipes', + collapsed: true, autogenerate: { directory: 'features' }, }, ], @@ -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; }