Based on https://github.com/edwardtheharris/sphinxcontrib.youtube, https://github.com/divi255/sphinxcontrib.youtube/, and the original https://github.com/shomah4a/sphinxcontrib.youtube.
Install:
pip install enginehub.sphinx_youtubeUsage:
First of all, add enginehub.sphinx_youtube to sphinx extension list in conf.py:
extensions = ['enginehub.sphinx_youtube']then use youtube directive.
You can specify video by video url or video id:
.. youtube:: https://www.youtube.com/watch?v=Ql9sn3aLLlI
.. youtube:: Ql9sn3aLLlI