multilang: update

Copied the changes in the monolang version to the multilang version.
This commit is contained in:
Luc Bijl 2025-07-20 19:59:57 +02:00
parent 0d93a954ee
commit bc481c8586
2 changed files with 35 additions and 10 deletions

View file

@ -1,9 +1,20 @@
#!/bin/sh
# Redirect standard error to standard output
exec 2>&1
# Activate the Python virtual environment
source ${VIRTUAL_ENV}/bin/activate
# Check if the /mkdocs/repo directory exists
# If it does not exist, clone the repository from the specified GIT_REPO_URL
find /mkdocs/repo || git clone $GIT_REPO_URL /mkdocs/repo
# Change directory to the cloned repository and pull the latest changes
cd /mkdocs/repo && git pull
# Build mkdocs using the configuration file of each lang
# The output will be directed the subsequent lang directory in /usr/share/nginx/html
for lang in $WIKI_LANG
do
mkdocs build -f /mkdocs/repo/config/${lang}/mkdocs.yml -d /usr/share/nginx/html/${lang}