Skip to content

Commit

Permalink
try Martin's solution
Browse files Browse the repository at this point in the history
  • Loading branch information
jGaboardi authored Jun 27, 2021
1 parent a29cb97 commit e76d84e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ def setup(app):
# This is processed by Jinja2 and inserted before each notebook
nbsphinx_prolog = r"""
{% set docname = env.doc2path(env.docname, base=None) %}
{% set fullpath = env.doc2path(env.docname, base='tree/main/') %}
.. only:: html
Expand All @@ -294,7 +293,7 @@ def setup(app):
Interactive online version:
:raw-html:`<a href="https://mybinder.org/v2/gh/pysal/spopt/main?filepath={{ docname }}"><img alt="Binder badge" src="https://mybinder.org/badge_logo.svg" style="vertical-align:text-bottom"></a>`
__ https://github.com/pysal/spopt/{{ fullpath }}
__ https://github.com/pysal/spopt/blob/main/{{ docname }}
.. raw:: latex
Expand Down

0 comments on commit e76d84e

Please sign in to comment.