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.
## 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` .
## Installation
2024-01-11 16:27:37 +02:00
Install dependencies with
2023-02-23 12:08:06 +01:00
```
2021-04-15 13:22:37 +02:00
yarn install
```
2024-01-11 16:27:37 +02:00
then run
2023-04-12 09:42:40 +02:00
```
yarn generate
```
2021-04-15 13:22:37 +02:00
## Local Development
2024-01-11 16:27:37 +02:00
Start a local development server with
2021-04-15 13:22:37 +02:00
```
2023-02-23 12:08:06 +01:00
yarn start
2022-10-27 18:16:04 +02:00
```
2024-01-11 16:27:37 +02:00
When working on the API docs, run a local development server with
```
yarn start:api
```
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.
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
```