Age | Commit message (Collapse) | Author |
|
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
|
|
Contributes to https://gitlab.com/gitlab-org/gitlab-docs/-/issues/879
In-lined svg definition increases the size of the generated
documentation file. External file usage removes this overhead.
|
|
|
|
|
|
Contributes to https://gitlab.com/gitlab-org/gitlab-docs/-/issues/879
|
|
|
|
There's an inconsistency with some filters, for example
admonition and introduced_in, that call Nokogiri::HTML#fragment
on the input and write the output, which means code that looks like
tags gets treated as actual HTML tags.
This breaks mermaid diagrams because those tags are not valid and
the Mermaid JS parser trips over them, converting them to the
html-encoded values is what was currently happening for ->> strings
and it's working, so pre-converting all of them gets rid of the problem.
|
|
|
|
Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/218764
Follow-up for: https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/1070
After merging: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/39715
|
|
|
|
Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/218764
* Update id of headers with product suffixes
* Update href of links with product suffixes
|
|
|
|
|
|
|
|
|
|
This is needed for the release:single raketask. It adds one
failsafe in case the charts version is not charts_versions.yaml.
It also replaces the branch variables in .gitlab-ci.yml with the
respective stable ones.
|
|
|