##// END OF EJS Templates
use GenericNodeVisitor, removed redundant code
use GenericNodeVisitor, removed redundant code

File last commit:

r6277:b9bc57c0
r6283:c33c3622
Show More
rst2ipynb.py
21 lines | 756 B | text/x-python | PythonLexer
"""
A minimal front end to the Docutils Publisher, producing an ipython notebook.
"""
import docutils.readers.standalone
import docutils.parsers.rst
import docutils.core
import docutils.io
import rst2ipynblib
from docutils.core import publish_cmdline
description = ('Generates an ipython notebooks from standalone '
'reStructuredText sources. ' +
docutils.core.default_description)
publish_cmdline(reader=docutils.readers.standalone.Reader(),
parser=docutils.parsers.rst.Parser(),
writer=rst2ipynblib.Writer(),
enable_exit_status=1,
usage=docutils.core.default_usage,
description=description)