diff options
-rw-r--r-- | Dockerfile.master | 2 | ||||
-rw-r--r-- | content/404.html | 2 | ||||
-rw-r--r-- | content/_data/versions.yaml | 3 | ||||
-rw-r--r-- | dockerfiles/Dockerfile.archives | 1 |
4 files changed, 5 insertions, 3 deletions
diff --git a/Dockerfile.master b/Dockerfile.master index 90d424cb..4c7c0dc4 100644 --- a/Dockerfile.master +++ b/Dockerfile.master @@ -31,9 +31,9 @@ RUN rm -rf /usr/share/nginx/html/* # Get all the archive static HTML and put it into place # Copy the versions found in 'content/_data/versions.yaml' under online. +COPY --from=registry.gitlab.com/gitlab-com/gitlab-docs:11.11 ${TARGET} ${TARGET} COPY --from=registry.gitlab.com/gitlab-com/gitlab-docs:11.10 ${TARGET} ${TARGET} COPY --from=registry.gitlab.com/gitlab-com/gitlab-docs:11.9 ${TARGET} ${TARGET} -COPY --from=registry.gitlab.com/gitlab-com/gitlab-docs:11.8 ${TARGET} ${TARGET} # Get the built docs output from the previous build stage # This ordering means all previous layers can come from cache unless an archive diff --git a/content/404.html b/content/404.html index 09cd83c4..a6c6dc87 100644 --- a/content/404.html +++ b/content/404.html @@ -39,7 +39,7 @@ searchbar: false <script type="text/javascript"> // Redirect to /archives on a non-existing versions // Place here all offline versions as seen inside content/_data/versions.yaml - if (/10.3|10.4|10.5|10.6|10.7|10.8|11.0|11.1|11.2|11.3|11.4|11.5|11.6|11.7/.test(window.location.href)) { + if (/10.3|10.4|10.5|10.6|10.7|10.8|11.0|11.1|11.2|11.3|11.4|11.5|11.6|11.7|11.8/.test(window.location.href)) { window.location.replace("https://docs.gitlab.com/archives"); } </script> diff --git a/content/_data/versions.yaml b/content/_data/versions.yaml index 8381c5b3..69188a34 100644 --- a/content/_data/versions.yaml +++ b/content/_data/versions.yaml @@ -1,11 +1,12 @@ # The first online version should always point to the # current stable version. online: + - "11.11" - "11.10" - "11.9" - - "11.8" offline: + - "11.8" - "11.7" - "11.6" - "11.5" diff --git a/dockerfiles/Dockerfile.archives b/dockerfiles/Dockerfile.archives index cea6216f..f9c36557 100644 --- a/dockerfiles/Dockerfile.archives +++ b/dockerfiles/Dockerfile.archives @@ -7,6 +7,7 @@ ENV TARGET=/usr/share/nginx/html COPY --from=registry.gitlab.com/gitlab-com/gitlab-docs:nginx-onbuild /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf # Get all the archive static HTML and put it into place +COPY --from=registry.gitlab.com/gitlab-com/gitlab-docs:11.11 ${TARGET} ${TARGET} COPY --from=registry.gitlab.com/gitlab-com/gitlab-docs:11.10 ${TARGET} ${TARGET} COPY --from=registry.gitlab.com/gitlab-com/gitlab-docs:11.9 ${TARGET} ${TARGET} COPY --from=registry.gitlab.com/gitlab-com/gitlab-docs:11.8 ${TARGET} ${TARGET} |