Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Effortless generation of PDF, HTML & ODT documents from RST (ReStructuredText)

Project Description

A simple way to produce short-to-medium document using reStructuredText

Multi-format themes
Render the same document in HTML, ODT, PDF keeping the main visual identity
Unified interface
  • Tired of switching between rst2* tools having different arguments or behavior ?
  • Would like to not lose code-blocks or some rendering options switching the output format ?

This tool try to address this

Make your own theme
TODO: templates will be customizable easily (say, probably colors only)

How to use it


You’ll need rst2pdf to use all the features, other rst2* tools are coming from docutils.


mkrst [-h] [--html] [--pdf] [--odt] [--theme THEME]
             [--themes-dir THEMES_DIR]
optional arguments:
-h, --help show this help message and exit
--html Generate HTML output
--pdf Generate PDF output
--odt Generate ODT output
--theme THEME Use a different theme
--themes-dir THEMES_DIR
 Change the folder searched for theme
popo:~/2lazy2rest% ./mkrst test_page.rst --html --pdf
Using ./themes/default
  html:  test_page.html
   pdf:  test_page.pdf


Make a copy of themes/default, edit to your needs the copy and use the –theme option with the name of your copy, that’s All !


popo:~/2lazy2rest% cp -r themes/default themes/red
popo:~/2lazy2rest% sed -si 's/#FEFEFE/red/g' themes/red/html/stylesheet.css
popo:~/2lazy2rest% ./mkrst test_page.rst --html --theme red


  • ODT style is unfinished
  • PDF & HTML still needs more ReST coverage
  • No skin generation from template yet

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(21.1 kB) Copy SHA256 Hash SHA256
Wheel 3.4 Feb 8, 2015
(20.5 kB) Copy SHA256 Hash SHA256
Source None Feb 8, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate