README: Docutils 1.0b1.dev

Author:

David Goodger

Contact:
goodger@python.org
Date:
2026-06-11
Web site:

https://docutils.sourceforge.io/

Abstract

Docutils is a modular system for processing documentation into useful formats, such as HTML, XML, and LaTeX. For input Docutils supports reStructuredText, an easy-to-read, what-you-see-is-what-you-get plaintext markup syntax.

Quick-Start

This is for those who want to get up & running quickly.

  1. Docutils requires Python, available from https://www.python.org/. See Dependencies below for details.

  2. Install the latest stable release from PyPi with pip:

    pip install docutils

    For alternatives and details, see section Installation below.

  3. Use the front-end scripts to convert reStructuredText documents. Try for example:

    docutils FAQ.rst FAQ.html

    See Usage below for details.

Purpose

The purpose of the Docutils project is to provide a set of tools for processing plaintext documentation into useful formats, such as HTML, LaTeX, troff (man pages), OpenOffice, and native XML. Support for the following sources has been implemented:

Support for the following sources is planned or provided by third party tools:

Dependencies

To run the code, Python must be installed. (Python is pre-installed with most Linux distributions.)

The type hints added in version 0.22 use Python 3.10 syntax. However, the Python interpreter treats them as annotations unless typing.TYPE_CHECKING is set to True.

Recommendations

Docutils uses the following packages for enhanced functionality, if they are installed:

The Docutils Link List records projects that users of Docutils and reStructuredText may find useful.

Installation

The Python Packaging User Guide gives details how to use pip for installing.

GNU/Linux, BSDs, Unix, Mac OS X, etc.

  • Use su or sudo for a system-wide installation as root, e.g.:

    sudo pip install docutils

Windows

  • The Python FAQ explains how to run a Python program under Windows.

  • Usually, pip is automatically installed if you are using Python downloaded from https://python.org. If not, see the pip documentation.

  • The command window should recognise the word py as an instruction to start the interpreter, e.g.

    py -m pip install docutils

    If this does not work, you may have to specify the full path to the Python executable.

Usage

Start the "docutils" command line application with:

docutils [options] [<source> [<destination>]]

The default action is to convert a reStructuredText document to HTML5, for example:

docutils test.rst test.html

Read the --help option output for details on options and arguments and Docutils Front-End Tools for the full documentation of the various tools.

For programmatic use of the docutils Python package, read the API Reference Material and the source code. Remaining questions may be answered in the Docutils Project Documentation or the Docutils-users mailing list.

Contributions are welcome!

Project Files & Directories