diff --git a/deploy/Dockerfile b/deploy/Dockerfile index 04f3a6b..d544070 100644 --- a/deploy/Dockerfile +++ b/deploy/Dockerfile @@ -10,10 +10,8 @@ RUN deploy/build FROM nginx:mainline-alpine@sha256:af466e4f12e3abe41fcfb59ca0573a3a5c640573b389d5287207a49d1324abd8 COPY deploy/nginx.conf /etc/nginx -RUN mkdir -p /opt/nginx/run /opt/nginx/webroot/en/latest /opt/nginx/webroot/en/stable && chown -R nginx:nginx /opt/nginx +RUN mkdir -p /opt/nginx/run /opt/nginx/webroot/en/stable && chown -R nginx:nginx /opt/nginx USER nginx COPY --from=sphinx --chown=nginx:nginx build/stable/html/ /opt/nginx/webroot/en/stable/ COPY --from=sphinx --chown=nginx:nginx build/stable/latex/SecureDropSupport.pdf /opt/nginx/webroot/en/stable/ -COPY --from=sphinx --chown=nginx:nginx build/latest/html/ /opt/nginx/webroot/en/latest/ -COPY --from=sphinx --chown=nginx:nginx build/latest/latex/SecureDropSupport.pdf /opt/nginx/webroot/en/latest/ diff --git a/deploy/build b/deploy/build index 4933002..92d852c 100755 --- a/deploy/build +++ b/deploy/build @@ -7,7 +7,6 @@ set -e latest_branch=main -stable_tag=$(git tag --sort=version:refname | tail -1) do_build() { git checkout "$1" @@ -23,5 +22,4 @@ do_build() { mv docs/_build "build/${2}" } -do_build "$stable_tag" stable -do_build "$latest_branch" latest +do_build "$latest_branch" stable diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index 0c0b94e..c7f47e1 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -14,9 +14,6 @@
Versions
- - stable - latest