File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
etc/s6-overlay/s6-rc.d/init-netbox-config Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ app_setup_block: |
5959
6060# changelog
6161changelogs :
62+ - { date: "14.05.23:", desc: "Build local docs on first run." }
6263 - { date: "05.03.23:", desc: "Rebase to Alpine 3.17." }
6364 - { date: "02.11.22:", desc: "Rebase to Alpine 3.16, migrate to s6v3." }
6465 - { date: "01.08.22:", desc: "Remove py3-pillow, add tiff to fix deps." }
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ plugin = python3
66module = netbox.wsgi:application
77static-map = /static =static
88static-gzip-dir = static/CACHE
9+ static-index = index.html
910hook-pre-app = exec:/usr/bin/python3 ./manage.py collectstatic --noinput
1011hook-pre-app = exec:/usr/bin/python3 ./manage.py remove_stale_contenttypes --no-input
1112hook-pre-app = exec:/usr/bin/python3 ./manage.py clearsessions
Original file line number Diff line number Diff line change @@ -49,6 +49,14 @@ ln -sf /config/configuration.py /app/netbox/netbox/netbox/configuration.py
4949
5050mv /defaults/uwsgi.ini /app/netbox/netbox/uwsgi.ini > /dev/null 2>&1
5151
52+ # build docs
53+ if [[ ! -e "/app/netbox/netbox/project-static/docs/index.html" ]]; then
54+ cd /app/netbox || exit 1
55+ echo "Building local documentation"
56+ mkdocs build
57+ cd /app/netbox/netbox || exit 1
58+ fi
59+
5260# permissions
5361lsiown -R abc:abc \
5462 /app/netbox/netbox/static \
You can’t perform that action at this time.
0 commit comments