Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2021-04-06Rename global navigation YAML fileAchilleas Pipinellis
Now that we only have one file, let's rename `default-nav.yaml` to `navigation.yaml`.
2021-04-06Unify global navigation for docs siteEvan Read
2021-03-24Feat: Update left navigation to allow more levelsDavid O'Regan
2021-03-05introduced_in.rb accepts "deprecated" / "removed"Marcin Sedlak-Jakubowski
2021-02-22Avoid build warningEvan Read
2021-01-27Add new tiers supportAchilleas Pipinellis
Based off https://gitlab.com/gitlab-org/technical-writing/-/issues/348
2021-01-22Fix minor Rubocop style issuesEvan Read
2021-01-19Add noidex tag for stable branchesAchilleas Pipinellis
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.
2021-01-18Hide survey banner on stable branchesAchilleas Pipinellis
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.
2021-01-13Merge branch 'helper-prod-default-branch' into 'master'Marcel Amirault
Add helper for production and default branch See merge request gitlab-org/gitlab-docs!1422
2021-01-13Add helper for production and default branchAchilleas Pipinellis
This ought to be used when we don't want to deploy things in the stable branches, since they are considered production.
2021-01-12Remove previous versions from dropdown for omnibus packagesVasilii Iakliushin
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
2021-01-04Drop unused alertsAchilleas Pipinellis
Since we now only support two alerts, NOTE and WARNING, drop the rest of them. For https://gitlab.com/groups/gitlab-org/-/epics/5021
2020-12-22Fix several minor Rubocop issuesEvan Read
2020-12-17Rename is_omnibus? function for Rubocop ruleEvan Read
2020-12-04Add option to use WARNING in alertsAchilleas Pipinellis
This is a drop-in replacement of CAUTION, and they can be used interchangeably.
2020-12-03Convert product tier badges to GitLab SVGsEvan Read
Also updates tests and CI configuration to support tests.
2020-12-02Merge branch 'fix_symlink_converter_scope' into 'master'Achilleas Pipinellis
Limit symlink converter scope See merge request gitlab-org/gitlab-docs!1372
2020-12-02Allow alerts to stand on their ownAchilleas Pipinellis
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.
2020-12-02Limit symlink converter scopeVasilii Iakliushin
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.
2020-12-01Fix the building path for image symlinksVasilii Iakliushin
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.
2020-11-30Fix a Rubocop predicate name problemEvan Read
2020-11-26Fix Rubocop issues in icons codeEvan Read
2020-11-24Use GitLab SVGs for admonition iconsEvan Read
Also fixed Rubocop warning and improves code
2020-11-20Resolve image realpath before creating a symlinkVasilii Iakliushin
Contributes to https://gitlab.com/gitlab-org/gitlab/-/issues/214164 It should fix the problem with double symlinks to images during omnibus building process.
2020-11-18Fix more Rubocop issuesEvan Read
2020-11-17Replace images with their symlinksVasilii Iakliushin
Contributes to https://gitlab.com/gitlab-org/gitlab-docs/-/issues/879 Replacing images with their symlinks allows to save disk space.
2020-11-17Merge branch '879_disable_inactive_sections' into 'master'Vasilii Iakliushin
Do not render inactive navigation sidebar sections See merge request gitlab-org/gitlab-docs!1291
2020-11-17Merge branch 'eread/fix-two-rubocop-errors' into 'master'Achilleas Pipinellis
Fix two Rubocop errors See merge request gitlab-org/gitlab-docs!1323
2020-11-17Merge branch '879_refactor_global_navigation' into 'master'Vasilii Iakliushin
Extract Navigation class to manage layout variables See merge request gitlab-org/gitlab-docs!1290
2020-11-17Fix two Rubocop errorsEvan Read
2020-11-16Do not render inactive navigation sidebar sectionsVasilii Iakliushin
Contributes to https://gitlab.com/gitlab-org/gitlab-docs/-/issues/879 It saves up to 50% of the compiled files size
2020-11-16Cover Navigation classes with testsVasilii Iakliushin
2020-11-16Merge branch 'eread/fix-even-more-rubocop-problems' into 'master'Achilleas Pipinellis
Fix even more Rubocop problems See merge request gitlab-org/gitlab-docs!1308
2020-11-13Include svg icons from external fileVasilii Iakliushin
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.
2020-11-13Fix even more Rubocop problemsEvan Read
2020-11-12Fix more Rubocop problemsEvan Read
2020-11-06Extract Navigation class to manage layout variablesVasilii Iakliushin
Contributes to https://gitlab.com/gitlab-org/gitlab-docs/-/issues/879
2020-10-26Use the default branch instead of masterTakuya Noguchi
2020-10-21Encode Mermaid HTML to htmlsafe valuesCatalin Irimie
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.
2020-09-07Add spacing between version history and immediately following alertJean du Plessis
2020-09-07Remove product suffix exception from internal_links checkerVasilii Iakliushin
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
2020-08-19Remove suffix from anchors during `internal_anchors` checkVasilii Iakliushin
2020-08-19Remove product suffixes from generated anchorsVasilii Iakliushin
Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/218764 * Update id of headers with product suffixes * Update href of links with product suffixes
2020-07-22Tweak version formatter to include more casesMarcin Sedlak-Jakubowski
2020-07-10Allow anchor check to find mixed-case anchorsEvan Read
2020-06-11Add a newline to gitlab kramdown warningsMarcel Amirault
2020-05-22Check if a local branch exists and abort the task if trueAchilleas Pipinellis
2020-05-20Check charts versions and replace branch variablesAchilleas Pipinellis
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.
2020-05-19Extract check of production in its own functionAchilleas Pipinellis