If you're upgrading from v2 to v3 and want to preserve the sizingÄ«ehaviour then include fit: false option. Version 2.x of the player supported only the behaviour represented by theįalse value. false / "none" - don't scale, use fixed size font (also see fontSize option below)."both" - scale to either full width or height, maximizing usage of available space (requires the container element to have fixed height)."height" - scale to full height of the container (requires the container element to have fixed height).One of: 'asciinema' 'monokai' 'tango' 'solarized-dark' 'solarized-light' Defaults to 'asciinema'. ![]() getElementById ( 'demo' ), ) Äefaults to blank terminal or, when startAt is specified, to screen contentsĬontrols the player's fitting (sizing) behaviour inside its container element. Embedding: Asciinema provides an option to embed recordings on websites or in documentation. This allows users to easily showcase their work or problem-solving skills, especially in technical discussions or support forums. Then add necessary includes to your HTML document and initialize the playerĪsciinemaPlayer. Sharing: Once a session is recorded, asciinema generates a unique URL that can be shared with others. ![]() The HTML snippet below assumes they're in Comes with full asciinema player settings support, typings. Only need and asciinema-player.css files.įirst, add, asciinema-player.cssand the. Quickly display npm related commands for multiple package managers in your Starlight documentation. Use the standalone player bundle in your HTML pageÄownload latest version of the player bundle from
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |