Skip to content

Commit

Permalink
Allow generating of docs for a single module.
Browse files Browse the repository at this point in the history
  • Loading branch information
anandology committed Jan 30, 2012
1 parent 63d2eb5 commit 263b710
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/makedoc.py
Expand Up @@ -8,7 +8,7 @@
import markdown import markdown
sys.path.insert(0, '..') sys.path.insert(0, '..')


modules = [ ALL_MODULES = [
'web.application', 'web.application',
'web.contrib.template', 'web.contrib.template',
'web.db', 'web.db',
Expand Down Expand Up @@ -153,7 +153,8 @@ def recurse_over(ob, name, indent_level=0):
recurse_over(getattr(ob, name), name, indent_level + 1) recurse_over(getattr(ob, name), name, indent_level + 1)
if indent_level > 0: print indent_end 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 '<div>' #Stops markdown vandalising my html.
print css print css
print header print header
Expand All @@ -167,4 +168,4 @@ def main():
print '</div>' print '</div>'


if __name__ == '__main__': if __name__ == '__main__':
main() main(sys.argv[1:])

0 comments on commit 263b710

Please sign in to comment.