Hi! We're really excited that you are interested in contributing to VitePress. Before submitting your contribution, please make sure to take a moment and read through the following guidelines:
Checkout a topic branch from the relevant branch, e.g. main, and merge back against that branch.
If adding a new feature:
If fixing bug:
It's OK to have multiple small commits as you work on the PR - GitHub can automatically squash them before merging.
Commit messages must follow the commit message convention so that changelogs can be automatically generated.
You will need pnpm
After cloning the repo, run:
# install the dependencies of the project
$ pnpm install
# setup git hooks
$ pnpm simple-git-hooks
The easiest way to start testing out VitePress is to tweak the VitePress docs. You may run pnpm run docs to boot up VitePress documentation site locally, with live reloading of the source code.
$ pnpm run docs
After executing the above command, visit http://localhost:5173 and try modifying the source code. You'll get live update.
If you don't need docs site up and running, you may start VitePress local dev environment with pnpm run dev.
$ pnpm run dev