зеркало из https://github.com/microsoft/torchgeo.git
Single badge (to prove a point)
This commit is contained in:
Родитель
5d83a773ca
Коммит
e9d781fdff
11
docs/conf.py
11
docs/conf.py
|
@ -146,17 +146,6 @@ nbsphinx_prolog = """
|
||||||
:class: colabbadge
|
:class: colabbadge
|
||||||
:alt: Open in Colab
|
:alt: Open in Colab
|
||||||
:target: {{ host }}/github/{{ repo }}/blob/{{ branch }}/{{ path }}
|
:target: {{ host }}/github/{{ repo }}/blob/{{ branch }}/{{ path }}
|
||||||
|
|
||||||
{% set host = "https://lightning.ai/new" %}
|
|
||||||
{% set badge = "https://pl-bolts-doc-images.s3.us-east-2.amazonaws.com" %}
|
|
||||||
{% set badge = badge ~ "/app-2/studio-badge.svg" %}
|
|
||||||
{% set repo_url = "https://github.com/" ~ repo ~ "/blob/" ~ branch ~ "/" ~ path %}
|
|
||||||
{% set repo_url = repo_url | replace(":", "%3A") | replace("/", "%2F") %}
|
|
||||||
|
|
||||||
.. image:: {{ badge }}
|
|
||||||
:class: colabbadge
|
|
||||||
:alt: Open in Studio
|
|
||||||
:target: {{ host }}?repo_url={{ repo_url }}
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Disables requirejs in nbsphinx to enable compatibility with the pytorch_sphinx_theme
|
# Disables requirejs in nbsphinx to enable compatibility with the pytorch_sphinx_theme
|
||||||
|
|
Загрузка…
Ссылка в новой задаче