功能 A
示例示例示例示例示例示例示例示例示例示例示例示例示例
For self-use mainly.
Preview: vitepress-template.wyf9.top
pnpm install
pnpm update # Must do update before useDelete these files:
rm api-examples.md
rm markdown-examples.md
rm en_us/api-examples.md
rm en_us/markdown-examples.mdAnd edit these files:
.vitepress/config.mts
index.md
en_us/index.md
README.mdIf you need github pages deployment, simply go Settings -> Pages -> Source, select GitHub Actions, then enable the Deploy VitePress site to Pages workflow.
IMPORTANT
Remember to change the base setting in .vitepress/config.mts, if you want to deploy your site to a sub path.
If you don't need it, just remove .github/workflows/deploy.yml file.
pnpm dev # Start development server
pnpm build # Build site (.vitepress/dist/)
pnpm preview # Preview built siteLicensed under the CC-BY-SA license.