From 467080d8f16a5d884161ad918f672fd0206476b6 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Tue, 19 Jun 2018 17:48:20 -0400 Subject: [PATCH] Add docs target to Rakefile --- Rakefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Rakefile b/Rakefile index 0a0f259..2bec1b8 100644 --- a/Rakefile +++ b/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