Skip to content

Commit

Permalink
feat: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nebulaliu committed Apr 18, 2024
1 parent 32df281 commit 5d08531
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"author": "Wechat MiniGame Team",
"license": "MIT",
"devDependencies": {
"vitepress": "^1.0.2"
"vitepress": "1.0.2"
}
}

0 comments on commit 5d08531

Please sign in to comment.