diff options
author | Marcel Amirault <4155490-marcel.amirault@users.noreply.gitlab.com> | 2021-06-29 18:48:33 +0300 |
---|---|---|
committer | Suzanne Selhorn <sselhorn@gitlab.com> | 2021-06-29 18:48:33 +0300 |
commit | 9a6a1ff8324baabfdf62e11c453455d6870f8db5 (patch) | |
tree | 431f07e4aa759f9de2755bf31b60d9a2043fe7b0 | |
parent | 74f89d734bf86436438c33451f6eedb591e4b39d (diff) |
Add deployed to the version note filter
-rw-r--r-- | lib/filters/introduced_in.rb | 8 |
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) |