Skip to content

Commit 34fa38d

Browse files
committed
Chore(docs): update config and include 1.x docs
1 parent b678cbd commit 34fa38d

File tree

2 files changed

+525
-3
lines changed

2 files changed

+525
-3
lines changed

Diff for: docs/.vuepress/config.js

+13-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ import {shikiPlugin} from "@vuepress/plugin-shiki";
77
// Ref (default theme): https://ecosystem.vuejs.press/themes/default/markdown.html
88

99
export default defineUserConfig({
10-
title: 'Vuejs Dialog',
10+
title: 'Vuejs Dialog (Vue3)',
1111
description: 'A lightweight, promise based alert, prompt and confirm dialog',
12-
repo: 'godofbrowser/vuejs-dialog',
1312
base: process.env.NODE_ENV === 'production' ? '/vuejs-dialog/' : '/',
1413
bundler: viteBundler(),
1514
plugins: [
@@ -25,11 +24,22 @@ export default defineUserConfig({
2524
// }),
2625
],
2726
theme: defaultTheme({
27+
repo: 'godofbrowser/vuejs-dialog',
28+
docsDir: 'docs',
29+
docsBranch: 'dev',
30+
navbar: [
31+
{ text: 'Versions', children: [
32+
{ text: '2.x (vue3)', link: '/index.md' },
33+
{ text: '1.x (vue2)', link: '/1.x.md' }
34+
]
35+
},
36+
],
2837
sidebar: [
2938
'/index.md',
3039
'/features.md',
3140
'/digging-deeper.md',
32-
'/demos.md',
41+
// '/demos.md',
42+
'/1.x.md',
3343
]
3444
}),
3545
})

0 commit comments

Comments
 (0)