Deployment
Local development
Use Node.js 20 or 22 LTS.
bash
npm install
npm run docs:devOpen http://127.0.0.1:3000.
Build static files
bash
npm run docs:buildThe generated static site is written to:
text
docs/.vitepress/distThat folder is what you can zip and deploy anywhere.
GitHub Pages
This repo already includes .github/workflows/pages.yml.
To use it:
- Push to
main - In GitHub, open
Settings -> Pages - Set the source to
GitHub Actions - Wait for the
Docsworkflow to finish
For this repository, the site will publish under:
text
https://slasshyoverhere.github.io/poolswitch/Netlify
This repo already includes netlify.toml.
If you configure it manually, use:
- build command:
npm run docs:build - publish directory:
docs/.vitepress/dist - Node version:
22
Vercel
This repo already includes vercel.json.
If you configure it manually, use:
- install command:
npm install - build command:
npm run docs:build - output directory:
docs/.vitepress/dist
Direct zip deploy
If your host accepts static uploads:
- run
npm run docs:build - zip the contents of
docs/.vitepress/dist - upload that zip to your host
Recommended workflow
- keep docs in this repo
- update docs in pull requests
- preview locally with
npm run docs:dev - deploy from
mainor upload the built folder manually