diff --git a/lib/puppetx/yardoc/yard/templates/default/hostclass/html/parameter_details.erb b/lib/puppetx/yardoc/yard/templates/default/hostclass/html/parameter_details.erb new file mode 100644 index 0000000..5daaa2b --- /dev/null +++ b/lib/puppetx/yardoc/yard/templates/default/hostclass/html/parameter_details.erb @@ -0,0 +1,18 @@ +

Parameter Summary(collapse)

+ diff --git a/lib/puppetx/yardoc/yard/templates/default/hostclass/setup.rb b/lib/puppetx/yardoc/yard/templates/default/hostclass/setup.rb index 5e7ccd1..959a4f3 100644 --- a/lib/puppetx/yardoc/yard/templates/default/hostclass/setup.rb +++ b/lib/puppetx/yardoc/yard/templates/default/hostclass/setup.rb @@ -1,7 +1,12 @@ include T('default/module') def init - sections :header, :box_info, :pre_docstring, T('docstring'), :subclasses + sections :header, :box_info, :pre_docstring, T('docstring'), :parameter_details, :subclasses +end + +def parameter_details + return if object.parameters.empty? + erb(:parameter_details) end def subclasses