|
1 | 1 | import { defineConfig } from 'vitepress'; |
2 | 2 | import typedocSidebar from '../api/typedoc-sidebar.json'; |
3 | 3 |
|
| 4 | +const guideSidebar = [ |
| 5 | + { |
| 6 | + text: 'Getting Started', |
| 7 | + items: [ |
| 8 | + { text: 'Introduction', link: '/guide/' }, |
| 9 | + { text: 'Installation', link: '/guide/installation' }, |
| 10 | + { text: 'Configuration', link: '/guide/configuration' }, |
| 11 | + ], |
| 12 | + }, |
| 13 | + { |
| 14 | + text: 'CLI Reference', |
| 15 | + items: [ |
| 16 | + { text: 'Overview', link: '/cli/' }, |
| 17 | + { text: 'Code Commands', link: '/cli/code' }, |
| 18 | + { text: 'Sites Commands', link: '/cli/sites' }, |
| 19 | + { text: 'Sandbox Commands', link: '/cli/sandbox' }, |
| 20 | + { text: 'MRT Commands', link: '/cli/mrt' }, |
| 21 | + { text: 'Logging', link: '/cli/logging' }, |
| 22 | + ], |
| 23 | + }, |
| 24 | +]; |
| 25 | + |
4 | 26 | export default defineConfig({ |
5 | 27 | title: 'B2C CLI', |
6 | 28 | description: 'Salesforce Commerce Cloud B2C Command Line Tools', |
@@ -28,28 +50,8 @@ export default defineConfig({ |
28 | 50 | }, |
29 | 51 |
|
30 | 52 | sidebar: { |
31 | | - '/guide/': [ |
32 | | - { |
33 | | - text: 'Getting Started', |
34 | | - items: [ |
35 | | - { text: 'Introduction', link: '/guide/' }, |
36 | | - { text: 'Installation', link: '/guide/installation' }, |
37 | | - { text: 'Configuration', link: '/guide/configuration' }, |
38 | | - ], |
39 | | - }, |
40 | | - ], |
41 | | - '/cli/': [ |
42 | | - { |
43 | | - text: 'CLI Reference', |
44 | | - items: [ |
45 | | - { text: 'Overview', link: '/cli/' }, |
46 | | - { text: 'Code Commands', link: '/cli/code' }, |
47 | | - { text: 'Sites Commands', link: '/cli/sites' }, |
48 | | - { text: 'Sandbox Commands', link: '/cli/sandbox' }, |
49 | | - { text: 'MRT Commands', link: '/cli/mrt' }, |
50 | | - ], |
51 | | - }, |
52 | | - ], |
| 53 | + '/guide/': guideSidebar, |
| 54 | + '/cli/': guideSidebar, |
53 | 55 | '/api/': [ |
54 | 56 | { |
55 | 57 | text: 'API Reference', |
|
0 commit comments