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
diff options
context:
space:
mode:
authorMarcel Amirault <4155490-marcel.amirault@users.noreply.gitlab.com>2021-06-29 18:48:33 +0300
committerSuzanne Selhorn <sselhorn@gitlab.com>2021-06-29 18:48:33 +0300
commit9a6a1ff8324baabfdf62e11c453455d6870f8db5 (patch)
tree431f07e4aa759f9de2755bf31b60d9a2043fe7b0 /lib
parent74f89d734bf86436438c33451f6eedb591e4b39d (diff)
Add deployed to the version note filter
Diffstat (limited to 'lib')
-rw-r--r--lib/filters/introduced_in.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/filters/introduced_in.rb b/lib/filters/introduced_in.rb
index a66339cd..00896010 100644
--- a/lib/filters/introduced_in.rb
+++ b/lib/filters/introduced_in.rb
@@ -10,12 +10,14 @@ class IntroducedInFilter < Nanoc::Filter
doc.css('blockquote').each do |blockquote|
content = blockquote.inner_html
# Searches for a blockquote with either:
- # - "introduced <optional text> in"
- # - "removed <optional text> in"
# - "deprecated <optional text> in"
+ # - "introduced <optional text> in"
# - "moved <optional text> to"
+ # - "recommended <optional text> in"
+ # - "removed <optional text> in"
+ # - "renamed <optional text> in"
# ...followed by "GitLab"
- next if content !~ /(<a href="[^"]+">)?(introduced|(re)?moved|deprecated|renamed)(<\/a>)?(.*)? (in|to).*GitLab/mi
+ next if content !~ /(<a href="[^"]+">)?(introduced|(re)?moved|deprecated|renamed|recommended)(<\/a>)?(.*)? (in|to).*GitLab/mi
new_content = generate(content)
blockquote.replace(new_content)