https://ioiooi.github.io/notes/
yarn docs:dev
VitePress will start a hot-reloading development server at http://localhost:5173.
Run this command to build the docs:
yarn docs:build
Test the build with:
yarn docs:preview
Just copy/paste the official documentation
https://vitepress.dev/guide/deploy#github-pages
Commit on the main
branch starts a GitHub Action which automatically deploys the app.
Go to the repository settings -> Code and automation > Pages
In the GitHub Pages Settings change the "Build and deployment" Source to "GitHub Actions" or else the deployment will fail. (See link)
Error: Creating Pages deployment failed
Error: HttpError: Invalid deployment branch and no branch protection rules set in the environment. Deployments are only allowed from gh-pages