Skip to content

Commit

Permalink
Merge pull request #742 from liuxinyumocn/fix/docs0417
Browse files Browse the repository at this point in the history
Fix/docs0417
  • Loading branch information
liuxinyumocn authored Apr 18, 2024
2 parents 32df281 + 7e80802 commit 1a82a58
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .config/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from "vitepress";

// https://vitepress.dev/reference/site-config
Expand Down
13 changes: 13 additions & 0 deletions .config/node/gird.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const fs = require("fs");
const path = require("path");
const root = process.cwd();
const vpPath = path.resolve(
root,
"./node_modules/vitepress/dist/client/theme-default/components/VPFeatures.vue"
);
if (fs.existsSync(vpPath)) {
let content = fs.readFileSync(vpPath, { encoding: "utf-8" });
content = content.replace(`return 'grid-4'`, `return 'grid-6'`);
fs.rmSync(vpPath);
fs.writeFileSync(vpPath, content, { encoding: "utf-8" });
}
1 change: 1 addition & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- name: Build
run: |
rm -rf Demo
node .config/node/gird.js
npm run docs:build
mkdir ./docs/image
cp -r ./image/* ./docs/image/
Expand Down

0 comments on commit 1a82a58

Please sign in to comment.