Index: fenics-dolfinx/python/doc/source/conf.py
===================================================================
--- fenics-dolfinx.orig/python/doc/source/conf.py	2025-11-12 15:50:05.820499642 +0100
+++ fenics-dolfinx/python/doc/source/conf.py	2025-11-12 15:50:05.809750470 +0100
@@ -48,6 +48,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:
 source_suffix = {
Index: fenics-dolfinx/cpp/doc/Doxyfile
===================================================================
--- fenics-dolfinx.orig/cpp/doc/Doxyfile	2025-11-12 15:50:05.820499642 +0100
+++ fenics-dolfinx/cpp/doc/Doxyfile	2025-11-12 15:50:05.810944188 +0100
@@ -1763,7 +1763,7 @@
 # - in case of MathJax version 3: https://cdn.jsdelivr.net/npm/mathjax@3
 # This tag requires that the tag USE_MATHJAX is set to YES.
 
-MATHJAX_RELPATH        = https://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
