2023-02-23 11:08:06 +00:00
# ZITADEL-Docs
2021-04-15 11:22:37 +00: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 14:27:37 +00:00
Install dependencies with
2023-02-23 11:08:06 +00:00
```
2021-04-15 11:22:37 +00:00
yarn install
```
2024-01-11 14:27:37 +00:00
then run
2023-04-12 07:42:40 +00:00
```
yarn generate
```
2021-04-15 11:22:37 +00:00
## Local Development
2024-01-11 14:27:37 +00:00
Start a local development server with
2021-04-15 11:22:37 +00:00
```
2023-02-23 11:08:06 +00:00
yarn start
2022-10-27 16:16:04 +00:00
```
2024-01-11 14:27:37 +00:00
When working on the API docs, run a local development server with
```
yarn start:api
```
2023-02-23 11:08:06 +00:00
## Container Image
2021-04-15 11:22:37 +00:00
2023-02-23 11:08:06 +00: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 11:22:37 +00:00
2023-02-23 11:08:06 +00:00
```shell
docker build -f docs/Dockerfile . -t zitadel-docs
2021-04-15 11:22:37 +00:00
```
2023-02-23 11:08:06 +00:00
```shell
docker run -p 8080:8080 zitadel-docs
2023-04-12 07:42:40 +00:00
```