Add docs target to Rakefile

This commit is contained in:
Kienan Stewart 2018-06-19 17:48:20 -04:00
parent 55b530f564
commit 467080d8f1
1 changed files with 7 additions and 0 deletions

View File

@ -21,3 +21,10 @@ begin
end
end
task :test => defaults
task :docs do
require 'puppet-strings'
# Remove TOC, as YARD generates its own
sh "sed -i '/# aegir/,/## Description/{//!d}' README.md"
PuppetStrings.generate(PuppetStrings::DEFAULT_SEARCH_PATTERNS, { :yard_args => ['--output-dir=public'] })
end