This website is built using Docusaurus, a modern static website generator.
pnpm installpnpm startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
If you don't have Node.js installed locally, you can use Docker.
First, build the Docker image:
docker build -t gc-docs .Then run the development server:
docker run -p 3000:3000 \
-v $(pwd)/docs:/app/docs \
-v $(pwd)/src:/app/src \
-v $(pwd)/static:/app/static \
-v $(pwd)/docusaurus.config.ts:/app/docusaurus.config.ts \
-v $(pwd)/sidebars.ts:/app/sidebars.ts \
gc-docsNOTE: If you are on windows and running in git bash you need to at the -W flag to the docker run command.
docker run -p 3000:3000 \
-v "$(pwd -W)/docs:/app/docs" \
-v "$(pwd -W)/src:/app/src" \
-v "$(pwd -W)/static:/app/static" \
-v "$(pwd -W)/docusaurus.config.ts:/app/docusaurus.config.ts" \
-v "$(pwd -W)/sidebars.ts:/app/sidebars.ts" \
gc-docsThen open http://localhost:3000 in your browser. Any changes to your docs will automatically hot-reload!
pnpm buildThis command generates static content into the build directory and can be served using any static contents hosting service.
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.