divi255 / sphinxcontrib.asciinema

Easily embed asciinema videos into Sphinx documentation
MIT License
17 stars 11 forks source link

Settings will be the same for all asciinema-player in generated pages #5

Closed MrGreenTea closed 3 years ago

MrGreenTea commented 3 years ago

I want to include two casts in my document. It looks something like this:

.. asciinema:: first.cast
   :poster: npt:0:03
   :cols: 80
   :rows: 10
   :title: first example

.. asciinema:: second.cast
   :cols: 80
   :rows: 20
   :poster: npt:0:04
   :title: second example

In the html they will both be identical with the only difference being the reference cast file:

<asciinema-player 
    poster="npt:0:04" 
    cols="80" 
    rows="20" 
    title="second example" 
    src="_casts/XXX/first.cast"
/>
<asciinema-player 
    poster="npt:0:04" 
    cols="80" 
    rows="20" 
    title="second example" 
    src="_casts/YYY/second.cast" 
/>
divi255 commented 3 years ago

thanks for the pull requests, uploaded 0.1.10