diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-04-24 13:10:42 -0700 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-04-27 11:42:17 -0700 |
commit | d9d6b2ebef6becacc0ba1e9467b1c531e7b34849 (patch) | |
tree | 8156d54f352f96044ea0feff10ba97130f88eb0f /tasks | |
parent | 3c9f1144cbcaaf898fff8a3b0fe0c0e7b43875c8 (diff) | |
download | chef-d9d6b2ebef6becacc0ba1e9467b1c531e7b34849.tar.gz |
Don't add the weight to the yaml anymore
It turns out if you don't add this they're just alphabetical which is what we were trying to do anyways.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'tasks')
-rwxr-xr-x | tasks/docs.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/tasks/docs.rb b/tasks/docs.rb index c7c512996f..c4d6d5a07a 100755 --- a/tasks/docs.rb +++ b/tasks/docs.rb @@ -139,7 +139,6 @@ namespace :docs_site do "title" => name, "identifier" => "chef_infra/cookbook_reference/resources/#{name} #{name}", "parent" => "chef_infra/cookbook_reference/resources", - "weight" => @weight, }, } end @@ -293,12 +292,6 @@ namespace :docs_site do FileUtils.mkdir_p "docs_site" resources = Chef::JSONCompat.parse(ResourceInspector.inspect) - # sort the hash so we can generate the menu weights later - resources = Hash[resources.sort] - - # weight is used to build the menu order. We start at 70 and increment by 10 each time - @weight = 70 - resources.each do |resource, data| # skip some resources we don't directly document next if ["whyrun_safe_ruby_block", "l_w_r_p_base", "user_resource_abstract_base_class", "linux_user", "pw_user", "aix_user", "dscl_user", "solaris_user", "windows_user", "mac_user", ""].include?(resource) @@ -319,8 +312,6 @@ namespace :docs_site do FileUtils.mkdir_p "docs_site/#{resource}" File.open("docs_site/#{resource}/_index.md", "w") { |f| f.write(resource_data.to_yaml) } end - - @weight += 10 end end end |