1
1
import fs from 'fs'
2
2
import path from 'path'
3
- import { defineConfig } from 'vitepress'
3
+ import { defineConfigWithTheme } from 'vitepress'
4
4
import baseConfig from '@vue/theme/config'
5
5
import { headerPlugin } from './headerMdPlugin'
6
+ import type { Config } from '@vue/theme'
6
7
7
8
const nav = [
8
9
{
9
10
text : 'Docs' ,
10
11
activeMatch : `^/(guide|style-guide|cookbook|examples)/` ,
11
12
items : [
12
- {
13
- items : [
14
- { text : 'Guide' , link : '/guide/introduction' } ,
15
- { text : 'Tutorial' , link : '/tutorial/' } ,
16
- { text : 'Examples' , link : '/examples/' } ,
17
- { text : 'Quick Start' , link : '/guide/quick-start' } ,
18
- { text : 'Style Guide' , link : '/style-guide/' }
19
- ]
20
- }
13
+ { text : 'Guide' , link : '/guide/introduction' } ,
14
+ { text : 'Tutorial' , link : '/tutorial/' } ,
15
+ { text : 'Examples' , link : '/examples/' } ,
16
+ { text : 'Quick Start' , link : '/guide/quick-start' } ,
17
+ { text : 'Style Guide' , link : '/style-guide/' }
21
18
]
22
19
} ,
23
20
{
@@ -39,7 +36,7 @@ const nav = [
39
36
{ text : 'Partners' , link : '/ecosystem/partners' } ,
40
37
{ text : 'Themes' , link : '/ecosystem/themes' } ,
41
38
{ text : 'Jobs' , link : 'https://vuejobs.com/?ref=vuejs' } ,
42
- { text : 'T-Shirt Shop' , link : 'https://vue.threadless.com/' } ,
39
+ { text : 'T-Shirt Shop' , link : 'https://vue.threadless.com/' }
43
40
// { text: 'Video Courses', link: '/ecosystem/video-courses' },
44
41
// TODO should start a separate branch for Vue 3?
45
42
// {
@@ -71,21 +68,17 @@ const nav = [
71
68
text : 'About' ,
72
69
activeMatch : `^/about/` ,
73
70
items : [
71
+ { text : 'FAQ' , link : '/about/faq' } ,
72
+ { text : 'Team' , link : '/about/team' } ,
73
+ { text : 'Releases' , link : '/about/releases' } ,
74
74
{
75
- items : [
76
- { text : 'FAQ' , link : '/about/faq' } ,
77
- { text : 'Team' , link : '/about/team' } ,
78
- { text : 'Releases' , link : '/about/releases' } ,
79
- {
80
- text : 'Contribution Guide' ,
81
- link : '/about/contribution-guide'
82
- } ,
83
- { text : 'Code of Conduct' , link : '/about/coc' } ,
84
- {
85
- text : 'The Documentary' ,
86
- link : 'https://www.youtube.com/watch?v=OrxmtDw4pVI'
87
- }
88
- ]
75
+ text : 'Contribution Guide' ,
76
+ link : '/about/contribution-guide'
77
+ } ,
78
+ { text : 'Code of Conduct' , link : '/about/coc' } ,
79
+ {
80
+ text : 'The Documentary' ,
81
+ link : 'https://www.youtube.com/watch?v=OrxmtDw4pVI'
89
82
}
90
83
]
91
84
} ,
@@ -493,7 +486,7 @@ export const sidebar = {
493
486
]
494
487
}
495
488
496
- export default defineConfig ( {
489
+ export default defineConfigWithTheme < Config > ( {
497
490
extends : baseConfig ,
498
491
499
492
lang : 'en-US' ,
@@ -521,7 +514,6 @@ export default defineConfig({
521
514
522
515
themeConfig : {
523
516
logo : '/logo.svg' ,
524
- repo : 'vuejs/docs' ,
525
517
526
518
algolia : {
527
519
indexName : 'vuejs-v3' ,
0 commit comments