Improve documentation generation

This commit is contained in:
Vincent Jacques
2012-02-26 13:29:39 +00:00
parent 0719ff429f
commit f71bf13461
4 changed files with 133 additions and 70 deletions
+1
View File
@@ -107,6 +107,7 @@ def GithubObject( className, *attributePolicies ):
def _autoDocument( cls ):
doc = "Class `" + cls.__name__ + "`\n"
doc += "=" * ( len( cls.__name__ ) + 8 ) + "\n"
doc += "* Attributes: see [API]()\n"
for attributePolicy in cls.__attributePolicies:
doc += attributePolicy.autoDocument()
doc += "\n"