File tree 4 files changed +325
-0
lines changed
4 files changed +325
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { defineConfigWithTheme } from 'vitepress'
2
+ import path from 'path'
3
+
4
+ export default defineConfigWithTheme ( {
5
+ base : '/vue-vnode-utils' ,
6
+ title : '@skirtle/vue-vnode-utils' ,
7
+ lang : 'en-US' ,
8
+ description : 'VNode utilities for Vue' ,
9
+
10
+ vite : {
11
+ resolve : {
12
+ alias : {
13
+ '@skirtle/vue-vnode-utils' : path . resolve ( __dirname , '../../src/vue-vnode-utils.ts' )
14
+ }
15
+ }
16
+ } ,
17
+
18
+ themeConfig : {
19
+ socialLinks : [
20
+ { icon : 'github' , link : 'https://github.com/skirtles-code/vue-vnode-utils' }
21
+ ]
22
+ }
23
+ } )
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout : home
3
+
4
+ title : vue-vnode-utils
5
+ titleTemplate : VNode utilities for Vue
6
+
7
+ hero :
8
+ name : vue-vnode-utils
9
+ text : Helper functions for working with Vue VNodes
10
+ tagline : Smoothing over the edge cases for working with the VNodes returned by a slot
11
+ actions :
12
+ - theme : brand
13
+ text : Get Started
14
+ link : /guide/introduction
15
+ - theme : alt
16
+ text : View on GitHub
17
+ link : https://github.com/skirtles-code/vue-vnode-utils
18
+
19
+ features :
20
+ - title : 🧩 Fragment-aware iteration
21
+ details : Walk child VNodes without worrying about fragments created by v-for.
22
+ - title : ➕ Add props
23
+ details : Add extra props, CSS classes or events to slot contents.
24
+ - title : 🌲 Edit the tree
25
+ details : Remove existing nodes, wrap them with other nodes, or insert new nodes into the VNode tree.
26
+ - title : 🙈 Probably not a good idea
27
+ details : But if you really have to manipulate VNodes, a library to smooth over the edge cases makes it less likely to go wrong.
28
+ ---
Original file line number Diff line number Diff line change 37
37
"typescript" : " ^4.8.4" ,
38
38
"vite" : " ^3.1.4" ,
39
39
"vite-plugin-dts" : " ^1.6.4" ,
40
+ "vitepress" : " 1.0.0-alpha.19" ,
40
41
"vitest" : " ^0.24.0" ,
41
42
"vue" : " ^3.2.0" ,
42
43
"vue-tsc" : " ^0.40.13"
49
50
"build-neutral" : " vite build --mode neutral" ,
50
51
"build-prod" : " vite build --mode production" ,
51
52
"type-check" : " vue-tsc --noEmit -p tsconfig.vitest.json --composite false" ,
53
+ "docs:dev" : " vitepress dev docs" ,
54
+ "docs:build" : " vitepress build docs" ,
55
+ "docs:serve" : " vitepress serve docs" ,
52
56
"preinstall" : " npx only-allow pnpm"
53
57
}
54
58
}
You can’t perform that action at this time.
0 commit comments