File: 001-fix-for-doc-files.patch

package info (click to toggle)
python-autoray 0.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,708 kB
  • sloc: python: 5,490; makefile: 20
file content (42 lines) | stat: -rw-r--r-- 1,022 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
42
Description: Fix for doc files.
 Fixed system path issue in conf.py + disabled myst_nb extension which
 is not available in Debian.
Forwarded: not-needed
Author: Yogeswaran Umasankar <kd8mbd@gmail.com>
Last-Update: 2024-02-23

--- a/docs/conf.py
+++ b/docs/conf.py
@@ -15,6 +15,7 @@ copyright = '2019-2023, Johnnie Gray'
 author = 'Johnnie Gray'
 
 try:
+    sys.path.append(os.path.abspath("../"))
     from autoray import __version__
     release = __version__
 except ImportError:
@@ -28,7 +29,6 @@ except ImportError:
 # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
 
 extensions = [
-    'myst_nb',
     'sphinx.ext.intersphinx',
     'sphinx.ext.extlinks',
     'sphinx.ext.napoleon',
@@ -37,16 +37,6 @@ extensions = [
     'autoapi.extension',
 ]
 
-nb_execution_mode = "off"
-myst_heading_anchors = 4
-myst_enable_extensions = [
-    "amsmath",
-    "colon_fence",
-    "deflist",
-    "dollarmath",
-    "html_image",
-]
-
 # sphinx-autoapi
 autoapi_dirs = ['../autoray']