diff options
author | Jason Pellerin <jpellerin@gmail.com> | 2007-05-23 02:35:18 +0000 |
---|---|---|
committer | Jason Pellerin <jpellerin@gmail.com> | 2007-05-23 02:35:18 +0000 |
commit | dc6d12fe7af41113a1134944dd4b894151e8dc73 (patch) | |
tree | 43e5b5611891501a0cfd0efec0c310a411e65276 /scripts | |
parent | c7f5c04c2f2d757e90301c8b76725ec5ee45bcd6 (diff) | |
download | nose-dc6d12fe7af41113a1134944dd4b894151e8dc73.tar.gz |
Fixed mkindex.py script. Started revising index documentation.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mkindex.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/mkindex.py b/scripts/mkindex.py index 24bdba6..dc2fd8c 100755 --- a/scripts/mkindex.py +++ b/scripts/mkindex.py @@ -1,6 +1,8 @@ #!/usr/bin/env python from docutils.core import publish_string, publish_parts +from nose.config import Config +from nose.plugins.manager import BuiltinPluginManager import nose import nose.commands import nose.tools @@ -39,8 +41,9 @@ news_html = publish_parts(news, writer_name='html') docs['news'] = news_html['body'] print "Usage..." -usage_txt = nose.configure(help=True).replace('mkindex.py', 'nosetests') -# FIXME remove example plugin & html output parts +conf = Config(plugins=BuiltinPluginManager()) +usage_txt = conf.help(nose.main.__doc__).replace( + 'mkindex.py', 'nosetests') docs['usage'] = '<pre>%s</pre>' % usage_txt out = tpl % docs |