(PDOC-17) Changed header and remove sub-header
Prior to this commit there was a header and a sub-header for defined types and classes. This was a little redundant so rather than doing that, remove the sub-header and make the main header more readable.
This commit is contained in:
parent
1f2d9a2d8a
commit
e85f58a64e
|
@ -1,4 +1,3 @@
|
||||||
<h3 class="signature first"> Class: <%= @class_details[:name] %></h3>
|
|
||||||
<div class="docstring">
|
<div class="docstring">
|
||||||
<div class="discussion">
|
<div class="discussion">
|
||||||
<p><%= @class_details[:desc] %></p>
|
<p><%= @class_details[:desc] %></p>
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
<div class='module_header'>
|
||||||
|
<h1>
|
||||||
|
<%= @header_text %>
|
||||||
|
</h1>
|
||||||
|
</div>
|
|
@ -17,6 +17,18 @@ def parameter_details
|
||||||
erb(:parameter_details)
|
erb(:parameter_details)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def header
|
||||||
|
if object.type == :hostclass
|
||||||
|
@header_text = "Puppet Class: #{object.name}"
|
||||||
|
elsif object.type == :definedtype
|
||||||
|
@header_text = "Puppet Defined Type: #{object.name}"
|
||||||
|
else
|
||||||
|
@header_text = "#{object.name}"
|
||||||
|
end
|
||||||
|
|
||||||
|
erb(:header)
|
||||||
|
end
|
||||||
|
|
||||||
def docstring
|
def docstring
|
||||||
examples = Hash.new
|
examples = Hash.new
|
||||||
example_tags = object.tags.find_all { |tag| tag.tag_name == "example" }
|
example_tags = object.tags.find_all { |tag| tag.tag_name == "example" }
|
||||||
|
|
Loading…
Reference in New Issue