summaryrefslogtreecommitdiffstats
path: root/bin/puppetdoc
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-06-17 02:04:50 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-06-17 02:04:50 +0000
commite891ffb0280bb13411d4614d9ae4be3522d291cc (patch)
tree7de7bf80133437730e92e5a4322a1a0b8304102c /bin/puppetdoc
parent90e8ad811495ecf8fd3f3d4572dff3644ce1dfe7 (diff)
downloadpuppet-e891ffb0280bb13411d4614d9ae4be3522d291cc.tar.gz
puppet-e891ffb0280bb13411d4614d9ae4be3522d291cc.tar.xz
puppet-e891ffb0280bb13411d4614d9ae4be3522d291cc.zip
updating some docs and puppetdoc in preparation for a move to webgen instead of plone
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1295 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'bin/puppetdoc')
-rwxr-xr-xbin/puppetdoc32
1 files changed, 15 insertions, 17 deletions
diff --git a/bin/puppetdoc b/bin/puppetdoc
index 314d4078b..ac162f27e 100755
--- a/bin/puppetdoc
+++ b/bin/puppetdoc
@@ -118,10 +118,11 @@ end
# Print the docs for arguments
def self.arguments
- puts %{
-===========================
-Puppet Executable Reference
-===========================
+ puts %{---
+inMenu: true
+title: Executable Reference
+---
+# Puppet Executable Reference
Every Puppet executable (with the exception of ``puppetdoc``) accepts all of
these arguments, but not all of the arguments make sense for every executable.
@@ -159,10 +160,12 @@ end
# Print the docs for types
def self.types
- puts %{
-==============
-Type Reference
-==============
+ puts %{---
+inMenu: true
+title: Type Reference
+---
+# Type Reference
+
}
@@ -171,9 +174,7 @@ Type Reference
types[type.name] = type
}
puts %{
----------------
-Meta-Parameters
----------------
+## Meta-Parameters
Metaparameters are parameters that work with any element; they are part of the
Puppet framework itself rather than being part of the implementation of any
@@ -201,9 +202,7 @@ in your manifest, including defined components.
end
puts %{
------
-Types
------
+## Types
- *namevar* is the parameter used to uniquely identify a type instance.
This is the parameter that gets assigned when a string is provided before
@@ -242,8 +241,7 @@ Types
"
puts "
-%s
-%s" % [name, "=" * (name.to_s.length + 4)]
+## %s" % name
#String.new('n%s\n') % name.to_s
#puts "**" + type.doc.gsub(/\n\s*/, ' ') + "**\n\n"
puts scrub(type.doc) + "\n\n"
@@ -294,7 +292,7 @@ Types
#puts tab(1) + state.doc.gsub(/\n\s*/,' ')
}
- puts "\n%s Parameters\n''''''''''''''''''''''''''''''" % name.to_s.capitalize
+ puts "\n### %s Parameters\n" % name.to_s.capitalize
type.parameters.sort { |a,b|
a.to_s <=> b.to_s
}.each { |name,param|