summaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-05-01 14:05:05 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-01 14:05:05 -0700
commit61208f0ca367a155ca2e4ab3e0b8070442b62cfa (patch)
treedc70bd0f18f4c5a3ab314a9b68b1fc594724a1c5 /tasks
parent2c2bbca18261413eac6a33f769fc1f5c042b7a3e (diff)
downloadchef-61208f0ca367a155ca2e4ab3e0b8070442b62cfa.tar.gz
Skip syntax_shortcode entirely unless we're in a log resource
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'tasks')
-rwxr-xr-xtasks/docs.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/tasks/docs.rb b/tasks/docs.rb
index 60e646afe9..a14f118f86 100755
--- a/tasks/docs.rb
+++ b/tasks/docs.rb
@@ -255,10 +255,7 @@ namespace :docs_site do
properties["ruby_style_basics_chef_log"] = name == "log"
- properties["syntax_shortcode"] =
- if name == "log"
- "resource_log_syntax.md"
- end
+ properties["syntax_shortcode"] = "resource_log_syntax.md" if name == "log"
properties["template_requirements"] = name == "template"