File tree 3 files changed +15
-0
lines changed
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { fileURLToPath , URL } from 'node:url'
1
2
import { defineConfig } from "vitepress" ;
2
3
3
4
// https://vitepress.dev/reference/site-config
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/
You can’t perform that action at this time.
0 commit comments