Skip to content

Commit

Permalink
fix variable names in conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sef43 committed Dec 22, 2022
1 parent 884d7dd commit 6d5be74
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
project = "OpenMM Cookbook"
copyright = "2022, The OpenMM Contributors"
author = "The OpenMM Contributors"
releasepath = os.getenv("PAGES_DEPLOY_PATH","dev")
release = os.getenv("PAGES_DEPLOY_PATH","dev")
print(release)


# -- General configuration ---------------------------------------------------
Expand Down Expand Up @@ -57,12 +58,12 @@

# Add links to top of each notebook
nbsphinx_prolog = """
{%- set releasepath = env.config.releasepath %}
{%- set colabpath = env.config.release -%}
{%- set docname = env.doc2path(env.docname, base=False) -%}
{%- set github = "openmm/openmm-cookbook" -%}
{%- set on_local = docname.split('/') | last -%}
{%- set on_github = "https://github.com/" ~ github ~ "/blob/main/" ~ docname -%}
{%- set on_colab = "https://colab.research.google.com/github/" ~ github ~ "/blob/gh-pages/" ~ releasepath ~ "/colab/" ~ docname -%}
{%- set on_colab = "https://colab.research.google.com/github/" ~ github ~ "/blob/gh-pages/" ~ colabpath ~ "/colab/" ~ docname -%}
.. raw:: html
<div class="nbsphinx-prolog">
Expand Down

0 comments on commit 6d5be74

Please sign in to comment.