Skip to content

Commit 62964b8

Browse files
committed
bump theme + use typed theme config
1 parent f72b1ac commit 62964b8

File tree

3 files changed

+24
-32
lines changed

3 files changed

+24
-32
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"dependencies": {
88
"@vue/repl": "^0.4.8",
9-
"@vue/theme": "^0.1.31",
9+
"@vue/theme": "^0.1.33",
1010
"dynamics.js": "^1.1.5",
1111
"gsap": "^3.9.0",
1212
"vitepress": "^0.21.2",

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/.vitepress/config.ts

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
import fs from 'fs'
22
import path from 'path'
3-
import { defineConfig } from 'vitepress'
3+
import { defineConfigWithTheme } from 'vitepress'
44
import baseConfig from '@vue/theme/config'
55
import { headerPlugin } from './headerMdPlugin'
6+
import type { Config } from '@vue/theme'
67

78
const nav = [
89
{
910
text: 'Docs',
1011
activeMatch: `^/(guide|style-guide|cookbook|examples)/`,
1112
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/' }
2118
]
2219
},
2320
{
@@ -39,7 +36,7 @@ const nav = [
3936
{ text: 'Partners', link: '/ecosystem/partners' },
4037
{ text: 'Themes', link: '/ecosystem/themes' },
4138
{ 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/' }
4340
// { text: 'Video Courses', link: '/ecosystem/video-courses' },
4441
// TODO should start a separate branch for Vue 3?
4542
// {
@@ -71,21 +68,17 @@ const nav = [
7168
text: 'About',
7269
activeMatch: `^/about/`,
7370
items: [
71+
{ text: 'FAQ', link: '/about/faq' },
72+
{ text: 'Team', link: '/about/team' },
73+
{ text: 'Releases', link: '/about/releases' },
7474
{
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'
8982
}
9083
]
9184
},
@@ -493,7 +486,7 @@ export const sidebar = {
493486
]
494487
}
495488

496-
export default defineConfig({
489+
export default defineConfigWithTheme<Config>({
497490
extends: baseConfig,
498491

499492
lang: 'en-US',
@@ -521,7 +514,6 @@ export default defineConfig({
521514

522515
themeConfig: {
523516
logo: '/logo.svg',
524-
repo: 'vuejs/docs',
525517

526518
algolia: {
527519
indexName: 'vuejs-v3',

0 commit comments

Comments
 (0)