diff --git a/doc/source/conf.py b/doc/source/conf.py index 79d9a79..c56da87 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -106,7 +106,7 @@ commit_id = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).strip().decode("ascii") nbsphinx_prolog = f""" .. image:: https://colab.research.google.com/assets/colab-badge.svg - :target: {{{{ "https://colab.research.google.com/github/wildlife-dynamics/ecoscope/blob/{commit_id}/doc/source/" + env.docname + ".ipynb" }}}} + :target: {{{{ "https://colab.research.google.com/github/wildlife-dynamics/ecoscope/blob/{commit_id}/doc/source/" + env.docname|urlencode + ".ipynb" }}}} ---- """ # noqa