File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -387,17 +387,17 @@ def linkcode_resolve(domain, info):
387387# -- Detect branch name -----------------------------------
388388# Works on GitHub Actions, ReadTheDocs, and local fallback
389389BRANCH = (
390- os .environ .get ("GITHUB_REF_NAME" ) # GitHub Actions
391- or os .environ .get ("READTHEDOCS_VERSION" ) # ReadTheDocs
392- or "main" # fallback
390+ os .environ .get ("GITHUB_REF_NAME" ) # GitHub Actions
391+ or os .environ .get ("READTHEDOCS_VERSION" ) # ReadTheDocs
392+ or "main" # fallback
393393)
394394
395395nbsphinx_prolog = f"""
396396.. raw:: html
397397
398398 <a href="https://mybinder.org/v2/gh/OceanParcels/Parcels/{ BRANCH } ?urlpath=lab/tree/docs/{{{{ env.doc2path(env.docname, base=None) }}}}" target="_blank">
399399 <img alt="Binder badge" src="https://mybinder.org/badge_logo.svg">
400- </a>
400+ </a>
401401 or view it
402402 <a href="https://github.com/OceanParcels/Parcels/blob/{ BRANCH } /docs/{{{{ env.doc2path(env.docname, base=None) }}}}" target="_blank">
403403 on GitHub
You can’t perform that action at this time.
0 commit comments