Skip to content

Commit

Permalink
CHEF-5468 Correct heading level in output docs yaml files (#962)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Maddaus <[email protected]>
  • Loading branch information
IanMadd authored Aug 25, 2023
1 parent 39c45fd commit 2971520
Show file tree
Hide file tree
Showing 497 changed files with 853 additions and 853 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ autocorrection: true
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
template '/etc/foo' do
Expand All @@ -19,7 +19,7 @@ examples: |2-
end
```
#### correct
### correct
```ruby
template '/etc/foo' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ autocorrection: true
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
Chef::Application.fatal!('Something horrible happened!')
```
#### correct
### correct
```ruby
raise "Something horrible happened!"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ autocorrection: true
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
cookbook_file '/logs/foo/error.log' do
Expand All @@ -23,7 +23,7 @@ examples: |2-
end
```
#### correct
### correct
```ruby
cookbook_file '/logs/foo/error.log' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ autocorrection: false
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
node.save
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ autocorrection: true
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
dnf_package 'nginx' do
Expand All @@ -16,7 +16,7 @@ examples: |2-
end
```
#### correct
### correct
```ruby
dnf_package 'nginx' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ autocorrection: true
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
::Chef::Recipe.send(:include, Filebeat::Helpers)
Expand All @@ -17,7 +17,7 @@ examples: |2-
::Chef::Provider.include Filebeat::Helpers
```
#### correct
### correct
```ruby
::Chef::DSL::Recipe.send(:include, Filebeat::Helpers) # covers previous Recipe & Provider classes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ autocorrection: false
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
name 'foo.bar'
```
#### correct
### correct
```ruby
name 'foo_bar'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ autocorrection: false
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
default_action 'create'
```
#### correct
### correct
```ruby
default_action :create
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ autocorrection: false
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
Expand All @@ -21,7 +21,7 @@ examples: |2-
end
```
#### correct
### correct
```ruby
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ autocorrection: false
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
Expand All @@ -17,7 +17,7 @@ examples: |2-
end
```
#### correct
### correct
```ruby
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ autocorrection: true
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
platform_family?('redhat')
platform_family?('sles')
#### incorrect
### incorrect
```ruby
platform_family?('rhel')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ autocorrection: true
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
case node['platform_family']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ autocorrection: false
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
platform?('darwin')
platform?('rhel')
platform?('sles')
```
#### correct
### correct
```ruby
platform?('mac_os_x')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ autocorrection: true
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
case node['platform']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ autocorrection: true
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
supports 'darwin'
supports 'mswin'
```
#### correct
### correct
```ruby
supports 'mac_os_x'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ autocorrection: false
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
value_for_platform_family(
Expand All @@ -18,7 +18,7 @@ examples: |2-
)
```
#### correct
### correct
```ruby
value_for_platform_family(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ autocorrection: false
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
value_for_platform(
%w(rhel mac_os_x_server) => { 'default' => 'foo' },
%w(sles) => { 'default' => 'bar' }
)```
#### correct
### correct
```ruby
value_for_platform(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ autocorrection: false
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
version '1.2.3.4'
```
#### correct
### correct
```ruby
version '1.2.3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ autocorrection: true
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
property :Something, String, default: node['hostname']
```
#### correct
### correct
```ruby
property :Something, String, default: lazy { node['hostname'] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ autocorrection: true
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
template '/etc/foo' do
Expand All @@ -18,7 +18,7 @@ examples: |2-
end
```
#### correct
### correct
```ruby
template '/etc/foo' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ autocorrection: true
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
macos_userdefaults 'set a value' do
Expand All @@ -19,7 +19,7 @@ examples: |2-
end
```
#### correct
### correct
```ruby
macos_userdefaults 'set a value' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ autocorrection: false
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
value_for_platform(
%w(redhat oracle) => 'baz'
)
```
#### correct
### correct
```ruby
value_for_platform(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ autocorrection: true
target_chef_version: All Versions
examples: |2-
#### incorrect
### incorrect
```ruby
depends 'some_awesome_cookbook' '= 4.5.5'
depends 'some_other_cool_cookbook' '< 8.0'
```
#### correct
### correct
```ruby
depends 'some_awesome_cookbook', '= 4.5.5'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ target_chef_version: All Versions
examples: |-
```
#### correct
### correct
```ruby
name 'foo'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ target_chef_version: All Versions
examples: |-
```
#### correct
### correct
```ruby
name 'foo'
Expand Down
Loading

0 comments on commit 2971520

Please sign in to comment.