Skip to content

Commit

Permalink
Fix images for notebooks (openvinotoolkit#22116)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgolebiewski-intel authored Jan 12, 2024
1 parent 2a2e689 commit c8a1a70
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/articles_en/learn_openvino/tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions docs/nbdoc/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
.. |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
Expand All @@ -76,7 +76,7 @@
.. |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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'>")


Expand All @@ -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&amp;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)
Expand Down

0 comments on commit c8a1a70

Please sign in to comment.