From 2105fb863b0f837760104cdbc849b741b6154ce4 Mon Sep 17 00:00:00 2001
From: "A. Maitland Bottoms" <bottoms@debian.org>
Date: Thu, 1 Jul 2021 22:20:39 -0400
Subject: [PATCH 09/11] debian mathjax relpath

Debian documenation packages reference a system-wide installation
of mathjax. So that there is not an embedded copy of mathjax in
every packages documentation that uses it.
---
 host/docs/Doxyfile.in                               | 2 +-
 tools/gr-usrptest/docs/doxygen/Doxyfile.in          | 2 +-
 tools/gr-usrptest/docs/doxygen/Doxyfile.swig_doc.in | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

--- a/tools/gr-usrptest/docs/doxygen/Doxyfile.in
+++ b/tools/gr-usrptest/docs/doxygen/Doxyfile.in
@@ -1239,7 +1239,7 @@
 # However, it is strongly recommended to install a local
 # copy of MathJax from http://www.mathjax.org before deployment.
 
-MATHJAX_RELPATH        = http://cdn.mathjax.org/mathjax/latest
+MATHJAX_RELPATH        = /usr/share/javascript/mathjax
 
 # The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension
 # names that should be enabled during MathJax rendering.
--- a/tools/gr-usrptest/docs/doxygen/Doxyfile.swig_doc.in
+++ b/tools/gr-usrptest/docs/doxygen/Doxyfile.swig_doc.in
@@ -1207,7 +1207,7 @@
 # However, it is strongly recommended to install a local
 # copy of MathJax from http://www.mathjax.org before deployment.
 
-MATHJAX_RELPATH        = http://cdn.mathjax.org/mathjax/latest
+MATHJAX_RELPATH        = /usr/share/javascript/mathjax
 
 # The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension
 # names that should be enabled during MathJax rendering.
--- a/host/docs/CMakeLists.txt
+++ b/host/docs/CMakeLists.txt
@@ -43,7 +43,7 @@
 option(ENABLE_DOXYGEN_DOT "Let Doxygen use dot (requires graphviz)" OFF)
 option(ENABLE_DOXYGEN_SHORTNAMES "Let Doxygen use shorter filenames (helps on Windows)" OFF)
 set(
-    MATHJAX_RELPATH https://cdn.jsdelivr.net/npm/mathjax@2/
+    MATHJAX_RELPATH /usr/share/javascript/mathjax
     CACHE STRING "MATHJAX_RELPATH option for Doxygen")
 mark_as_advanced(MATHJAX_RELPATH)
 
