summaryrefslogtreecommitdiff
path: root/tasks/docs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/docs.rb')
-rwxr-xr-xtasks/docs.rb22
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