(PDOC-238) add generated message to markdown
Currently there is no evidence in REFERENCE.md itself that it was generated and should not be edited. This adds a comment in the markdown, so as not to disrupt its rendered appearance but still communicate to the user when editing that the file is generated.
This commit is contained in:
parent
2ec1b24051
commit
2d59213b34
|
@ -13,7 +13,8 @@ module PuppetStrings::Markdown
|
||||||
# generates markdown documentation
|
# generates markdown documentation
|
||||||
# @return [String] markdown doc
|
# @return [String] markdown doc
|
||||||
def self.generate
|
def self.generate
|
||||||
final = "# Reference\n\n"
|
final = "# Reference\n"
|
||||||
|
final << "<!-- DO NOT EDIT: This document was generated by Puppet Strings -->\n\n"
|
||||||
final << PuppetStrings::Markdown::TableOfContents.render
|
final << PuppetStrings::Markdown::TableOfContents.render
|
||||||
final << PuppetStrings::Markdown::PuppetClasses.render
|
final << PuppetStrings::Markdown::PuppetClasses.render
|
||||||
final << PuppetStrings::Markdown::DefinedTypes.render
|
final << PuppetStrings::Markdown::DefinedTypes.render
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# Reference
|
# Reference
|
||||||
|
<!-- DO NOT EDIT: This document was generated by Puppet Strings -->
|
||||||
|
|
||||||
## Classes
|
## Classes
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# Reference
|
# Reference
|
||||||
|
<!-- DO NOT EDIT: This document was generated by Puppet Strings -->
|
||||||
|
|
||||||
## Classes
|
## Classes
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue