2021-09-11 17:10:32 +02:00
# Website
This website is built using [Docusaurus 2 ](https://docusaurus.io/ ), a modern static website generator.
2023-10-31 10:14:09 +02:00
## Installation
2021-09-11 17:10:32 +02:00
2023-03-24 19:18:14 +02:00
```bash
pnpm install
2021-09-11 17:10:32 +02:00
```
2023-10-31 10:14:09 +02:00
## Local Development
2021-09-11 17:10:32 +02:00
2023-03-24 19:18:14 +02:00
```bash
pnpm start
2021-09-11 17:10:32 +02:00
```
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
2023-10-31 10:14:09 +02:00
## Build
2021-09-11 17:10:32 +02:00
2023-03-24 19:18:14 +02:00
```bash
pnpm build
2021-09-11 17:10:32 +02:00
```
This command generates static content into the `build` directory and can be served using any static contents hosting service.
2023-10-31 10:14:09 +02:00
## Deployment
2021-09-11 17:10:32 +02:00
2021-10-14 18:13:57 +02:00
Deployment happen via [CI ](https://github.com/woodpecker-ci/woodpecker/blob/d59fdb4602bfdd0d00078716ba61b05c02cbd1af/.woodpecker/docs.yml#L8-L30 ) to [woodpecker-ci.org ](https://woodpecker-ci.org ).
2021-09-11 17:10:32 +02:00
2021-09-16 18:50:53 +02:00
To manually build the website and push it exec:
```sh
2023-07-31 05:47:23 +02:00
GIT_USER=woodpecker-bot USE_SSH=true DEPLOYMENT_BRANCH=main pnpm deploy
2021-09-16 18:50:53 +02:00
```