The following article will introduce you to the composition of Docutils In the Python Docutils tool set, including how Docutils is implemented in Python. And Docutils tool set related code introduction, the following is the relevant content of the article.
Composition of Python Docutils
A Software Package (docutils) contains many useful gadgets. In the tools directory, for example, rst2html. py, reStructuredText can be converted into HTML pages. For more information about how to implement Docutils, see PEP 258. Docutils is implemented in Python.
Docutils Version Policy
Our version release policy is "Release the version as soon as possible". We have automatically generated version snapshots that usually contain the latest code. As the project matures, we will prepare a formal version control plan, but so far there has been no relevant action.
Docutils tool set
- buildhtml.py
You can use buildhtml.pyto convert all. txt files under the Directory into. html files. This operation will also contain subdirectories under it. How to Use the Python Docutils tool set:
- buildhtml.py [options] [<directory> ...]
- rst2html.py
You can use rst2html. py to convert a single reStructuredText file to an HTML file. This file is applicable to popular browsers and supports CSS.
- rst2html.py test.txt test.html
- rstpep2html.py
You can use rstpep2html. py to convert a new PEP written in reStructuredText format to HTML.
- rstpep2html.py pep-0287.txt pep-0287.html
- rst2s5.py
You can use rst2s5. py to convert a separate reStructuredText file to a (X) HTML file conforming to the S5 specifications.
- rst2s5.py slides.txt slides.html
- rst2latex.py
You can use rst2latex. py to convert a separate reStructuredText file to LaTeX2e.
- rst2latex.py test.txt test.tex
- rst2xml.py
You can use rst2xml. py to convert a separate reStructuredText file to an XML file. This is a standard XML file. The above content is an introduction to the Python Docutils toolset.