File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change
1
+ const fs = require ( "fs" ) ;
2
+ const path = require ( "path" ) ;
3
+ const root = process . cwd ( ) ;
4
+ const vpPath = path . resolve (
5
+ root ,
6
+ "./node_modules/vitepress/dist/client/theme-default/components/VPFeatures.vue"
7
+ ) ;
8
+ if ( fs . existsSync ( vpPath ) ) {
9
+ let content = fs . readFileSync ( vpPath , { encoding : "utf-8" } ) ;
10
+ content = content . replace ( `return 'grid-4'` , `return 'grid-6'` ) ;
11
+ fs . rmSync ( vpPath ) ;
12
+ fs . writeFileSync ( vpPath , content , { encoding : "utf-8" } ) ;
13
+ }
Original file line number Diff line number Diff line change 30
30
- name : Build
31
31
run : |
32
32
rm -rf Demo
33
+ node .config/node/gird.js
33
34
npm run docs:build
34
35
mkdir ./docs/image
35
36
cp -r ./image/* ./docs/image/
Original file line number Diff line number Diff line change 12
12
"author" : " Wechat MiniGame Team" ,
13
13
"license" : " MIT" ,
14
14
"devDependencies" : {
15
- "vitepress" : " ^ 1.0.2"
15
+ "vitepress" : " 1.0.2"
16
16
}
17
17
}
You can’t perform that action at this time.
0 commit comments