Skip to main content

A collection of Sphinx extensions

Project description

Rusty is a collection of extensions (directives and roles) for Sphinx documentation framework. While the extensions are somewhat compatible with docutils, the usage of Sphinx is currently required.


At the moment, the Rusty contains following extensions:


Generates list from the selected set of role entires, written into document. This might come handy for example with release notes where bug entries (marked with role syntax) are listed automatically:

Bug fixes
Following bugs are fixed in this release:

.. rolelist:: bug
   :levelsup: 1
   :template: #${value}: ${text}

This section lists down all the changes gone in the current release:

* Fixed :bug:`application crashes <235>` -issue
* Fixed :bug:`application fails to load document <236>` -issue
* Fixed :bug:`523`: typos in the documentation
* Added support for python 2.6, this fixes the :bug:`140`
* Improved the performance

Includesh (or include shell) extends the basic functionality of include directive: instead of just including the contents of the file into document, the includesh transforms the shell comments into documents and commands into literal blocks:

This section lists down the installation step from the

.. includesh::

Similar to rolelist directive. The main difference is the capability to create list based on regular expression rule.


.. IMPORTANT:: Action points

    .. regxlist:: (AP|-->)+\s+(to)*\s*(?P<name>(\w|\s)+):\s*(?P<desc>(\w| |\s)*)
       :template: ${name}: ${desc}
       :levelsup: 2

- Software building process is still hard, AP Sarah: improve building process
- AP to Tom: document the building process
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean risus mauris,
  ultrices id, pretium sed, lobortis in, nisl. Nunc tincidunt neque vel libero
  hendrerit malesuada.
- Pellentesque dolor augue, dapibus dictum, elementum quis, tincidunt
  consectetur, nunc. Sed vulputate dolor ut sem. In varius rutrum odio.
- Release needs to be ready for monday --> Sarah: create official release
- Nunc sit amet neque sed lorem condimentum interdum. In hac habitasse
  platea dictumst. Vivamus vel libero eget lectus ultrices vestibulum.
- Blah blah...

Similar functionality to csv-table - one of the docutils directives: read data from XML/HTML file and convert it to RST-table based on given query and iterator. Requires BeautifulSoup -module.


Producing following table:

.. xmltable:: Animal table caption
     :file: example/animals.xml
     :header: Name, Species, ID
     :query: /zoo/animal



The easiest way to install the package is to use easy_install:

easy_install -U rusty

Alternative method is to download the package manually, extract it and install it using traditional methods:

sudo python install


Documentation provides further information and examples how to use the module. There exists two resources:


Release 0.2.1 (2009-06-16)

Maintenance release, containing following changes:

  • Fixed issue #4: is missing from the package

Release 0.2.0 (2009-06-01)

Changes since previous release:

  • New directive: xmltable

  • New directive: regxlist

  • Improved unit testing

  • Improved building

  • Migrated version control from subversion to mercurial

  • Published the project in Bitbucket:

  • Added FAQ

Release 0.1.0 (2009-03-31)

First release, containing following functionality

  • New directive: includesh

  • New directive: rolelist

  • Initial set of unit tests (see testing)

  • Paver powered build and release management

Project details

Download files

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

Source Distribution (23.3 kB view hashes)

Uploaded source

Built Distribution

rusty-0.2.1-py2.5.egg (31.0 kB view hashes)

Uploaded 2 5

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page