diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2018-10-24 11:59:40 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2018-10-24 12:04:57 +0300 |
commit | 1dbf91bec026da1f56f8c350ea83d66a510af790 (patch) | |
tree | 1410388287a7ebf8f8f098bbc9545ae85bef2571 /content/archives | |
parent | 9e2c92296c3aaef571647a3c1f7db0c85bd92963 (diff) |
Move archives content to an index.html file
This fixes the issue when on the /archives page.
The dropdown login is that it takes the Nanoc identifier (file path
under content/) and in the archives case it was different than the
created file (set in Rules).
With this change, the identifier and the ending result are the same,
thus the dropdown link no longer 404.
Diffstat (limited to 'content/archives')
-rw-r--r-- | content/archives/index.html | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/content/archives/index.html b/content/archives/index.html new file mode 100644 index 00000000..9df9cd4a --- /dev/null +++ b/content/archives/index.html @@ -0,0 +1,68 @@ +--- +title: Docs archives | GitLab +comments: false +last_updated: 2018-10-17 +--- + +<h1>Docs archives</h1> + +This website contains online versions of the GitLab +documentation: the default version, the latest released +version, and the two previously released versions. + +<% unless @items['/_data/versions.yaml'][:offline].nil? %> +To browse a version that is not available online, see the +<a href='#offline-archives'>offline archives</a>. They're +available for download so that you can browse through them +locally. +<% end %> + +<h2 id="default-version">Default version <a class="anchor" href="#default-version"></a></h2> + +The <a href="/">default version</a> of this website +is built from the <code>doc</code> directories on the <code>master</code> branches of +<a href="https://gitlab.com/gitlab-org/gitlab-ce/tree/master/doc">GitLab Community Edition</a>, +<a href="https://gitlab.com/gitlab-org/gitlab-ee/tree/master/doc">GitLab Enterprise Edition</a>, +<a href="https://gitlab.com/gitlab-org/omnibus-gitlab/tree/master/doc">Omnibus GitLab</a>, and +<a href="https://gitlab.com/gitlab-org/gitlab-runner/tree/master/docs">GitLab Runner</a>, +all of them brought together by the +<a href="https://gitlab.com/gitlab-com/gitlab-docs/">GitLab Docs</a> +project, which continuously deploys this content to <a href="/">docs.gitlab.com</a>. + +<h2 id="latest-released-version">Latest released version <a class="anchor" href="#latest-released-version"></a></h2> + +The latest released stable version is +<a href='/<%= @items['/_data/versions.yaml'][:online].first %>/'><%= @items['/_data/versions.yaml'][:online].first %></a>. + +<h2 id="previously-released-versions">Previously released versions <a class="anchor" href="#previously-released-versions"></a></h2> + +The following versions are available online: + +<ul> +<!-- + List the online versions dropping the first and starting from the second one, + since the first is always the current and we list it in the previous section. +--> +<% @items['/_data/versions.yaml'][:online].drop(1).each do |version| %> + <li> + <a href='/<%= version %>/'><%= version %></a> + </li> +<% end %> +</ul> + +<% unless @items['/_data/versions.yaml'][:offline].nil? %> +<h2 id="offline-archives">Offline archives <a class="anchor" href="#offline-archives"></a></h2> + +The following archives are available and can be browsed offline. You'll need to have +<a href='https://docs.docker.com/install/' target='_blank'>Docker installed</a> +to access them. + +<% @items['/_data/versions.yaml'][:offline].each do |version| %> + +<h3><%= version %></h3> + +<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 %> +<% end %> |