Merge pull request #171 from eputnam/plans_toc

(maint) display Plans in markdown table of contents
This commit is contained in:
Hunter Haugen 2018-04-04 14:55:01 -07:00
commit 99c53d1707
No known key found for this signature in database
GPG Key ID: EF99694AA599DDAD
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