Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
The runner project changed the default branch to
main, so we need to make sure we pull from main
whenever we need to in the docs project
|
|
|
|
Basically, let us add any text we want between
(introduced|(re)moved|deprecated) and (in|to).
|
|
|
|
|
|
|
|
|
|
|
|
This fixes the case where a new major version is the
next version to be released, and the dropdown incorrectly
shows a next patch version that doesn't exist.
|
|
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.
|
|
|
|
|
|
Now that we only have one file, let's rename
`default-nav.yaml` to `navigation.yaml`.
|
|
|
|
|
|
|
|
|
|
Based off https://gitlab.com/gitlab-org/technical-writing/-/issues/348
|
|
|
|
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.
|
|
Add helper for production and default branch
See merge request gitlab-org/gitlab-docs!1422
|
|
This ought to be used when we don't want to deploy things in
the stable branches, since they are considered production.
|
|
We discovered that dropdown displays previous versions when deployed
in Omnibus.
Changes:
* Extract common functionality into a partial or a helper
* Add `display_previous_versions?` method to hide previous versions
|
|
Since we now only support two alerts, NOTE and WARNING,
drop the rest of them.
For https://gitlab.com/groups/gitlab-org/-/epics/5021
|
|
|
|
|
|
This is a drop-in replacement of CAUTION, and they can
be used interchangeably.
|
|
Also updates tests and CI configuration to support tests.
|
|
Limit symlink converter scope
See merge request gitlab-org/gitlab-docs!1372
|
|
Previously, for the alerts to work, a whitespace was needed to succeed
them, and this was possible since we were using `NOTE: **Note:**`.
However, if we wanted to get rid of the `**Note:**` text, this would mean
that the alert would need a trailing whitespace in order to be rendered
and it would look like `NOTE: `.
With that change, the regex is more permissive and allows the whitespace
to be absent.
Since now we can render alerts with only the icon present, an alternate
title was also added for accessibility issues.
|
|
Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/214164
We don't want to create symlinks to images located in assets. Only
images from /ee/ directory should be replaced by symlinks.
|
|
Contributes to gitlab#214164
Follow-up for:
https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/1336
Previous attempt to fix the link lead to the generation of the
incorrect path.
(see
https://gitlab.com/gitlab-org/build/omnibus-gitlab-mirror/-/jobs/863910246#L4261)
This commit fixes the path generation logic.
|
|
|
|
|
|
Also fixed Rubocop warning and improves code
|
|
Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/214164
It should fix the problem with double symlinks to images during
omnibus building process.
|
|
|
|
Contributes to https://gitlab.com/gitlab-org/gitlab-docs/-/issues/879
Replacing images with their symlinks allows to save disk space.
|
|
Do not render inactive navigation sidebar sections
See merge request gitlab-org/gitlab-docs!1291
|
|
Fix two Rubocop errors
See merge request gitlab-org/gitlab-docs!1323
|
|
Extract Navigation class to manage layout variables
See merge request gitlab-org/gitlab-docs!1290
|
|
|
|
Contributes to https://gitlab.com/gitlab-org/gitlab-docs/-/issues/879
It saves up to 50% of the compiled files size
|
|
|
|
Fix even more Rubocop problems
See merge request gitlab-org/gitlab-docs!1308
|