Tutorials: remove button for Planetary Computer Hub (#2107)

This commit is contained in:
Adam J. Stewart 2024-07-01 10:23:44 +02:00 коммит произвёл GitHub
Родитель 70428668fc
Коммит e84b50c44e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 0 добавлений и 16 удалений

Просмотреть файл

@ -144,22 +144,6 @@ nbsphinx_prolog = """
:class: colabbadge
:alt: Open in Colab
:target: {{ host }}/github/{{ repo }}/blob/{{ branch }}/{{ urlpath }}
{% set host = "https://pccompute.westeurope.cloudapp.azure.com" %}
{% set host = host ~ "/compute/hub/user-redirect/git-pull" %}
{% set repo = "https%3A%2F%2Fgithub.com%2Fmicrosoft%2Ftorchgeo" %}
{% set urlpath = "tree%2Ftorchgeo%2Fdocs%2F" %}
{% set urlpath = urlpath ~ env.docname | replace("/", "%2F") ~ ".ipynb" %}
{% if "dev" in env.config.release %}
{% set branch = "main" %}
{% else %}
{% set branch = "releases%2Fv" ~ env.config.version %}
{% endif %}
.. image:: https://img.shields.io/badge/-Open%20on%20Planetary%20Computer-blue
:class: colabbadge
:alt: Open on Planetary Computer
:target: {{ host }}?repo={{ repo }}&urlpath={{ urlpath }}&branch={{ branch }}
"""
# Disables requirejs in nbsphinx to enable compatibility with the pytorch_sphinx_theme