Skip to content

Commit

Permalink
Make generation comment a HTML comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jaingaurav committed Dec 12, 2015
1 parent 4b87b1f commit 84f3b72
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions build_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ def getHandlers(path):

enabled = ''

docFile.write("<!--")
docFile.write("This file was generated from the python source\n")
docFile.write("Please edit the source to make changes\n")
docFile.write("-->\n")

docFile.write("%s\n" % (collector))
docFile.write("=====\n")
if collectors[collector].__doc__ is None:
Expand Down Expand Up @@ -217,9 +222,6 @@ def getHandlers(path):
docFile.write("__EXAMPLESHERE__\n")
docFile.write("```\n")
docFile.write("\n")
docFile.write("### This file was generated from the python source\n")
docFile.write("### Please edit the source to make changes\n")
docFile.write("\n")

docFile.close()

Expand Down Expand Up @@ -266,6 +268,11 @@ def getHandlers(path):
docFile = open(os.path.join(handlers_doc_path,
handler + ".md"), 'w')

docFile.write("<!--")
docFile.write("This file was generated from the python source\n")
docFile.write("Please edit the source to make changes\n")
docFile.write("-->\n")

docFile.write("%s\n" % (handler))
docFile.write("====\n")
docFile.write("%s" % (handlers[handler].__doc__))
Expand Down Expand Up @@ -306,9 +313,4 @@ def getHandlers(path):

docFile.write("</table>\n")

docFile.write("\n")
docFile.write("### This file was generated from the python source\n")
docFile.write("### Please edit the source to make changes\n")
docFile.write("\n")

docFile.close()

0 comments on commit 84f3b72

Please sign in to comment.