diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-04-29 11:47:08 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-04-29 11:47:08 -0700 |
commit | b400aeb6714e9ce9f58e031e81af752638b792f9 (patch) | |
tree | 721e8c98d9450058fd2aaec285419e7ad9a4c370 /tasks | |
parent | 1c83180331980ba1b5fcfc15f3af1b6d890016bf (diff) | |
download | chef-b400aeb6714e9ce9f58e031e81af752638b792f9.tar.gz |
Remove some property deprecation logic from the generator
We nuke these out of the list early on now
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'tasks')
-rwxr-xr-x | tasks/docs.rb | 22 |
1 files 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 |