Commit Graph

4 Commits

Author SHA1 Message Date
Charlie Sharpsteen 71427fad17 Skip function list render if no functions defined
If a module does not define any functions, skip rendering the "Functions"
section in the "Puppet Plugins List".
2014-06-12 22:48:56 -07:00
Charlie Sharpsteen 1b8cc98118 Move parser functions into a PuppetNamespace
Seperate Puppet parser functions out into a PuppetNamespace so they are no
longer listed with the Ruby methods.
2014-06-12 21:21:11 -07:00
Charlie Sharpsteen 32d69848e1 Small fixes to the namespace_list template helper
The `namespace_list` helper is used to filter YARD objects in order to populate
search lists. The code was originally derived from the `class_list` helper.
This patch guards against calling `children` on objects that have no children
and removes a recursive call to the old `class_list` method.
2014-06-12 21:15:50 -07:00
Charlie Sharpsteen 9d99018952 Separate Puppet namespaces from Ruby namespaces
The default YARD template lumps anything that inherits from `NamespaceObject`
into the "Classes" list in HTML output. This patch alters the list generation
logic so that Namespaces parsed from manifests are listed in a separate
"Puppet Manifests" list.
2014-06-02 21:57:07 -07:00