This website is built using Docusaurus, a modern static website generator.
pnpmpnpm startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
pnpm buildThis command generates static content into the build directory and can be served using any static contents hosting service.
- In GitHub repo settings:
Settings→Pages→Build and deployment→ select GitHub Actions. - Ensure your default branch is
main(or update.github/workflows/deploy-github-pages.ymlto match). - If your repo is not
poly-workshop/knowledge-base, updateSITE_URL/BASE_URLin the workflow, or set them via environment variables and adjustdocusaurus.config.ts.
Using SSH:
USE_SSH=true pnpm deployNot using SSH:
GIT_USER=<Your GitHub username> pnpm deployIf you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.