Skip to content

Commit

Permalink
docs(other): update version break changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjone committed Jun 22, 2022
1 parent e4e2ec2 commit 0224cf8
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions docs/docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { defineUserConfig } from 'vuepress';
import type { DefaultThemeOptions } from 'vuepress';
import { defaultTheme, defineUserConfig } from 'vuepress';
// import type { DefaultThemeOptions } from 'vuepress';
import { registerComponentsPlugin } from '@vuepress/plugin-register-components';
import { path } from '@vuepress/utils';

export default defineUserConfig<DefaultThemeOptions>({
export default defineUserConfig({
lang: 'zh-CN',
title: 'XGantt Docuemnt',
description: 'XGantt document site',
Expand All @@ -15,7 +16,7 @@ export default defineUserConfig<DefaultThemeOptions>({
]
],

themeConfig: {
theme: defaultTheme({
logo: 'https://www.xiaopangying.com/my-logo/jz-gantt.png',

navbar: [
Expand All @@ -32,7 +33,10 @@ export default defineUserConfig<DefaultThemeOptions>({
},
{
text: 'github',
link: 'https://github.com/xpyjs/gantt'
children: [
{ text: 'vue3', link: 'https://github.com/xpyjs/gantt' },
{ text: 'vue2', link: 'https://github.com/xpyjs/gantt-vue2' }
]
},
{
text: '个人站',
Expand Down Expand Up @@ -61,17 +65,20 @@ export default defineUserConfig<DefaultThemeOptions>({
'/vue2/slider.md',
'/vue2/common.md'
]
},

themePlugins: {
activeHeaderLinks: true
}
},

// themePlugins: {
// activeHeaderLinks: true
// }
}),

plugins: [
[
'@vuepress/register-components',
{ componentsDir: path.resolve(__dirname, './components') }
]
registerComponentsPlugin({
componentsDir: path.resolve(__dirname, './components')
})
// [
// '@vuepress/register-components',
// { componentsDir: path.resolve(__dirname, './components') }
// ]
]
});

0 comments on commit 0224cf8

Please sign in to comment.