Skip to content

Commit

Permalink
DOC: Fix broken binder links
Browse files Browse the repository at this point in the history
We set the release variable in the sphinx config so that the nbsphinx
prologue can actually link to a blob. The release is set to the git hash
of the commit that the docs were built from. This makes the binder link
always to the same notebook that the docs were rendered from.
  • Loading branch information
carterbox committed Jan 19, 2020
1 parent 220d139 commit f867d04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
project = u'TomoPy'
copyright = u'2013-2019, ' + Argonne

release = os.popen('git log -1 --format="%H"').read().strip()

# We require sphinx >=2 because of sphinxcontrib.bibtex,
needs_sphinx = '2.0'

Expand Down

0 comments on commit f867d04

Please sign in to comment.