-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Milestone
Description
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).