Skip to content

Commit

Permalink
[docs] 整合不同类库文档 sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhang-Wei-666 committed Aug 12, 2023
1 parent 5a95b19 commit 16e1720
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,16 @@ export default defineConfig({
],

sidebar: {
'/mixte/': mixte.map(fn => ({ text: fn, link: `/mixte/${fn}` })),
'/mixte/use/': use.map(fn => ({ text: fn, link: `/mixte/use/${fn}` })),
'/mixte/': [
{
text: 'mixte',
items: mixte.map(fn => ({ text: fn, link: `/mixte/${fn}` })),
},
{
text: '@mixte/use',
items: use.map(fn => ({ text: fn, link: `/mixte/use/${fn}` })),
},
],
},

socialLinks: [
Expand Down

0 comments on commit 16e1720

Please sign in to comment.