summaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-04-29 11:04:20 -0700
committerTim Smith <tsmith84@gmail.com>2020-04-29 11:04:20 -0700
commit5e8a9c5761eb107495bf04d3c9b339e778445f14 (patch)
tree1cf57728cd5e1b4446d7aad07ccd9a479db642ab /tasks
parent6cbd83d58a6eb78aa27c6d31146614ca837a8116 (diff)
downloadchef-5e8a9c5761eb107495bf04d3c9b339e778445f14.tar.gz
Skip documenting the deprecated properties
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'tasks')
-rwxr-xr-xtasks/docs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/docs.rb b/tasks/docs.rb
index e0b38e5a13..ae44700232 100755
--- a/tasks/docs.rb
+++ b/tasks/docs.rb
@@ -261,7 +261,7 @@ namespace :docs_site do
# the main method that builds what will become the yaml file
def build_resource_data(name, data)
- properties = data["properties"].reject { |v| v["name"] == "name" }.sort_by! { |v| v["name"] }
+ properties = data["properties"].reject { |v| v["name"] == "name" || v['deprecated'] }.sort_by! { |v| v["name"] }
r = {}