From 1779180ce1b4992b4ae74eccc6c733ba0537ff59 Mon Sep 17 00:00:00 2001 From: Christian Merten Date: Tue, 3 Dec 2024 03:39:51 +0100 Subject: [PATCH] docker: automatically build documentation and place in static root --- .gitignore | 2 ++ docker/development/entrypoint-master.sh | 4 ++++ docker/production/entrypoint-master.sh | 5 +++++ 3 files changed, 11 insertions(+) diff --git a/.gitignore b/.gitignore index d5f3ef4..98b0933 100644 --- a/.gitignore +++ b/.gitignore @@ -126,3 +126,5 @@ docker/production/media docker/test/media *.csv + +jdav_web/static/docs diff --git a/docker/development/entrypoint-master.sh b/docker/development/entrypoint-master.sh index c5c218d..b43b3eb 100755 --- a/docker/development/entrypoint-master.sh +++ b/docker/development/entrypoint-master.sh @@ -33,6 +33,10 @@ cd /app if ! [ -f /tmp/completed_initial_run ]; then echo 'Initialising kompass master container' + cd docs + make html + cd /app + python jdav_web/manage.py compilemessages --locale de # python jdav_web/manage.py makemigrations diff --git a/docker/production/entrypoint-master.sh b/docker/production/entrypoint-master.sh index d07446a..3ecdd40 100755 --- a/docker/production/entrypoint-master.sh +++ b/docker/production/entrypoint-master.sh @@ -7,6 +7,11 @@ cd /app if ! [ -f completed_initial_run ]; then echo 'Initialising kompass master container' + cd docs + make html + cp -r build/html /app/jdav_web/static/docs + cd /app + python jdav_web/manage.py collectstatic --noinput python jdav_web/manage.py compilemessages --locale de