sanitize titles - experimental tag

pull/2375/head
Gergely Gombos 2 months ago
parent 42ec919cd8
commit 30ddc7bbaf

@ -2,7 +2,9 @@ module Docs
class React class React
class EntriesReactDevFilter < Docs::EntriesFilter class EntriesReactDevFilter < Docs::EntriesFilter
def get_name def get_name
at_css('article h1').content canary_copy = '- This feature is available in the latest Canary'
name = at_css('article h1').content
return name.sub(canary_copy, ' (experimental)')
end end
def get_type def get_type

Loading…
Cancel
Save