diff options
Diffstat (limited to 'docs')
| -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': |
