skip to navigation
skip to content

Not Logged In

rst2db 0.9b

A reStructuredText to DocBook converter using Python's docutils.

Latest Version: 1.0

A reStructuredText to DocBook converter using Python’s docutils.

rst2db.py will convert simple reStructuredText markup to DocBook. Not all tags are yet supported, but it is easy to add new ones thanks to docutils.

Usage

rst2db <filename> [-e root_element] [-o output_file] [-t template_file]

Only the filename to process is required. All other settings are optional.

Settings:

<kbd>-e <var>root_element</var></kbd>
 set the root element of the resulting docbook file. If this is not specified, then ‘section’ will be used.
<kbd>-o <var>output_file</var></kbd> set the output filename to write. If this is not specified, then output will be sent to stdout.
<kbd>-t <var>template_file</var></kbd>
 

set a template file to use to dress the output. You must have Jinja2 installed to use this feature.

Use {{data.root_element}} and {{data.contents}} to represent the output of this script in your template.

License

This software is provided under the BSD 3-Clause license. See the LICENSE file for more details.

For more information

Contact eron@abstrys.com

 
File Type Py Version Uploaded on Size
rst2db-0.9b.tar.gz (md5) Source 2014-06-18 4KB
  • Downloads (All Versions):
  • 7 downloads in the last day
  • 104 downloads in the last week
  • 524 downloads in the last month