|
2 | 2 | import starlight from '@astrojs/starlight' |
3 | 3 | import { defineConfig } from 'astro/config' |
4 | 4 | import remarkGithubAlerts from 'remark-github-alerts' |
5 | | -import starlightTypeDoc, { typeDocSidebarGroup } from 'starlight-typedoc' |
| 5 | +import starlightTypeDoc from 'starlight-typedoc' |
| 6 | +import sidebarConfig from './sidebar.config.json' |
6 | 7 |
|
7 | 8 | // https://astro.build/config |
8 | 9 | export default defineConfig({ |
@@ -48,69 +49,7 @@ export default defineConfig({ |
48 | 49 | }, |
49 | 50 | }), |
50 | 51 | ], |
51 | | - sidebar: [ |
52 | | - { label: 'Home', link: '/' }, |
53 | | - { |
54 | | - label: 'Getting Started', |
55 | | - items: [{ label: 'Quick Start', slug: 'tutorials/quick-start' }], |
56 | | - }, |
57 | | - { |
58 | | - label: 'Core Concepts', |
59 | | - items: [ |
60 | | - { slug: 'concepts/core/algorand-client' }, |
61 | | - { slug: 'concepts/core/account' }, |
62 | | - { slug: 'concepts/core/transaction' }, |
63 | | - { slug: 'concepts/core/amount' }, |
64 | | - { slug: 'concepts/core/client' }, |
65 | | - ], |
66 | | - }, |
67 | | - { |
68 | | - label: 'Building Applications', |
69 | | - items: [ |
70 | | - { slug: 'concepts/building/app-client' }, |
71 | | - { slug: 'concepts/building/app-deploy' }, |
72 | | - { slug: 'concepts/building/app' }, |
73 | | - { slug: 'concepts/building/typed-app-clients' }, |
74 | | - { slug: 'concepts/building/asset' }, |
75 | | - { slug: 'concepts/building/transfer' }, |
76 | | - { slug: 'concepts/building/testing' }, |
77 | | - ], |
78 | | - }, |
79 | | - { |
80 | | - label: 'Advanced Topics', |
81 | | - collapsed: true, |
82 | | - items: [ |
83 | | - { slug: 'concepts/advanced/transaction-composer' }, |
84 | | - { slug: 'concepts/advanced/modular-imports' }, |
85 | | - { slug: 'concepts/advanced/debugging' }, |
86 | | - { slug: 'concepts/advanced/indexer' }, |
87 | | - { slug: 'concepts/advanced/event-emitter' }, |
88 | | - { slug: 'concepts/advanced/dispenser-client' }, |
89 | | - ], |
90 | | - }, |
91 | | - { |
92 | | - label: 'Migration Guides', |
93 | | - collapsed: true, |
94 | | - autogenerate: { directory: 'migration' }, |
95 | | - }, |
96 | | - { |
97 | | - label: 'Examples', |
98 | | - collapsed: true, |
99 | | - items: [ |
100 | | - { label: 'Overview', link: '/examples/' }, |
101 | | - { label: 'ABI Encoding', link: '/examples/abi/' }, |
102 | | - { label: 'Mnemonic Utilities', link: '/examples/algo25/' }, |
103 | | - { label: 'Algod Client', link: '/examples/algod-client/' }, |
104 | | - { label: 'Algorand Client', link: '/examples/algorand-client/' }, |
105 | | - { label: 'Common Utilities', link: '/examples/common/' }, |
106 | | - { label: 'Indexer Client', link: '/examples/indexer-client/' }, |
107 | | - { label: 'KMD Client', link: '/examples/kmd-client/' }, |
108 | | - { label: 'Testing', link: '/examples/testing/' }, |
109 | | - { label: 'Transactions', link: '/examples/transact/' }, |
110 | | - ], |
111 | | - }, |
112 | | - typeDocSidebarGroup, |
113 | | - ], |
| 52 | + sidebar: sidebarConfig, |
114 | 53 | }), |
115 | 54 | ], |
116 | 55 | }) |
0 commit comments