Index: dolfin/doc/Doxyfile
===================================================================
--- dolfin.orig/doc/Doxyfile	2022-02-05 01:33:39.472108831 +0100
+++ dolfin/doc/Doxyfile	2022-02-05 01:33:39.472108831 +0100
@@ -1558,7 +1558,7 @@
 # The default value is: http://cdn.mathjax.org/mathjax/latest.
 # This tag requires that the tag USE_MATHJAX is set to YES.
 
-MATHJAX_RELPATH        = http://cdn.mathjax.org/mathjax/latest
+MATHJAX_RELPATH        = file:///usr/share/javascript/mathjax/MathJax.js
 
 # The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
 # extension names that should be enabled during MathJax rendering. For example
Index: dolfin/doc/source/conf.py
===================================================================
--- dolfin.orig/doc/source/conf.py	2022-02-05 01:33:39.472108831 +0100
+++ dolfin/doc/source/conf.py	2022-02-05 01:33:39.472108831 +0100
@@ -39,6 +39,8 @@
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']
 
+mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
+
 # The suffix(es) of source filenames.
 # You can specify multiple suffix as a list of string:
 #
Index: dolfin/python/doc/source/conf.py
===================================================================
--- dolfin.orig/python/doc/source/conf.py	2021-10-23 02:49:01.163567412 +0200
+++ dolfin/python/doc/source/conf.py	2022-02-05 01:34:37.012356512 +0100
@@ -45,6 +45,8 @@
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']
 
+mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
+
 # The suffix(es) of source filenames.
 # You can specify multiple suffix as a list of string:
 #
