Age | Commit message (Collapse) | Author |
|
|
|
Check if CI_PROJECT_NAME is 'gitlab-docs', or nil which implies
local development. This can be used to skip portions that we
don't want to render in one of the upstream products.
|
|
|
|
We need to stop Google from indexing old docs, so we should make sure
the noindex tag is added to all archived docs:
https://developers.google.com/search/docs/advanced/crawling/block-indexing.
That way Google will stop serving up results for pages 12.10 versions of
pages, for example.
|
|
We don't want the banner to be shown on stable branches.
This introduces a new function that checks if CI_COMMIT_REF_NAME
is defined, and if not, it uses Git to find the current branch name.
If show_banner is false and current_branch is not a stable branch,
hide the banner.
|
|
This ought to be used when we don't want to deploy things in
the stable branches, since they are considered production.
|
|
|
|
|
|
Contributes to https://gitlab.com/gitlab-org/gitlab-docs/-/issues/879
It saves up to 50% of the compiled files size
|
|
|