Add docs target to Rakefile
This commit is contained in:
parent
55b530f564
commit
467080d8f1
7
Rakefile
7
Rakefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue