This repository contains the
- install dependencies
pnpm i
- prepare the build process with
pnpm run prepare:build
- run
docker build .
to build a docker image
The prepare:build
scripts does 2 main things:
- clone or update the documentation repositories for all languages
- generate a dockerfile that contains the build definitions for all registered docs
The Dockerfile consists of n+1
stages:
n
: each language has its own build stage+1
: the final stage copies all static files of all preceding stages into the final destination + the actual nginx configuration file
Adding a new language to the build process is as easy as:
- verify that the docs repository exists in the
zwoo-hq
org and is publicly accessible - edit the
config.mjs
file and add a new entry to therepos
object:
The object contains a reference to all repositories which should be build. The format is the following: [lang]
: <repository name>
.
- Add the directory of the repository to the
.gitignore