Skip to main content

sphinx-youtube-links

sphinx-youtube-links adds a Sphinx directive that creates styled YouTube video links with automatic title extraction.

Basic usage

To add a YouTube link to your document, use the youtube directive with the desired YouTube URL:

.. youtube:: https://www.youtube.com/watch?v=dQw4w9WgXcQ

You can also specify a custom title:

.. youtube:: https://www.youtube.com/watch?v=dQw4w9WgXcQ
   :title: Custom Video Title

Project setup

sphinx-youtube-links is published on PyPI and can be installed with:

pip install sphinx-youtube-links

After adding sphinx-youtube-links to your Python project, update your Sphinx's conf.py file to include sphinx-youtube-links as one of its extensions:

extensions = [
    "sphinx_youtube_links"
]

Community and support

You can report any issues or bugs on the project's GitHub repository.

youtube-links is covered by the Ubuntu Code of Conduct.

License and copyright

youtube-links is released under the GPL-3.0 license.

© 2025 Canonical Ltd.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinx_youtube_links-0.1.0.tar.gz (112.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_youtube_links-0.1.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page