Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcia Ramos <marcia@gitlab.com>2019-07-22 17:59:41 +0300
committerMarcia Ramos <marcia@gitlab.com>2019-07-22 17:59:41 +0300
commit2edbc02d38ec83dbcec899cbb0d068b1dde03146 (patch)
tree60b0b16de000642b82c1632aa4ff427757cc14e5
parent3b6bcb0e123855f61a8b7139c712c3320adfd366 (diff)
parented50a746df7ffbd71d41fbfadedae98a99607824 (diff)
Merge branch 'release-12-1' into 'master'
Release 12.1 See merge request gitlab-org/gitlab-docs!492
-rw-r--r--Dockerfile.master2
-rw-r--r--content/404.html2
-rw-r--r--content/_data/versions.yaml3
-rw-r--r--dockerfiles/Dockerfile.archives1
4 files changed, 5 insertions, 3 deletions
diff --git a/Dockerfile.master b/Dockerfile.master
index 872f82ed..e306dfe6 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-org/gitlab-docs:12.1 ${TARGET} ${TARGET}
COPY --from=registry.gitlab.com/gitlab-org/gitlab-docs:12.0 ${TARGET} ${TARGET}
COPY --from=registry.gitlab.com/gitlab-org/gitlab-docs:11.11 ${TARGET} ${TARGET}
-COPY --from=registry.gitlab.com/gitlab-org/gitlab-docs:11.10 ${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 e4706f79..94d588a3 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|11.8|11.9/.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|11.9|11.10/.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 51f7f050..2d4b42d6 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:
+ - "12.1"
- "12.0"
- "11.11"
- - "11.10"
offline:
+ - "11.10"
- "11.9"
- "11.8"
- "11.7"
diff --git a/dockerfiles/Dockerfile.archives b/dockerfiles/Dockerfile.archives
index 34e0a017..30bfe73f 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-org/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-org/gitlab-docs:12.1 ${TARGET} ${TARGET}
COPY --from=registry.gitlab.com/gitlab-org/gitlab-docs:12.0 ${TARGET} ${TARGET}
COPY --from=registry.gitlab.com/gitlab-org/gitlab-docs:11.11 ${TARGET} ${TARGET}
COPY --from=registry.gitlab.com/gitlab-org/gitlab-docs:11.10 ${TARGET} ${TARGET}