First, install Node.js from nodejs.org.
Once installed, you can set up npx globally by running:
npm install -g npxThen:
npm installTo start the local build server with hot module reloading and an eslint watcher, execute:
npx vitepress devTo compile the entire site into a static project, use the following command:
npx vitepress buildTo preview the built site locally, run:
npx vitepress previewIf you want to verify the build without using VitePress, navigate to the dist directory and start a local server:
cd .vitepress/dist; python -m http.server
If you haven't installed gh-pages yet, run the following command:
npm install --save-dev gh-pagesPush the built files to the `gh-pages branch:
npm run deploy