Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit e63274e7 authored by Deepak Khatri's avatar Deepak Khatri :dog:
Browse files

Merge branch 'yt-contrib' into 'main'

Switch to sphinxcontrib-youtube

See merge request docs/docs.beagleboard.io!91
parents 424b6ec2 4c00c244
1 merge request!91Switch to sphinxcontrib-youtube
Pipeline #12307 passed with stages
in 26 minutes and 46 seconds
...@@ -15,25 +15,10 @@ What's included in the box? ...@@ -15,25 +15,10 @@ What's included in the box?
Image with what's inside the box and a better description. Image with what's inside the box and a better description.
.. only:: latex .. youtube:: bJYZ6PTiV9g
:align: center
.. image:: https://img.youtube.com/vi/bJYZ6PTiV9g/maxresdefault.jpg :width: 1280
:alt: BeagleConnect unboxing YouTube video :height: 720
:width: 1280
:target: https://www.youtube.com/watch?v=bJYZ6PTiV9g
.. only:: html
.. raw:: html
<iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
src="https://www.youtube.com/embed/bJYZ6PTiV9g"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen>
</iframe>
Attaching antenna Attaching antenna
****************** ******************
......
...@@ -24,24 +24,10 @@ Attaching antennas ...@@ -24,24 +24,10 @@ Attaching antennas
You can watch this video to see how to attach the attennas. You can watch this video to see how to attach the attennas.
.. only:: latex .. youtube:: 8zeIVd-JRc0
:width: 1280
.. image:: images/attach-antennas.* :height: 720
:alt: YouTube video of BeaglePlay antenna connection :align: center
:width: 1280
:target: https://youtu.be/8zeIVd-JRc0
.. only:: html
.. raw:: html
<iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
src="https://www.youtube.com/embed/8zeIVd-JRc0"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen>
</iframe>
Tethering to PC Tethering to PC
**************** ****************
......
...@@ -21,25 +21,10 @@ When you purchase a brand new BeagleV Ahead, In the box you'll get: ...@@ -21,25 +21,10 @@ When you purchase a brand new BeagleV Ahead, In the box you'll get:
Unboxing Unboxing
********* *********
.. only:: latex .. youtube:: SVC9peUUzE0
:width: 1280
.. image:: https://img.youtube.com/vi/SVC9peUUzE0/maxresdefault.jpg :height: 720
:alt: BeagleV Ahead Unboxing YouTube video :align: center
:width: 1280
:target: https://www.youtube.com/watch?v=SVC9peUUzE0
.. only:: html
.. raw:: html
<iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
src="https://www.youtube.com/embed/SVC9peUUzE0"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen>
</iframe>
Antenna guide Antenna guide
************* *************
......
...@@ -13,24 +13,10 @@ When you purchase a brand new BeagleV-Fire, In the box you'll get: ...@@ -13,24 +13,10 @@ When you purchase a brand new BeagleV-Fire, In the box you'll get:
Unboxing Unboxing
********* *********
.. only:: latex .. youtube:: 5cylv1R-1mc
:align: center
.. image:: https://img.youtube.com/vi/5cylv1R-1mc/maxresdefault.jpg :width: 1280
:alt: BeagleV Ahead Unboxing YouTube video :height: 720
:width: 1280
:target: https://www.youtube.com/watch?v=5cylv1R-1mc
.. only:: html
.. raw:: html
<iframe style="display: block; margin: auto;" width="1280" height="720" style="align:center"
src="https://www.youtube.com/embed/5cylv1R-1mc"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen>
</iframe>
Tethering to PC Tethering to PC
......
...@@ -45,6 +45,7 @@ extensions = [ ...@@ -45,6 +45,7 @@ extensions = [
"sphinx_tabs.tabs", "sphinx_tabs.tabs",
"breathe", "breathe",
"sphinx_copybutton", "sphinx_copybutton",
"sphinxcontrib.youtube",
] ]
# "exhale" # "exhale"
......
...@@ -314,33 +314,11 @@ When rendered it becomes :ref:`rst-cheat-sheet`. ...@@ -314,33 +314,11 @@ When rendered it becomes :ref:`rst-cheat-sheet`.
YouTube Videos YouTube Videos
============== ==============
This section shows you the typical way of adding a YouTube video to This site uses sphinxcontrib-youtube to embed YouTube videos. The syntax is as follows:
docs.BeagleBoard.org in a way that you see on page playable embedded
YouTube video when you look at HTML version of the docs and only a
clicable thumnail linked to the YouTube video when you see the PDF.
.. callout:: .. callout::
.. code-block:: rst .. youtube:: <YouTube_video_ID>
.. only:: latex
.. image:: https://img.youtube.com/vi/<YouTube_video_ID>/maxresdefault.jpg <1>
:alt: BeagleConnect unboxing YouTube video
:width: 1280
:target: https://www.youtube.com/watch?v=<YouTube_video_ID> <2>
.. 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>" <3>
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen>
</iframe>
.. annotations:: .. annotations::
......
...@@ -34,5 +34,6 @@ sphinxcontrib-jsmath==1.0.1 ...@@ -34,5 +34,6 @@ sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.6 sphinxcontrib-qthelp==1.0.6
sphinxcontrib-serializinghtml==1.1.9 sphinxcontrib-serializinghtml==1.1.9
sphinxcontrib-svg2pdfconverter==1.2.2 sphinxcontrib-svg2pdfconverter==1.2.2
sphinxcontrib-youtube==1.4.1
tornado==6.4 tornado==6.4
urllib3==2.1.0 urllib3==2.1.0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment