From 30ddc7bbaf106320090def89f40f952be7733574 Mon Sep 17 00:00:00 2001 From: Gergely Gombos Date: Sun, 1 Dec 2024 20:36:04 +0100 Subject: [PATCH] sanitize titles - experimental tag --- lib/docs/filters/react/entries_react_dev.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/react/entries_react_dev.rb b/lib/docs/filters/react/entries_react_dev.rb index 5807985d..2264985b 100644 --- a/lib/docs/filters/react/entries_react_dev.rb +++ b/lib/docs/filters/react/entries_react_dev.rb @@ -2,7 +2,9 @@ module Docs class React class EntriesReactDevFilter < Docs::EntriesFilter 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 def get_type