-
Book Overview & Buying
-
Table Of Contents
Mastering IPython 4.0
By :
Docutils is a suite of utilities for transforming text files that contain reStructuredText into other formats, including HTML, XML, and LaTeX. It is meant to bridge the gap between what users want to read (aesthetically pleasant formats) and what programmers can easily type (plain text). Docutils falls into two broad categories: libraries (to do behind-the scenes parsing and manipulation) and frontend tools (which use libraries to produce a particular output format).
Docutils can be installed using pip:
pip install docutils
This will install a number of scripts, including the important transformation scripts. The author's installation is included:
rst2html.py
rst2latex.py
rst2man.py
rst2odt_prepstyles.py
rst2odt.py
rst2pseudoxml.py
rst2s5.py
rst2xetex.py
rst2xml.py
rstpep2html.py
These scripts can be used from the command line. They expect an input from stdin and produce the output in stdout:
./rst2html.py <infile> > <outfile>
Unfortunately...