summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-05-01 22:24:56 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-01 22:24:56 -0700
commitacadeb98d481a8ba298813a316b6d8168343ee27 (patch)
tree094eddfad13f4267cff6abdff75afe69770cf175
parentfd49902fa0739fd30e3f942c2c2124e05a92bd2f (diff)
downloadchef-acadeb98d481a8ba298813a316b6d8168343ee27.tar.gz
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 <tsmith@chef.io>
-rwxr-xr-xtasks/docs.rb14
1 files changed, 0 insertions, 14 deletions
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?