Skip to content

Commit db16495

Browse files
committed
docs: update vitepress
1 parent 2ad5814 commit db16495

File tree

4 files changed

+475
-246
lines changed

4 files changed

+475
-246
lines changed

docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"@vue-flow/node-toolbar": "workspace:*",
2525
"@vue/repl": "1.4.1",
2626
"blobity": "^0.2.3",
27+
"vue": "^3.3.4",
2728
"web-vitals": "^3.5.0"
2829
},
2930
"devDependencies": {
@@ -40,7 +41,7 @@
4041
"unplugin-icons": "^0.17.0",
4142
"unplugin-vue-components": "^0.25.2",
4243
"vite-plugin-windicss": "^1.9.1",
43-
"vitepress": "1.0.0-beta.1",
44+
"vitepress": "1.0.0-rc.20",
4445
"windicss": "^3.5.6"
4546
}
4647
}
File renamed without changes.

docs/src/.vitepress/theme/index.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import type { Theme } from 'vitepress'
21
import VueAnimXyz from '@animxyz/vue3'
3-
import DefaultTheme from 'vitepress/theme'
42
import { inject } from '@vercel/analytics'
5-
import Layout from './layouts/default.vue'
63
import 'virtual:windi.css'
74
import '@animxyz/core'
85
import '@vue-flow/core/dist/style.css'
@@ -11,13 +8,14 @@ import '@vue-flow/controls/dist/style.css'
118
import '@vue-flow/minimap/dist/style.css'
129
import './../../assets/index.css'
1310

14-
const CustomTheme = {
15-
...DefaultTheme,
11+
import Theme from 'vitepress/theme'
12+
import Layout from './layouts/default.vue'
13+
14+
export default {
15+
extends: Theme,
1616
Layout,
17-
enhanceApp: ({ app }) => {
17+
enhanceApp({ app }) {
1818
app.use(VueAnimXyz)
1919
inject()
2020
},
21-
} as Theme
22-
23-
export default CustomTheme
21+
}

0 commit comments

Comments
 (0)