Generate a framework of reStructuredText pages for a DTD documentation.
-
Creates one page per XML tag, named after the tag. Each page has a framework for documentation:
-
A first-level heading, containing the tag name.
-
A box containing the basic information:
- Purpose (to be filled in manually).
- A list of attributes (chapter links).
- A list of contained elements (page links).
-
A second-level chapter for each attribute.
-
Information about each attribute (to be completed manually).
-
-
Creates an index page with all tags.
- Python v3.6+
- The lxml package
Save the file dtd2rst.py.
dtd2rst.py <DTD path>
Published under the MIT License