Skip to content

Commit f592be0

Browse files
committed
Patch jupyter-sphinx a bit more
1 parent 2a150fb commit f592be0

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

build/pkgs/jupyter_sphinx/patches/0001-Patch-for-sage-live-doc.patch

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
From fa6e7b31ebd7f6dbf02e1e4c1056e4ef1389884e Mon Sep 17 00:00:00 2001
1+
From 5bffbe38302c695123779f87300d84090b4bd118 Mon Sep 17 00:00:00 2001
22
From: Kwankyu Lee <[email protected]>
33
Date: Mon, 28 Aug 2023 00:18:59 +0900
44
Subject: [PATCH] Patch for sage live doc
55

66
---
7-
jupyter_sphinx/__init__.py | 2 +-
7+
jupyter_sphinx/__init__.py | 4 ++--
88
jupyter_sphinx/execute.py | 11 +++++++++++
9-
2 files changed, 12 insertions(+), 1 deletion(-)
9+
2 files changed, 13 insertions(+), 2 deletions(-)
1010

1111
diff --git a/jupyter_sphinx/__init__.py b/jupyter_sphinx/__init__.py
12-
index 34af884..f2e17e0 100644
12+
index 34af884..b7ca8ee 100644
1313
--- a/jupyter_sphinx/__init__.py
1414
+++ b/jupyter_sphinx/__init__.py
1515
@@ -31,7 +31,7 @@ from .thebelab import ThebeButton, ThebeButtonNode, ThebeOutputNode, ThebeSource
@@ -21,6 +21,15 @@ index 34af884..f2e17e0 100644
2121

2222
logger = logging.getLogger(__name__)
2323

24+
@@ -186,7 +186,7 @@ def setup(app):
25+
app.add_config_value("jupyter_sphinx_embed_url", None, "html")
26+
27+
# thebelab config, can be either a filename or a dict
28+
- app.add_config_value("jupyter_sphinx_thebelab_config", None, "html")
29+
+ app.add_config_value("jupyter_sphinx_thebelab_config", None, "env")
30+
app.add_config_value("jupyter_sphinx_thebelab_url", THEBELAB_URL_DEFAULT, "html")
31+
32+
# linenos config
2433
diff --git a/jupyter_sphinx/execute.py b/jupyter_sphinx/execute.py
2534
index 558a26b..de44455 100644
2635
--- a/jupyter_sphinx/execute.py
@@ -44,5 +53,5 @@ index 558a26b..de44455 100644
4453
# and cells can be zipped and the provided input/output
4554
# can be inserted later
4655
--
47-
2.40.1
56+
2.42.0
4857

0 commit comments

Comments
 (0)