diff options
| author | J08nY | 2024-07-16 19:32:29 +0200 |
|---|---|---|
| committer | J08nY | 2024-07-16 19:32:29 +0200 |
| commit | 61156a85438223b6e0217e5311aa319854b17435 (patch) | |
| tree | 7d090fa629268e8eb74aa9b3df69969571258068 /docs/conf.py | |
| parent | 00d039111304423cba08f92a3f645d895c97b61b (diff) | |
| download | pyecsca-61156a85438223b6e0217e5311aa319854b17435.tar.gz pyecsca-61156a85438223b6e0217e5311aa319854b17435.tar.zst pyecsca-61156a85438223b6e0217e5311aa319854b17435.zip | |
Diffstat (limited to 'docs/conf.py')
| -rw-r--r-- | docs/conf.py | 8 |
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': |
