docs: Update recording example with new asciinema player config

This commit is contained in:
Paul Gauthier 2025-03-13 17:30:05 -07:00 committed by Paul Gauthier (aider)
parent a718a05414
commit e0d5d35e32

View file

@ -1,17 +1,26 @@
---
parent: Example chat transcripts
nav_order: 9999
layout: minimal
---
# Recording
<link rel="stylesheet" type="text/css" href="/assets/asciinema-player.css" />
<link rel="stylesheet" type="text/css" href="/assets/asciinema/asciinema-player.css" />
<div id="demo" style="width: 100%;"></div>
<script src="/assets/asciinema-player.min.js"></script>
<div id="demo"></div>
<script src="/assets/asciinema/asciinema-player.min.js"></script>
<script>
AsciinemaPlayer.create('https://gist.githubusercontent.com/paul-gauthier/9a11ec0923663204e280530d5bbd8df4/raw/2985f05edcf8b9f6f1d40f323aa46a44afebe6a4/tmp.redacted2.cast', document.getElementById('demo'));
url = "https://gist.githubusercontent.com/paul-gauthier/3011ab9455c2d28c0e5a60947202752f/raw/5a5b3dbf68a9c2b22b4954af287efedecdf79d52/tmp.redacted.cast";
AsciinemaPlayer.create(
url,
document.getElementById('demo'),
{
speed: 1.25,
idleTimeLimit: 1,
}
);
</script>