Skip to content

Commit adf8e84

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c28ae99 commit adf8e84

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/conf.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,17 +387,17 @@ def linkcode_resolve(domain, info):
387387
# -- Detect branch name -----------------------------------
388388
# Works on GitHub Actions, ReadTheDocs, and local fallback
389389
BRANCH = (
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

395395
nbsphinx_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

0 commit comments

Comments
 (0)