Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!


README for lore2sphinx

A tool for converting Twisted Lore format documentation into Sphinx/ReST format.

Distribution currently includes the lore2sphinx tool as well as a sphinx project (for the Twisted docs) with a few hand-edited files that tie the docs for the various parts of Twisted together.

NOTE: Output generated from this tool (for the Twisted project) should go
in the "projects" subdirectory of the sphinx project! This directory is not under version control, you will have to create it yourself.


This tool requires:

  • Python 2.6+
  • lxml
  • copy of Twisted

Using the tool

  1. Get it:

    hg clone

  2. Install with 'python install'

  3. Copy 'lore2sphinx.conf.default' to 'lore2sphinx.conf'

  4. Edit 'lore2sphinx.conf' to point to your Lore input source and rst output directories

  5. Run bin/lore2sphinx. This will generate the rst files for Sphinx.
    • If the script can't find your lore2sphinx.conf file, use the '-c' option to specify the config file's exact location. Specify the '--help' command to see all available options.
  6. Build the Sphinx project:

    cd profiles/twisted make html

  7. Look at the output in build/html/ to see what's broken

  8. Give feedback! Open a ticket on Bitbucket or use the Twisted-Python mailinglist.

Recent activity

Thijs Triemstra

Commits by Thijs Triemstra were pushed to khorn/lore2sphinx

62c045a - Interrupt build process when errors are detected in lore2sphinx and exit.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.