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!


Project Description

[![Build Status](]( [![Coverage Status](](

The RefactorDoc extension parses the function and class docstrings as they are retrieved by the autodoc extension and refactors the section blocks into sphinx friendly rst. The extension shares similarities with alternatives (such as numpydoc) but aims at reflecting the original form of the docstring.

Key aims of RefactorDoc are:

  • Do not change the order of sections.
  • Allow sphinx directives between (and inside) section blocks.
  • Easier to debug (native support for debugging) and extend (future versions).


The RefactorDoc extension lives at Github. You can clone the repository using:

$ git clone


  1. Install refactordoc from pypi using pip:

    $ pip install reafactordoc
  2. Add refactor-doc to the extensions variable of your sphinx

    extensions = [

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
(11.3 kB) Copy SHA256 Hash SHA256
Source None May 23, 2014

Supported By

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