Skip to content

Sticky versions

Achilleas Pipinellis requested to merge sticky-versions into master

Check the CI_COMMIT_REF_NAME when the site is built and apply it to the versions dropdown (the stable branches that pull the relevant products are named after x.y (major.minor).

The archives page should always point to the most recent archives (versionless) and thus its name is just 'Archives' (we don't care about the version).

Example:

For 10.4, the entire site will have 10.4 always displayed in the dropdown, except for the archives page which would show 'Archives'.

Closes https://gitlab.com/gitlab-com/gitlab-docs/issues/266

Edited by Achilleas Pipinellis

Merge request reports