From: Cordell Bloor <cgmb@slerp.xyz>
Date: Thu, 21 Dec 2023 01:35:45 -0500
Subject: Use local mathjax

The sphinx.ext.mathjax extension defaults to loading mathjax from a
CDN, which results in the lintian warning 'privacy-breach-generic'.
Use a local copy of mathjax to prevent that problem.

Forwarded: not-needed
Last-Updated: 2025-07-04
---
 docs/conf.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docs/conf.py b/docs/conf.py
index 2c0d9fe..53c7b4e 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -8,6 +8,9 @@ import re
 
 from rocm_docs import ROCmDocs
 
+# Debian: use local mathjax for local documentation
+mathjax_path = "/usr/share/javascript/mathjax/MathJax.js"
+
 with open('../CMakeLists.txt', encoding='utf-8') as f:
     match = re.search(r'.*\bset\s+\(\s+VERSION_STRING\s+\"?([0-9.]+)[^0-9.]+', f.read())
     if not match:
