diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-11-09 21:24:44 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-11-09 21:24:44 +0000 |
| commit | 114cd8ac4191eab4ee0c59a19e8a3e6b4dddc3d3 (patch) | |
| tree | 4e5f0755c7d5b5358912f442418580d25d17f866 /documentation/Rakefile | |
| parent | b14982a1354f477ee30ab44d340ea1e47e902257 (diff) | |
More doc updates -- I moved the doc headers into separate files, rather than having them in the code
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1845 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'documentation/Rakefile')
| -rw-r--r-- | documentation/Rakefile | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/documentation/Rakefile b/documentation/Rakefile index 3da422e6d..640a7cf5d 100644 --- a/documentation/Rakefile +++ b/documentation/Rakefile @@ -36,7 +36,22 @@ docs = %w{configref typedocs reports functions} docs.each do |doc| task doc do - sh %{puppetdoc --mode %s > documentation/reference/%s.page} % [doc, doc] + docs = %x{puppetdoc --mode #{doc}} + + header = "documentation/reference/%s.header" % doc + if FileTest.exists?(header) + headertext = File.read(header) + else + headertext = "" + end + + file = "documentation/reference/%s.page" % doc + + puts "Creating %s" % file + File.open(file, "w") do |f| + f.puts headertext + f.puts docs + end end end |
