Fix images for notebooks (#22131)
This commit is contained in:
parent
7c37e0916c
commit
258dde9f52
|
|
@ -74,7 +74,7 @@ Below you will find a selection of recommended tutorials that demonstrate infere
|
|||
.. showcase::
|
||||
:title: 270-sound-generation-audioldm2
|
||||
:img: https://raw.githubusercontent.com/openvinotoolkit/openvino_notebooks/main/notebooks/270-sound-generation-audioldm2/270-sound-generation-audioldm2.png
|
||||
|
||||
|
||||
Sound Generation with AudioLDM2 and OpenVINO.
|
||||
|
||||
.. showcase::
|
||||
|
|
@ -135,7 +135,7 @@ Additional Resources
|
|||
|
||||
.. |binder logo| image:: https://mybinder.org/badge_logo.svg
|
||||
:alt: Binder button
|
||||
.. |colab logo| image:: https://camo.githubusercontent.com/84f0493939e0c4de4e6dbe113251b4bfb5353e57134ffd9fcab6b8714514d4d1/68747470733a2f2f636f6c61622e72657365617263682e676f6f676c652e636f6d2f6173736574732f636f6c61622d62616467652e737667
|
||||
.. |colab logo| image:: https://colab.research.google.com/assets/colab-badge.svg
|
||||
:width: 109
|
||||
:alt: Google Colab button
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ To run without installing anything, click the "Open in Colab" button.
|
|||
|
||||
.. |colab_link| raw:: html
|
||||
|
||||
<a href="{{ link_colab }}" target="_blank"><img src="https://camo.githubusercontent.com/84f0493939e0c4de4e6dbe113251b4bfb5353e57134ffd9fcab6b8714514d4d1/68747470733a2f2f636f6c61622e72657365617263682e676f6f676c652e636f6d2f6173736574732f636f6c61622d62616467652e737667" alt="Google Colab"></a>
|
||||
<a href="{{ link_colab }}" target="_blank"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Google Colab"></a>
|
||||
|
||||
.. |github_link| raw:: html
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ To run without installing anything, click the "launch binder" or "Open in Colab"
|
|||
|
||||
.. |colab_link| raw:: html
|
||||
|
||||
<a href="{{ link_colab }}" target="_blank"><img src="https://camo.githubusercontent.com/84f0493939e0c4de4e6dbe113251b4bfb5353e57134ffd9fcab6b8714514d4d1/68747470733a2f2f636f6c61622e72657365617263682e676f6f676c652e636f6d2f6173736574732f636f6c61622d62616467652e737667" alt="Google Colab"></a>
|
||||
<a href="{{ link_colab }}" target="_blank"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Google Colab"></a>
|
||||
|
||||
.. |github_link| raw:: html
|
||||
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ def visit_showcase(self, node):
|
|||
self.body.append("<a href='" + notebook_file + "' title='" + link_title + "'>")
|
||||
self.body.append("<img " + (" class='" + (node["img-class"] + " showcase-img' ") if 'img-class' in node is not None else " class='showcase-img'"))
|
||||
self.body.append("src='" + node["img"] + "' alt='"+os.path.basename(node["img"]) + "' /></a></div>") if "img" in node is not None else ""
|
||||
|
||||
|
||||
self.body.append("<div class='showcase-content'><div class='showcase-content-container'>")
|
||||
|
||||
|
||||
|
|
@ -164,7 +164,7 @@ def depart_showcase(self, node):
|
|||
notebooks_colab = "https://colab.research.google.com/github/openvinotoolkit/openvino_notebooks/blob/main/"
|
||||
git_badge = "<img class='showcase-badge' src='https://badgen.net/badge/icon/github?icon=github&label' alt='Github'>"
|
||||
binder_badge = "<img class='showcase-badge' src='https://mybinder.org/badge_logo.svg' alt='Binder'>"
|
||||
colab_badge = "<img class='showcase-badge' src='https://camo.githubusercontent.com/84f0493939e0c4de4e6dbe113251b4bfb5353e57134ffd9fcab6b8714514d4d1/68747470733a2f2f636f6c61622e72657365617263682e676f6f676c652e636f6d2f6173736574732f636f6c61622d62616467652e737667' alt='Colab'>"
|
||||
colab_badge = "<img class='showcase-badge' src='https://colab.research.google.com/assets/colab-badge.svg' alt='Colab'>"
|
||||
binder_list_file = Path('../../../docs/notebooks/notebooks_with_binder_buttons.txt').resolve(strict=True)
|
||||
colab_list_file = Path('../../../docs/notebooks/notebooks_with_colab_buttons.txt').resolve(strict=True)
|
||||
openvino_notebooks_repo_listing = Path('../../../docs/notebooks/all_notebooks_paths.txt').resolve(strict=True)
|
||||
|
|
|
|||
Loading…
Reference in New Issue