(maint) display Plans in markdown table of contents

Currently, Plans are not being included in the table of contents in the
markdown output. This is because Plans were not being passed to the
table of contents renderer. This adds Plans to the renderer and updates
tests accordingly.
This commit is contained in:
Eric Putnam 2018-04-03 13:37:47 +01:00
parent a4e915002b
commit d4ca490d1b
No known key found for this signature in database
GPG Key ID: 3FB595AA224A7751
3 changed files with 7 additions and 2 deletions

View File

@ -27,7 +27,7 @@ module PuppetStrings::Markdown
def self.toc_info
final = ["Plans"]
in_classes.each do |plan|
in_plans.each do |plan|
final.push(plan.toc_info)
end

View File

@ -7,7 +7,8 @@ module PuppetStrings::Markdown
PuppetStrings::Markdown::DefinedTypes,
PuppetStrings::Markdown::ResourceTypes,
PuppetStrings::Markdown::Functions,
PuppetStrings::Markdown::PuppetTasks].each do |r|
PuppetStrings::Markdown::PuppetTasks,
PuppetStrings::Markdown::PuppetPlans].each do |r|
toc = r.toc_info
group_name = toc.shift
group = toc

View File

@ -30,6 +30,10 @@
* [`(stdin)`](#(stdin)): Allows you to backup your database to local file.
## Plans
* [`plann`](#plann): A simple plan.
## Classes
### klass