aboutsummaryrefslogtreecommitdiffstats
path: root/doc/generate-libbe-txt.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-06-22 13:37:49 -0400
committerW. Trevor King <wking@drexel.edu>2010-06-22 13:37:49 -0400
commitf72b6c9ed5588a87d5d2c6b28d0ba68a09ac2cea (patch)
tree3d492361a74a7274642bc46ee7fa1ffc89d20926 /doc/generate-libbe-txt.py
parent401152d6eec5167043dedde60c0a64d0affbd120 (diff)
downloadbugseverywhere-f72b6c9ed5588a87d5d2c6b28d0ba68a09ac2cea.tar.gz
Many markup fixes in doc/
Also added subdir option to generate-libbe-txt.make_module_txt(), in the hopes that subdir='.' would fix the missing reference errors, but no luck (although it did reduce them). I'm sticking with subdir='libbe' for now to avoid cluttering doc/ with autogenerated cruft.
Diffstat (limited to 'doc/generate-libbe-txt.py')
-rw-r--r--doc/generate-libbe-txt.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/generate-libbe-txt.py b/doc/generate-libbe-txt.py
index 35eb5c4..77f775a 100644
--- a/doc/generate-libbe-txt.py
+++ b/doc/generate-libbe-txt.py
@@ -34,10 +34,10 @@ def toctree(children):
' %s.txt' % c for c in sorted(children)
] + ['', ''])
-def make_module_txt(modname, children):
- filename = os.path.join('libbe', '%s.txt' % modname)
- if not os.path.exists('libbe'):
- os.mkdir('libbe')
+def make_module_txt(modname, children, subdir='libbe'):
+ filename = os.path.join(subdir, '%s.txt' % modname)
+ if not os.path.exists(subdir):
+ os.mkdir(subdir)
if os.path.exists(filename):
return None # don't overwrite potentially hand-written files.
f = file(filename, 'w')