tweaks.tabsize

Hack to get the docutils tab size, as there doesn’t appear to be any other way.

New in version 1.0.0.

You probably don’t need to use this extension directly, but if you’re developing an extension of your own you can enable it like so:

def setup(app: Sphinx) -> Dict[str, Any]:
    app.setup_extension('sphinx_toolbox.github')
    return {}

This will guarantee that the following value will be available via app.config:

  • docutils_tab_width (int) – The number of spaces that correspond to a tab when Docutils parses source files.

setup(app)[source]

Setup sphinx_toolbox.tweaks.tabsize.

Parameters

app (Sphinx) – The Sphinx application.

Return type

SphinxExtMetadata