Skip to content

Commit

Permalink
docs: improved styling of demos
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 10, 2024
1 parent fdfc658 commit 018e6ff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ dl.py.attribute {
dl.py.attribute + dl.py.method {
margin-top: 3rem;
}

/* Remove "Recorded with asciinema" and remove margin to make it more compact */
.asciicast {
margin-bottom: 0 !important;
}

/* Doesn't work reliable, since size is variable */
.asciicast iframe {
height: 470px !important;
}
4 changes: 4 additions & 0 deletions docs/demos.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Generate a snake game that runs in the terminal using curses, and then modify it

.. asciinema:: 621992
:autoplay: true
:idle-time-limit: 1

Steps

Expand All @@ -33,6 +34,7 @@ Generate a program that renders mandelbrot with curses, and then modify it to ad

.. asciinema:: 621991
:autoplay: true
:idle-time-limit: 1

Steps

Expand All @@ -47,6 +49,7 @@ An old demo showing off basic code execution and shell interaction.

.. asciinema:: 606375
:autoplay: true
:idle-time-limit: 1

Steps

Expand All @@ -61,6 +64,7 @@ Showing off basic URL loading from the prompt, and answering questions based on

.. asciinema:: 621997
:autoplay: true
:idle-time-limit: 1

Steps

Expand Down

0 comments on commit 018e6ff

Please sign in to comment.