Getting Started with the Documentation Project
This guide covers how to set up and work with the documentation website locally.
Prerequisites
If you're new to pnpm, see our pnpm guide for installation and usage instructions.
Installation
Install all dependencies:
pnpm install
Local Development
Start the local development server:
pnpm start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Open the documentation site in your browser: http://localhost:3000/
Local Setup with Local Docs
If you want to work with local documentation from other repositories (e.g., qs-magellan, qs-webbloqs), you can configure local paths:
-
Copy the example environment file:
cp .env.example .env -
Adjust the paths in
.envto point to your local repository clones:MAGELLAN_DOCS_PATH=/Users/your-username/path/to/qs-magellan/docs/magellan
WEBBLOQS_DOCS_PATH=/Users/your-username/path/to/qs-webbloqs/docs/webbloqs -
You can comment out repositories you're not working on - they'll use placeholder docs.
See "Live Updates" in Updating Documentation for more details.
Build Commands
pnpm build- Build the site for productionpnpm typecheck- Run TypeScript type checkingpnpm serve- Serve the production build locally (after runningpnpm build)
Project Structure
The documentation project uses Docusaurus and is organized as follows:
docs/- Documentation source filesinternal/- Internal documentation (this section)magellan/,webbloqs/,proxies/- Project-specific documentation
src/- React components and pagessidebars/- Sidebar configuration filesdocusaurus.config.ts- Main Docusaurus configuration
Next Steps
- Learn how to update documentation for existing projects
- See how to integrate a new project into the documentation
- Explore technical Docusaurus details for advanced usage