Skip to content

Commit b1ddcd7

Browse files
authored
Merge pull request #418 from jGaboardi/update_conf
update conf.py
2 parents 1048db8 + 7bcfce5 commit b1ddcd7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/conf.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,7 @@ def setup(app):
291291

292292
# This is processed by Jinja2 and inserted before each notebook
293293
nbsphinx_prolog = r"""
294-
{% set docname = env.doc2path(env.docname, base='') %}
295-
{% set fullpath = env.doc2path(env.docname, base='tree/master/') %}
294+
{% set docname = env.doc2path(env.docname, base=None) %}
296295
297296
.. only:: html
298297
@@ -305,7 +304,7 @@ def setup(app):
305304
Interactive online version:
306305
:raw-html:`<a href="https://mybinder.org/v2/gh/pysal/libpysal/master?filepath={{ docname }}"><img alt="Binder badge" src="https://mybinder.org/badge_logo.svg" style="vertical-align:text-bottom"></a>`
307306
308-
__ https://github.com/pysal/libpysal/{{ fullpath }}
307+
__ https://github.com/pysal/libpysal/blob/master/{{ docname }}
309308
310309
.. raw:: latex
311310

0 commit comments

Comments
 (0)