diff --git a/doc/admin/conf.py b/doc/admin/conf.py
index 5c7ed127081b74b207ad41d61e5ba866a0ac152a..9155f7322b23b74a33d4686e0628702897d308b0 100644
--- a/doc/admin/conf.py
+++ b/doc/admin/conf.py
@@ -33,14 +33,14 @@ import pkg_resources
 # -- General configuration -----------------------------------------------------
 
 # If your documentation needs a minimal Sphinx version, state it here.
-#needs_sphinx = '1.0'
+needs_sphinx = '1.4.1'
 
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
 extensions = [
     'sphinx.ext.todo',
     'sphinx.ext.coverage',
-    'sphinx.ext.pngmath',
+    'sphinx.ext.imgmath',
     'sphinx.ext.ifconfig',
     'sphinx.ext.autodoc',
     'sphinx.ext.autosummary',
diff --git a/doc/api/conf.py b/doc/api/conf.py
index 7e21dad8522cd668c09b9050f664619dc1c8176d..acad5477e324a1ebb588f1e032e5c8b93af070ce 100644
--- a/doc/api/conf.py
+++ b/doc/api/conf.py
@@ -46,7 +46,7 @@ application = get_wsgi_application()
 # -- General configuration -----------------------------------------------------
 
 # If your documentation needs a minimal Sphinx version, state it here.
-needs_sphinx = '1.3'
+needs_sphinx = '1.4.1'
 
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
@@ -54,7 +54,7 @@ extensions = [
 
     'sphinx.ext.todo',
     'sphinx.ext.coverage',
-    'sphinx.ext.pngmath',
+    'sphinx.ext.imgmath',
     'sphinx.ext.ifconfig',
     'sphinx.ext.autodoc',
     'sphinx.ext.autosummary',
diff --git a/doc/user/conf.py b/doc/user/conf.py
index 324bc71788f1e1d718dde0dab4a6bfd2b8c78017..b12dd3b5fe93aaadf699957692d60bcf843e64a0 100644
--- a/doc/user/conf.py
+++ b/doc/user/conf.py
@@ -39,14 +39,14 @@ import pkg_resources
 # -- General configuration -----------------------------------------------------
 
 # If your documentation needs a minimal Sphinx version, state it here.
-needs_sphinx = '1.3'
+needs_sphinx = '1.4.1'
 
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
 extensions = [
     'sphinx.ext.todo',
     'sphinx.ext.coverage',
-    'sphinx.ext.pngmath',
+    'sphinx.ext.imgmath',
     'sphinx.ext.ifconfig',
     'sphinx.ext.autodoc',
     'sphinx.ext.autosummary',