aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ08nY2024-07-16 19:32:29 +0200
committerJ08nY2024-07-16 19:32:29 +0200
commit61156a85438223b6e0217e5311aa319854b17435 (patch)
tree7d090fa629268e8eb74aa9b3df69969571258068
parent00d039111304423cba08f92a3f645d895c97b61b (diff)
downloadpyecsca-61156a85438223b6e0217e5311aa319854b17435.tar.gz
pyecsca-61156a85438223b6e0217e5311aa319854b17435.tar.zst
pyecsca-61156a85438223b6e0217e5311aa319854b17435.zip
-rw-r--r--docs/conf.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index a83ec57..b258aaa 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -234,6 +234,14 @@ autoclass_content = "both"
nbsphinx_allow_errors = True
nbsphinx_execute = "never"
+nbsphinx_prolog = """
+{% set notebook_path = env.doc2path(env.docname, base=None) | replace("notebook/", "") %}
+.. raw:: html
+
+ <a href="https://mybinder.org/v2/gh/J08nY/pyecsca-notebook/HEAD?labpath={{ notebook_path }}" class="sd-badge sd-outline-primary">MyBinder</a>
+
+"""
+
def linkcode_resolve(domain, info):
if domain != 'py':