File: fix_doc_build.patch

package info (click to toggle)
fenics-basix 0.9.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,084 kB
  • sloc: cpp: 22,542; python: 10,184; makefile: 40; sh: 24
file content (30 lines) | stat: -rw-r--r-- 983 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- a/doc/python/source/conf.py
+++ b/doc/python/source/conf.py
@@ -25,6 +25,8 @@
     "sphinx.ext.napoleon",
 ]
 
+mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
+
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ["_templates"]
 
@@ -135,6 +137,7 @@
 }
 autosummary_generate = True
 autoclass_content = "both"
+autodoc_mock_imports = ["numba"]
 
 napoleon_google_docstring = True
 napoleon_numpy_docstring = False
--- a/doc/cpp/Doxyfile
+++ b/doc/cpp/Doxyfile
@@ -1513,7 +1513,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        = https://cdn.mathjax.org/mathjax/latest
+MATHJAX_RELPATH        = file:///usr/share/javascript/mathjax
 
 # The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax
 # extension names that should be enabled during MathJax rendering. For example