Skip to content

Commit dd3e397

Browse files
authored
docs: reorganize nav menu structure (#2748)
1 parent c9e90ec commit dd3e397

1 file changed

Lines changed: 8 additions & 14 deletions

File tree

.vitepress/config.ts

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ import {
1818
const nav: ThemeConfig['nav'] = [
1919
{
2020
text: 'ドキュメント',
21-
activeMatch: `^/(guide|style-guide|cookbook|examples)/`,
21+
activeMatch: `^/(guide|tutorial|examples|api|glossary|error-reference)/`,
2222
items: [
2323
{ text: 'クイックスタート', link: '/guide/quick-start' },
2424
{ text: 'ガイド', link: '/guide/introduction' },
2525
{ text: 'チュートリアル', link: '/tutorial/' },
2626
{ text: '実装例', link: '/examples/' },
27+
{ text: 'API', link: '/api/' },
2728
// { text: 'Style Guide', link: '/style-guide/' },
2829
{ text: '用語集', link: '/glossary/' },
2930
{ text: 'エラーリファレンス', link: '/error-reference/' },
@@ -37,11 +38,6 @@ const nav: ThemeConfig['nav'] = [
3738
}
3839
]
3940
},
40-
{
41-
text: 'API',
42-
activeMatch: `^/api/`,
43-
link: '/api/'
44-
},
4541
{
4642
text: 'プレイグラウンド',
4743
link: 'https://play.vuejs.org'
@@ -53,7 +49,6 @@ const nav: ThemeConfig['nav'] = [
5349
{
5450
text: 'リソース',
5551
items: [
56-
{ text: 'パートナー', link: '/partners/' },
5752
{ text: 'テーマ', link: '/ecosystem/themes' },
5853
{ text: 'UI コンポーネント', link: 'https://ui-libs.vercel.app/' },
5954
{
@@ -134,13 +129,12 @@ const nav: ThemeConfig['nav'] = [
134129
]
135130
},
136131
{
137-
text: 'スポンサー',
138-
link: '/sponsor/'
139-
},
140-
{
141-
text: 'パートナー',
142-
activeMatch: `^/partners/`,
143-
link: '/partners/'
132+
text: 'サポート',
133+
activeMatch: `^/(sponsor|partners)/`,
134+
items: [
135+
{ text: 'スポンサー', link: '/sponsor/' },
136+
{ text: 'パートナー', link: '/partners/' }
137+
]
144138
}
145139
]
146140

0 commit comments

Comments
 (0)