docker: automatically build documentation and place in static root

pull/73/head
Christian Merten 1 year ago
parent 3bb64815ab
commit 1779180ce1
Signed by: christian.merten
GPG Key ID: D953D69721B948B3

2
.gitignore vendored

@ -126,3 +126,5 @@ docker/production/media
docker/test/media
*.csv
jdav_web/static/docs

@ -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

@ -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

Loading…
Cancel
Save