File: adjusted-and-disabled-jupyterlite_sphinx.patch

package info (click to toggle)
sphinx-gallery 0.19.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,336 kB
  • sloc: python: 10,346; makefile: 216; lisp: 15; sh: 11; cpp: 9
file content (41 lines) | stat: -rw-r--r-- 1,433 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
31
32
33
34
35
36
37
38
39
40
41
Description: adjusted mathjax path local and disabled jupyterlite_sphinx(not in Debian)
Author: Josenilson Ferreira da silva <nilsonfsilva@hotmail.com>
Forwarded: not-needed
Last-Update: 2024-05-05
Index: sphinx-gallery/doc/conf.py
===================================================================
--- sphinx-gallery.orig/doc/conf.py
+++ sphinx-gallery/doc/conf.py
@@ -44,9 +44,10 @@ extensions = [
     "sphinx.ext.mathjax",
     "sphinx_gallery.gen_gallery",
     "sphinx.ext.graphviz",
-    "jupyterlite_sphinx",
 ]
 
+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"]
 
@@ -147,7 +148,7 @@ html_theme_options = {
     "navbar_center": ["navbar-nav"],
     "show_toc_level": 2,
     "show_nav_level": 2,
-    "navbar_end": ["theme-switcher", "version-switcher", "navbar-icon-links"],
+    "navbar_end": ["navbar-icon-links"],
     "navigation_with_keys": False,
     "logo": {
         "text": "🖼️ Sphinx-Gallery",
Index: sphinx-gallery/doc/reference.rst
===================================================================
--- sphinx-gallery.orig/doc/reference.rst
+++ sphinx-gallery/doc/reference.rst
@@ -33,7 +33,6 @@ Sphinx-Gallery API Reference
    notebook
    downloads
    sorting
-   interactive_example
    directives
 
 .. currentmodule:: sphinx_gallery.utils