Skip to content

Select Extensions on Build Type #3740

@ax3l

Description

@ax3l

Following #1570, there is currently no way to easily control enabling or disabling a sphinx extension based on the build type in conf.py.

The concrete example I would like is building math via sphinx.ext.imgmath for epub but using sphinx.ext.mathjax for html. The rst macros/"interfaces" are compatible but the output is build-type specific.

This is also troublesome when building on RTD since one can not switch extensions on and off depending on the build type (but can build HTML, pdf and epub on RTD).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions