Merge pull request #171 from eputnam/plans_toc
(maint) display Plans in markdown table of contents
This commit is contained in:
commit
99c53d1707
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -30,6 +30,10 @@
|
|||
|
||||
* [`(stdin)`](#(stdin)): Allows you to backup your database to local file.
|
||||
|
||||
## Plans
|
||||
|
||||
* [`plann`](#plann): A simple plan.
|
||||
|
||||
## Classes
|
||||
|
||||
### klass
|
||||
|
|
Loading…
Reference in New Issue