From a478ed2b5beadd1124c375ced21a9343dc6c591a Mon Sep 17 00:00:00 2001 From: luke Date: Mon, 23 Apr 2007 06:16:10 +0000 Subject: Translating all of the docs except the type docs to RST git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2406 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/parser/functions.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/puppet/parser') diff --git a/lib/puppet/parser/functions.rb b/lib/puppet/parser/functions.rb index 21de7b6c0..c3208c4c9 100644 --- a/lib/puppet/parser/functions.rb +++ b/lib/puppet/parser/functions.rb @@ -75,13 +75,15 @@ module Functions ret = "" @functions.sort { |a,b| a[0].to_s <=> b[0].to_s }.each do |name, hash| - ret += "* **%s** (*%s*)" % [name, hash[:type]] + #ret += "%s\n%s\n" % [name, hash[:type]] + ret += "%s\n%s\n" % [name, "-" * name.to_s.length] if hash[:doc] - ret += ": " + hash[:doc].gsub(/\n\s*/, ' ') + ret += hash[:doc].gsub(/\n\s*/, ' ') else - ret += ": ``undocumented``" + ret += "Undocumented.\n" end - ret += "\n\n" + + ret += "\n\n- **Type**: %s\n\n" % hash[:type] end return ret -- cgit