File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 29
29
'jupyter' : ('https://jupyter.readthedocs.io/en/latest/' , None ),
30
30
}
31
31
32
+
33
+ # prolog based on https://github.com/spatialaudio/nbsphinx/blob/98005a9d6b331b7d6d14221539154df69f7ae51a/doc/conf.py#L38
34
+ nbsphinx_prolog = r"""
35
+ {% set docname_link = env.doc2path(env.docname, base=None).replace(' ', '%20') %}
36
+ {% set docname_display = env.doc2path(env.docname, base=None) %}
37
+
38
+ .. raw:: html
39
+
40
+ <div class="admonition note">
41
+ This page was generated from
42
+ <a class="reference external" href="https://github.com/jupyter-widgets/ipywidgets/blob/{{ env.config.release|e }}/docs/source/{{ docname_link|e }}">{{ docname_display|e }}</a>.<br>
43
+ Interactive online version:
44
+ <span style="white-space: nowrap;"><a href="https://mybinder.org/v2/gh/jupyter-widgets/ipywidgets/{{ env.config.release|e }}?urlpath=lab/tree/docs/source/{{ docname_link|e }}"><img alt="Binder badge" src="https://mybinder.org/badge_logo.svg" style="vertical-align:text-bottom"></a>.</span>
45
+ </div>
46
+
47
+ .. raw:: latex
48
+
49
+ \nbsphinxstartnotebook{\scriptsize\noindent\strut
50
+ \textcolor{gray}{The following section was generated from
51
+ \sphinxcode{\sphinxupquote{\strut {{ docname | escape_latex }}}} \dotfill}}
52
+ """
53
+
32
54
nbsphinx_execute = 'always'
33
55
34
56
# -- General information -------
You can’t perform that action at this time.
0 commit comments