From b400aeb6714e9ce9f58e031e81af752638b792f9 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Wed, 29 Apr 2020 11:47:08 -0700 Subject: Remove some property deprecation logic from the generator We nuke these out of the list early on now Signed-off-by: Tim Smith --- tasks/docs.rb | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/tasks/docs.rb b/tasks/docs.rb index ae44700232..46119b3664 100755 --- a/tasks/docs.rb +++ b/tasks/docs.rb @@ -157,19 +157,15 @@ namespace :docs_site do # - what to do about "lazy default" for default? def properties_list(properties) properties.map do |property| - if property["deprecated"] # we don't want to document deprecated properties - nil - else - { - "property" => property["name"], - "ruby_type" => friendly_types_list(property["is"]), - "required" => property["required"], - "default_value" => friendly_default_value(property), - # "allowed_values" => property["equal_to"].join(', '), - "new_in" => property["introduced"], - "description_list" => [{ "markdown" => property["description"] }], - } - end + { + "property" => property["name"], + "ruby_type" => friendly_types_list(property["is"]), + "required" => property["required"], + "default_value" => friendly_default_value(property), + # "allowed_values" => property["equal_to"].join(', '), + "new_in" => property["introduced"], + "description_list" => [{ "markdown" => property["description"] }], + } end end -- cgit v1.2.1