The name of the math extension changed on Sphinx 1.4. This adds the major version number of sphinx to the condition. Signed-off-by: Markus Heiser <markus.heiser@xxxxxxxxxxx> --- Documentation/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/conf.py b/Documentation/conf.py index 4db1993..02c4081 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -37,10 +37,10 @@ from load_config import loadConfig extensions = ['kerneldoc', 'rstFlatTable', 'kernel_include', 'cdomain'] # The name of the math extension changed on Sphinx 1.4 -if minor > 3: - extensions.append("sphinx.ext.imgmath") -else: +if major == 1 and minor < 4: extensions.append("sphinx.ext.pngmath") +else: + extensions.append("sphinx.ext.imgmath") # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-doc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html