diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2018-04-09 14:42:08 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2018-04-09 19:00:22 +0300 |
commit | 764239468a728daae24e947a4c7484ebef5e8689 (patch) | |
tree | 0f0e3956482ee6c6b270fcff44c1730e4f6c27f5 /content | |
parent | abbafef38451c233df92d83e57b4cf46ce677a36 (diff) |
Add dynamic archives
Diffstat (limited to 'content')
-rw-r--r-- | content/_data/versions.yaml | 9 | ||||
-rw-r--r-- | content/archives.html | 41 | ||||
-rw-r--r-- | content/archives/index.md | 52 |
3 files changed, 50 insertions, 52 deletions
diff --git a/content/_data/versions.yaml b/content/_data/versions.yaml new file mode 100644 index 00000000..b5d3e7b1 --- /dev/null +++ b/content/_data/versions.yaml @@ -0,0 +1,9 @@ +latest: 10.6 + +online: +- 10.6 + +offline: +- 10.5 +- 10.4 +- 10.3 diff --git a/content/archives.html b/content/archives.html new file mode 100644 index 00000000..7cdc1600 --- /dev/null +++ b/content/archives.html @@ -0,0 +1,41 @@ +--- +comments: false +last_updated: 2018-09-04 +--- + +<h1>Docs archives</h1> + +Browse the archives for different GitLab versions. To browse them locally, +you'll need to have <a href='https://docs.docker.com/install/' target='_blank'>Docker installed</a>. + +<h2>Online archives</h2> + +The following archives are available online and can be browsed on +<a href='/'>https://docs.gitlab.com</a>. + +<% @items['/_data/versions.yaml'][:online].each do |version| %> + +<h3><%= version %></h3> + +Visit the <a href='/<%= version %>/'>GitLab <%= version %> docs</a> or download +them and browse locally: + +<div class="highlight"><pre class="highlight shell"><code>docker run <span class="nt">-it</span> <span class="nt">--rm</span> <span class="nt">-p</span> 4000:4000 registry.gitlab.com/gitlab-com/gitlab-docs:<%= version %> +</code></pre></div> + +<% end %> + +<h2>Offline archives</h2> + +The following archives are available offline. + +<% @items['/_data/versions.yaml'][:offline].each do |version| %> + +<h3><%= version %></h3> + +Download them and browse locally: + +<div class="highlight"><pre class="highlight shell"><code>docker run <span class="nt">-it</span> <span class="nt">--rm</span> <span class="nt">-p</span> 4000:4000 registry.gitlab.com/gitlab-com/gitlab-docs:<%= version %> +</code></pre></div> + +<% end %> diff --git a/content/archives/index.md b/content/archives/index.md deleted file mode 100644 index d8a66075..00000000 --- a/content/archives/index.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -comments: false ---- - -# Docs archives - -CAUTION: **Warning:** -This page is in beta, many links might not work. For updates, follow -[this issue](https://gitlab.com/gitlab-com/gitlab-docs/issues/16). - -Browse the archives for different GitLab versions. - -## Online archives - -The following archives are available online and can be browsed on -<https://docs.gitlab.com>. - -### 10.6 - -Visit the [GitLab 10.6 docs](/10.6/) or download them and browse locally: - -```sh -docker run -it --rm -p 4000:4000 registry.gitlab.com/gitlab-com/gitlab-docs:10.6 -``` - -## Offline archives - -The following archives are available offline. - -### 10.5 - -Download them and browse locally: - -```sh -docker run -it --rm -p 4000:4000 registry.gitlab.com/gitlab-com/gitlab-docs:10.5 -``` - -### 10.4 - -Download them and browse locally: - -```sh -docker run -it --rm -p 4000:4000 registry.gitlab.com/gitlab-com/gitlab-docs:10.4 -``` - -### 10.3 - -Download them and browse locally: - -```sh -docker run -it --rm -p 4000:4000 registry.gitlab.com/gitlab-com/gitlab-docs:10.3 -``` |