You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(PDOC-226) Add Puppet Data Type Alias documentation
Previously Puppet-Strings could not document Data Type Aliases. This commit:
* Updates the puppet parser to interpret TypeAlias statements.
* Adds a DataTypeAlias code object and handler to document the Type Alias
statement correctly.
* Adds tests for puppet parsing to ensure the Yard Code Object is populated
correctly
* Adds support for JSON, Markdown and HTML rendering. Note that JSON separates
Data Types from Data Type Aliases whereas Markdown and HTML rendering lump
them together. This is because from a human documentation point of view (i.e
Mardown or HTML) they are very similar things. Much like Puppet V3 vs V4
functions. However the JSON output can be used by other systems so it is
important to diffentiate them as they are different from a code inspection
point of view.
* Adds tests for JSON and Markdown rendering
log.warn"Missing documentation for Puppet type alias '#{object.name}' at #{statement.file}:#{statement.line}."ifobject.docstring.empty? && object.tags.empty?
17
+
18
+
# Mark the class as public if it doesn't already have an api tag
0 commit comments