A docs template by vitepress
$ pnpm create un
# or
$ pnpm create un [my-project] -t docs-starter
Init git hook(optional)
$ pnpm git-hook-init
$ pnpm dev
Build your documentation
$ pnpm build
Publish your document by gh-pages
Note:
- Make sure that remote repository is linked (git remote add origin xxxx)
- Keep the repository's name same as the
package.json
's name
Then
$ pnpm deploy:docs
Then visit https://[your-username].github.io/[your-repo-name]/