embedding asciinema videos in Sphinx docs
Project description
sphinxcontrib-asciinema
Easily embed asciinema videos into Sphinx rst docs.
Installation
Clone and cd into this repository, then:
pip install .
Usage
Append extension to sphinx conf.py
:
extensions = ['sphinxcontrib.asciinema']
Insert videos into .rst
docs by embedding them from asciinema.org:
.. asciinema:: 261648
or for a local file with a self-hosted web player:
.. asciinema:: local_file.cast
It is possible to give options as well:
.. asciinema:: local_file.cast
:preload: 1
:theme: solarized-dark
You can enter all options from the self-hosted player and the embedded asciinema.org player.
Default options can be set in conf.py
:
sphinxcontrib_asciinema_defaults = {
'theme': 'solarized-dark',
'preload': 1,
'font-size': '15px'
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sphinxcontrib.asciinema-0.1.6.tar.gz
(157.6 kB
view hashes)
Close
Hashes for sphinxcontrib.asciinema-0.1.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b1caf636cb497efbfc4c62a2fa01d1d2642d598ac286819503a1f8e3491ed97 |
|
MD5 | 3a7ad9e14374e7e3e09c890aeac7233a |
|
BLAKE2b-256 | 43cdc1da56cde2e2d5046929a92fb8a1aeeaf04c6be306deedf97582143a8b3a |