2023-02-23 12:08:06 +01:00
# ZITADEL-Docs
2021-04-15 13:22:37 +02:00
This website is built using [Docusaurus 2 ](https://v2.docusaurus.io/ ), a modern static website generator.
2025-07-16 09:10:19 +02:00
The documentation is part of the ZITADEL monorepo and uses **pnpm** and **Turbo** for development and build processes.
2021-04-15 13:22:37 +02:00
2025-07-16 09:10:19 +02:00
## Quick Start
2025-05-21 10:50:44 +02:00
2025-07-16 09:10:19 +02:00
```bash
# From the repository root
pnpm install
2021-04-15 13:22:37 +02:00
2025-07-16 09:10:19 +02:00
# Start development server (with Turbo)
pnpm turbo dev --filter=zitadel-docs
2024-01-11 16:27:37 +02:00
2025-07-16 09:10:19 +02:00
# Or start directly from docs directory
cd docs & & pnpm start
2021-04-15 13:22:37 +02:00
```
2025-07-16 09:10:19 +02:00
The site will be available at http://localhost:3000
2023-04-12 09:42:40 +02:00
2025-07-16 09:10:19 +02:00
## Available Scripts
All scripts can be run from the repository root using Turbo:
```bash
# Development server with live reload
pnpm turbo dev --filter=zitadel-docs
# Build for production
pnpm turbo build --filter=zitadel-docs
# Generate API documentation and configuration docs
pnpm turbo generate --filter=zitadel-docs
# Lint and fix code
pnpm turbo lint --filter=zitadel-docs
# Serve production build locally
cd docs & & pnpm serve
2023-04-12 09:42:40 +02:00
```
2025-07-16 09:10:19 +02:00
## Add new Sites to existing Topics
To add a new site to the already existing structure simply save the `md` file into the corresponding folder and append the sites id int the file `sidebars.js` .
If you are introducing new APIs (gRPC), you need to add a new entry to `docusaurus.config.js` under the `plugins` section.
## Build Process
The documentation build process automatically:
1. **Downloads required protoc plugins** - Ensures `protoc-gen-connect-openapi` is available
2. **Generates gRPC documentation** - Creates API docs from proto files
3. **Generates API documentation** - Creates OpenAPI specification docs
4. **Copies configuration files** - Includes configuration examples
5. **Builds the Docusaurus site** - Generates the final static site
2023-04-12 09:42:40 +02:00
2021-04-15 13:22:37 +02:00
## Local Development
2025-07-16 09:10:19 +02:00
### Standard Development
2024-01-11 16:27:37 +02:00
2025-07-16 09:10:19 +02:00
```bash
# Install dependencies
pnpm install
# Start development server
pnpm start
2022-10-27 18:16:04 +02:00
```
2025-07-16 09:10:19 +02:00
### API Documentation Development
2024-01-11 16:27:37 +02:00
2025-07-16 09:10:19 +02:00
When working on the API docs, run a local development server with:
```bash
pnpm start:api
2024-01-11 16:27:37 +02:00
```
2023-02-23 12:08:06 +01:00
## Container Image
2021-04-15 13:22:37 +02:00
2023-02-23 12:08:06 +01:00
If you just want to start docusaurus locally without installing node you can fallback to our container image.
2025-07-16 09:10:19 +02:00
Execute the following commands from the repository root to build and start a local version of ZITADEL
2021-04-15 13:22:37 +02:00
2023-02-23 12:08:06 +01:00
```shell
docker build -f docs/Dockerfile . -t zitadel-docs
2021-04-15 13:22:37 +02:00
```
2023-02-23 12:08:06 +01:00
```shell
docker run -p 8080:8080 zitadel-docs
2023-04-12 09:42:40 +02:00
```