Skip to main content

A directive to embed youtube videos in reStructuredText documents

Project description

rstyoutube is a package for embedding youtube videos in reStructuredText documents.

The code lives at http://bitbucket.org/cliff/rstyoutube. Bug reports, feature requests, and contributions are all welcome. If you find the code useful, hop on bitbucket and send me a quick message letting me know.

To use with pelican or another docutils-based system, add the following to your pelican configuration file:

import rstyoutube
rstyoutube.setup_docutils()

To use rstyoutube in standalone rst files, you can use the included rst2html+youtube.py script, which should get installed onto your PATH.

In your reST document, include a youtube directive with the video’s id as the sole argument as follows:

This is my document

.. youtube:: 5blbv4WFriM

Hope you enjoyed the video.

That’s all it takes.

Changelog

0.1.0 – 2011/10/27

Initial release

To Do

  • Add options to allow people to customize their videos.

Project details


Download files

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

Source Distribution

rstyoutube-0.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page