From acadeb98d481a8ba298813a316b6d8168343ee27 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Fri, 1 May 2020 22:24:56 -0700 Subject: We don't use the resource name bolding functionality anymore We just bold the text in the description ourselves. It's way more reliable. Signed-off-by: Tim Smith --- tasks/docs.rb | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'tasks') diff --git a/tasks/docs.rb b/tasks/docs.rb index 6eaa418b5f..08fca72bc8 100755 --- a/tasks/docs.rb +++ b/tasks/docs.rb @@ -112,20 +112,6 @@ namespace :docs_site do fixed_arr.compact.join(", ") end - # Makes sure the resource name is bolded within the description - # @return String - def bolded_description(name, description) - return nil if description.nil? # handle resources missing descriptions - - # we only want to bold occurences of the resource name in the first 5 words so treat it as an array - desc_array = description.split(" ") - - desc_array = desc_array[0..4].map! { |x| name == x ? "**#{x}**" : x } + desc_array[5..-1] - - # strip out notes and return just the description - desc_array.join(" ").split("Note: ").first.strip - end - def note_text(description) return nil if description.nil? -- cgit v1.2.1