Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

refactor: move english menu to separate file.

Matt Kilgore0c8ce366eb64
diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts
index 2eb2b4fc..5c83b82d 100644
--- a/docs/.vitepress/config.mts
+++ b/docs/.vitepress/config.mts
@@ -1,4 +1,5 @@
import { defineConfig } from 'vitepress'
+import enMenu from "./menus/en.mjs";
// https://vitepress.dev/reference/site-config
export default defineConfig({
@@ -36,30 +37,7 @@ export default defineConfig({
],
sidebar: {
- '/en/': [
- {
- text: 'Getting Started',
- items: [
- { text: 'Quick Start', link: '/en/quick-start' },
- { text: 'Installation', link: '/en/installation' },
- { text: 'Configure Homebox', link: '/en/configure-homebox' },
- { text: 'Tips and Tricks', link: '/en/tips-tricks' }
- ]
- },
- {
- text: 'Advanced',
- items: [
- { text: 'Import CSV', link: '/en/import-csv' },
- ]
- },
- {
- text: 'Contributing',
- items: [
- { text: 'Get Started', link: '/en/contribute/get-started' },
- { text: 'Bounty Program', link: '/en/contribute/bounty' }
- ]
- }
- ]
+ '/en/': enMenu,
},
socialLinks: [
diff --git a/docs/.vitepress/menus/en.mts b/docs/.vitepress/menus/en.mts
new file mode 100644
index 00000000..b0257a3f
--- /dev/null
+++ b/docs/.vitepress/menus/en.mts
@@ -0,0 +1,24 @@
+export default [
+ {
+ text: 'Getting Started',
+ items: [
+ {text: 'Quick Start', link: '/en/quick-start'},
+ {text: 'Installation', link: '/en/installation'},
+ {text: 'Configure Homebox', link: '/en/configure-homebox'},
+ {text: 'Tips and Tricks', link: '/en/tips-tricks'}
+ ]
+ },
+ {
+ text: 'Advanced',
+ items: [
+ {text: 'Import CSV', link: '/en/import-csv'},
+ ]
+ },
+ {
+ text: 'Contributing',
+ items: [
+ {text: 'Get Started', link: '/en/contribute/get-started'},
+ {text: 'Bounty Program', link: '/en/contribute/bounty'}
+ ]
+ }
+]
\ No newline at end of file