diff --git a/docs/conf.py b/docs/conf.py index 6880fdb5..abf5a993 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -74,12 +74,17 @@ # This is processed by Jinja2 and inserted before each notebook nbsphinx_prolog = r""" {% set docname = 'docs/' + env.doc2path(env.docname, base=None) %} -{% set git_ref = 'master' if not READTHEDOCS else - commit if '.' not in current_version else +{% set git_ref = 'master' if not env.config.html_context['READTHEDOCS'] else + env.config.html_context['github_version'] if '.' not in env.config.html_context['current_version'] else 'v' + env.config.release %} .. raw:: html
+
{{ env.config }}
+
{{ github_version }}
+
{{ current_version }}
+
{{ commit }}
+
{{ env.config.html_context }}

This page was generated from {{ docname|e }}. Interactive online version: