The Site is generated using vuepress and vuepress-theme-plume
pnpm i# start dev server
pnpm docs:dev
# build for production
pnpm docs:build
# preview production build in local
pnpm docs:preview
# update vuepress and theme
pnpm vp-updateThe plume theme has been created with GitHub Actions: .github/workflows/docs-deploy.yml. You also need to make the following settings in the GitHub repository:
-
settings > Actions > General, Scroll to the bottom of the page, underWorkflow permissions, checkRead and write permissions, and click the save button. -
settings > Pages, InBuild and deployment, selectDeploy from a branchforSource, choosegh-pagesforBranch, and click the save button. (Thegh-pagesbranch may not exist upon first creation. You can complete the above setup first, push the code to the main branch, wait forgithub actionsto finish, and then proceed with the setup.) -
Modify the
baseoption indocs/.vuepress/config.ts:- If you are planning to deploy to
https://<USERNAME>.github.io/, you can skip this step asbasedefaults to"/". - If you are planning to deploy to
https://<USERNAME>.github.io/<REPO>/, meaning your repository URL ishttps://github.com/<USERNAME>/<REPO>, setbaseto"/<REPO>/".
- If you are planning to deploy to
To customize a domain name, please refer to Github Pages