Browse files

Allow generating of docs for a single module.

  • Loading branch information...
1 parent 63d2eb5 commit 263b7100d1bc2d37303f57558441ca1c35048a04 @anandology anandology committed Jan 30, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 tools/makedoc.py
View
7 tools/makedoc.py
@@ -8,7 +8,7 @@
import markdown
sys.path.insert(0, '..')
-modules = [
+ALL_MODULES = [
'web.application',
'web.contrib.template',
'web.db',
@@ -153,7 +153,8 @@ def recurse_over(ob, name, indent_level=0):
recurse_over(getattr(ob, name), name, indent_level + 1)
if indent_level > 0: print indent_end
-def main():
+def main(modules=None):
+ modules = modules or ALL_MODULES
print '<div>' #Stops markdown vandalising my html.
print css
print header
@@ -167,4 +168,4 @@ def main():
print '</div>'
if __name__ == '__main__':
- main()
+ main(sys.argv[1:])

0 comments on commit 263b710

Please sign in to comment.