From 54287b357057c1dab17194a5a92fb54b2fe532d8 Mon Sep 17 00:00:00 2001
From: Dhruv Menon <dhruvmenon1104@gmail.com>
Date: Tue, 30 Jan 2024 17:48:13 +0530
Subject: [PATCH] fix-embed

---
 Past-Contrib/2020.rst |  38 --------------
 Past-Contrib/2021.rst | 114 ------------------------------------------
 Past-Contrib/2022.rst | 114 ------------------------------------------
 conf.py               |   4 +-
 4 files changed, 2 insertions(+), 268 deletions(-)

diff --git a/Past-Contrib/2020.rst b/Past-Contrib/2020.rst
index 2d4f5c7..7d8181f 100644
--- a/Past-Contrib/2020.rst
+++ b/Past-Contrib/2020.rst
@@ -20,25 +20,6 @@ PRU Improvements
 Cape Compatibility layer for BeagleBone Black and BeagleBone AI
 *****************************************************************
 
-.. only:: latex
-
-    .. image:: https://img.youtube.com/vi/<YouTube_video_ID>/maxresdefault.jpg 
-        :alt: Intro: Cape Compatibility layer for BeagleBone Black and BeagleBone AI BeagleBoard.org
-        :width: 1280
-        :target: https://www.youtube.com/watch?v=<YouTube_video_ID> 
-
-.. only:: html
-
-    .. raw:: html
-
-        <iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
-        src="https://www.youtube.com/embed/<YouTube_video_ID>" 
-        title="YouTube video player"
-        frameborder="0"
-        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
-        allowfullscreen>
-    </iframe>
-
 .. youtube:: jP9fwOxp4Bc
    :width: 1280
    :height: 720
@@ -53,25 +34,6 @@ Cape Compatibility layer for BeagleBone Black and BeagleBone AI
 Parallel Bidirectional Bus for Beaglebone PRU
 **********************************************
 
-.. only:: latex
-
-    .. image:: https://img.youtube.com/vi/<YouTube_video_ID>/maxresdefault.jpg 
-        :alt: GSOC2020: Introductory Video: Parallel Bidirectional Bus for Beaglebone PRU
-        :width: 1280
-        :target: https://www.youtube.com/watch?v=<YouTube_video_ID> 
-
-.. only:: html
-
-    .. raw:: html
-
-        <iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
-        src="https://www.youtube.com/embed/<YouTube_video_ID>" 
-        title="YouTube video player"
-        frameborder="0"
-        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
-        allowfullscreen>
-    </iframe>
-
 .. youtube:: cKxx8r4FRqY
    :width: 1280
    :height: 720
diff --git a/Past-Contrib/2021.rst b/Past-Contrib/2021.rst
index 41b42c0..a6547c3 100644
--- a/Past-Contrib/2021.rst
+++ b/Past-Contrib/2021.rst
@@ -6,25 +6,6 @@ GSoC Contribution for 2021
 Improvements to simpPRU
 ************************
 
-.. only:: latex
-
-    .. image:: https://img.youtube.com/vi/-zZ57sqQPSY/maxresdefault.jpg 
-        :alt: Improvements to simpPRU BeagleBoard.org
-        :width: 1280
-        :target: https://www.youtube.com/watch?v=-zZ57sqQPSY 
-
-.. only:: html
-
-    .. raw:: html
-
-        <iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
-        src="https://www.youtube.com/embed/-zZ57sqQPSY" 
-        title="YouTube video player"
-        frameborder="0"
-        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
-        allowfullscreen>
-    </iframe>
-
 .. youtube:: -zZ57sqQPSY
    :width: 1280
    :height: 720
@@ -39,25 +20,6 @@ Improvements to simpPRU
 MicroPython for BeagleConnect Freedom
 **************************************
 
-.. only:: latex
-
-    .. image:: https://img.youtube.com/vi/x1hBazDr2Bk/maxresdefault.jpg 
-        :alt: MicroPython for BeagleConnect Freedom BeagleBoard.org
-        :width: 1280
-        :target: https://www.youtube.com/watch?v=x1hBazDr2Bk 
-
-.. only:: html
-
-    .. raw:: html
-
-        <iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
-        src="https://www.youtube.com/embed/x1hBazDr2Bk" 
-        title="YouTube video player"
-        frameborder="0"
-        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
-        allowfullscreen>
-    </iframe>
-
 .. youtube:: x1hBazDr2Bk
    :width: 1280
    :height: 720
@@ -72,25 +34,6 @@ MicroPython for BeagleConnect Freedom
 Beagle-Config
 **************
 
-.. only:: latex
-
-    .. image:: https://img.youtube.com/vi/vFUWCzqE6xI/maxresdefault.jpg 
-        :alt: Beagle-Config BeagleBoard.org
-        :width: 1280
-        :target: https://www.youtube.com/watch?v=vFUWCzqE6xI 
-
-.. only:: html
-
-    .. raw:: html
-
-        <iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
-        src="https://www.youtube.com/embed/vFUWCzqE6xI" 
-        title="YouTube video player"
-        frameborder="0"
-        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
-        allowfullscreen>
-    </iframe>
-
 .. youtube:: vFUWCzqE6xI
    :width: 1280
    :height: 720
@@ -105,25 +48,6 @@ Beagle-Config
 BeagleWire Software
 ********************
 
-.. only:: latex
-
-    .. image:: https://img.youtube.com/vi/X3gu4sAZo0I/maxresdefault.jpg 
-        :alt: Intro: BeagleWire Software BeagleBoard.org
-        :width: 1280
-        :target: https://www.youtube.com/watch?v=X3gu4sAZo0I 
-
-.. only:: html
-
-    .. raw:: html
-
-        <iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
-        src="https://www.youtube.com/embed/X3gu4sAZo0I" 
-        title="YouTube video player"
-        frameborder="0"
-        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
-        allowfullscreen>
-    </iframe>
-
 .. youtube:: X3gu4sAZo0I
    :width: 1280
    :height: 720
@@ -138,25 +62,6 @@ BeagleWire Software
 GPGPU with GLES
 ****************
 
-.. only:: latex
-
-    .. image:: https://img.youtube.com/vi/I5FnOTc8OP8/maxresdefault.jpg 
-        :alt: GPGPU with GLES: Intro Beagleboard.com
-        :width: 1280
-        :target: https://www.youtube.com/watch?v=I5FnOTc8OP8 
-
-.. only:: html
-
-    .. raw:: html
-
-        <iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
-        src="https://www.youtube.com/embed/I5FnOTc8OP8" 
-        title="YouTube video player"
-        frameborder="0"
-        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
-        allowfullscreen>
-    </iframe>
-
 .. youtube:: I5FnOTc8OP8
    :width: 1280
    :height: 720
@@ -171,25 +76,6 @@ GPGPU with GLES
 Bela Support for the BeagleBone AI
 ***********************************
 
-.. only:: latex
-
-    .. image:: https://img.youtube.com/vi/kLXCrlQwXeI/maxresdefault.jpg 
-        :alt: Intro: Bela Support for the BeagleBone AI BeagleBoard.org
-        :width: 1280
-        :target: https://www.youtube.com/watch?v=kLXCrlQwXeI 
-
-.. only:: html
-
-    .. raw:: html
-
-        <iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
-        src="https://www.youtube.com/embed/kLXCrlQwXeI" 
-        title="YouTube video player"
-        frameborder="0"
-        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
-        allowfullscreen>
-    </iframe>
-
 .. youtube:: kLXCrlQwXeI
    :width: 1280
    :height: 720
diff --git a/Past-Contrib/2022.rst b/Past-Contrib/2022.rst
index d8eb1e3..44612c7 100644
--- a/Past-Contrib/2022.rst
+++ b/Past-Contrib/2022.rst
@@ -6,25 +6,6 @@ GSoC Contribution for 2022
 Adding features to simpPRU
 ***************************
 
-.. only:: latex
-
-    .. image:: https://img.youtube.com/vi/a_C_wTEzJJo/maxresdefault.jpg 
-        :alt: Adding features to simpPRU (GSoC 2022 BeagleBoard.org)
-        :width: 1280
-        :target: https://www.youtube.com/watch?v=a_C_wTEzJJo 
-
-.. only:: html
-
-    .. raw:: html
-
-        <iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
-        src="https://www.youtube.com/embed/a_C_wTEzJJo" 
-        title="YouTube video player"
-        frameborder="0"
-        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
-        allowfullscreen>
-    </iframe>
-
 .. youtube:: a_C_wTEzJJo
    :width: 1280
    :height: 720
@@ -39,25 +20,6 @@ Adding features to simpPRU
 Introduction to Greybus for Zephyr
 ***********************************
 
-.. only:: latex
-
-    .. image:: https://img.youtube.com/vi/GN82Yiq_kRg/maxresdefault.jpg 
-        :alt: Introduction to Greybus for Zephyr | GSoC22@BeagleBoard.org
-        :width: 1280
-        :target: https://www.youtube.com/watch?v=GN82Yiq_kRg 
-
-.. only:: html
-
-    .. raw:: html
-
-        <iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
-        src="https://www.youtube.com/embed/GN82Yiq_kRg" 
-        title="YouTube video player"
-        frameborder="0"
-        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
-        allowfullscreen>
-    </iframe>
-
 .. youtube:: GN82Yiq_kRg
    :width: 1280
    :height: 720
@@ -72,25 +34,6 @@ Introduction to Greybus for Zephyr
 Deep Learning for Bela
 ***********************
 
-.. only:: latex
-
-    .. image:: https://img.youtube.com/vi/AHaTD0bTIpU/maxresdefault.jpg 
-        :alt: Ezra Pierce - Deep Learning for Bela - Workshop on Embedded AI for NIME - NIME 2022
-        :width: 1280
-        :target: https://www.youtube.com/watch?v=AHaTD0bTIpU 
-
-.. only:: html
-
-    .. raw:: html
-
-        <iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
-        src="https://www.youtube.com/embed/AHaTD0bTIpU" 
-        title="YouTube video player"
-        frameborder="0"
-        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
-        allowfullscreen>
-    </iframe>
-
 .. youtube:: AHaTD0bTIpU
    :width: 1280
    :height: 720
@@ -105,25 +48,6 @@ Deep Learning for Bela
 BeagleBoard Cape Compability Layer
 ***********************************
 
-.. only:: latex
-
-    .. image:: https://img.youtube.com/vi/kVL0rDWA-sY/maxresdefault.jpg 
-        :alt: GSoC 2022: BeagleBoard Cape Compability Layer
-        :width: 1280
-        :target: https://www.youtube.com/watch?v=kVL0rDWA-sY
-
-.. only:: html
-
-    .. raw:: html
-
-        <iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
-        src="https://www.youtube.com/embed/kVL0rDWA-sY" 
-        title="YouTube video player"
-        frameborder="0"
-        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
-        allowfullscreen>
-    </iframe>
-
 .. youtube:: kVL0rDWA-sY
    :width: 1280
    :height: 720
@@ -139,25 +63,6 @@ BeagleBoard Cape Compability Layer
 Bb-Config Improvements and GPIO Benchmark
 ******************************************
 
-.. only:: latex
-
-    .. image:: https://img.youtube.com/vi/V_Euk5uWY1o/maxresdefault.jpg 
-        :alt: [GSOC22] Bb-Config Improvements and GPIO Benchmark
-        :width: 1280
-        :target: https://www.youtube.com/watch?v=V_Euk5uWY1o 
-
-.. only:: html
-
-    .. raw:: html
-
-        <iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
-        src="https://www.youtube.com/embed/V_Euk5uWY1o" 
-        title="YouTube video player"
-        frameborder="0"
-        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
-        allowfullscreen>
-    </iframe>    
-
 .. youtube:: V_Euk5uWY1o
    :width: 1280
    :height: 720
@@ -172,25 +77,6 @@ Bb-Config Improvements and GPIO Benchmark
 Building Bela Images Project
 *****************************
 
-.. only:: latex
-
-    .. image:: https://img.youtube.com/vi/JESc32I59TQ/maxresdefault.jpg 
-        :alt: Introductory Video - Building Bela Images Project | GSoC'22 BeagleBoard.org
-        :width: 1280
-        :target: https://www.youtube.com/watch?v=JESc32I59TQ 
-
-.. only:: html
-
-    .. raw:: html
-
-        <iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
-        src="https://www.youtube.com/embed/JESc32I59TQ" 
-        title="YouTube video player"
-        frameborder="0"
-        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
-        allowfullscreen>
-    </iframe>
-
 .. youtube:: JESc32I59TQ
    :width: 1280
    :height: 720
diff --git a/conf.py b/conf.py
index c56bf7f..a54b64d 100644
--- a/conf.py
+++ b/conf.py
@@ -24,7 +24,7 @@ author = 'BeagleBoard.org'
 # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
 
 extensions = [
-    "sphinx_design",
+    "sphinx_design" ,"sphinxcontrib.youtube" ,
 ]
 
 templates_path = ['_templates']
@@ -122,4 +122,4 @@ html_context = {
     "pages_url": pages_url,
     "pages_slug": pages_slug,
     "docs_url": docs_url,
-}
\ No newline at end of file
+}
-- 
GitLab