Sphinx extension with Python doc-specific markup.
- :copyright: 2008 by Georg Brandl.
+ :copyright: 2008 by Georg Brandl.
:license: Python license.
from sphinx.builders import Builder
+ # using Sphinx < 0.6, which has a different package layout
from sphinx.builder import Builder
+ # monkey-patch toctree directive to accept (and ignore) the :numbered: flag
+ from sphinx.directives.other import toctree_directive
+ toctree_directive.options['numbered'] = toctree_directive.options['glob']
from sphinx.writers.text import TextWriter