A lightweight and modern animated terminal window
Project description
Termynal
A lightweight and modern animated terminal window. Built for mkdocs and zensical.
Installation
Usage
Use <!-- termynal --> before code block
<!-- termynal -->
```
$ python script.py
```
Mkdocs integration
Declare the plugin:
...
plugins:
- termynal
...
Optionally, pass options to the processor:
[...]
plugins:
- termynal:
prompt_literal_start:
- "$"
- ">"
[...]
If you do not want to copy termynal.css and termynal.js as static files,
you can embed them directly in generated HTML:
[...]
plugins:
- termynal:
include_assets: true
[...]
This config allows you to use another prompt:
<!-- termynal -->
```
> pip install termynal
---> 100%
Installed
```
Zensical integration
zensical does not support arbitrary MkDocs plugins yet, but it supports Python Markdown extensions.
Use termynal as a markdown extension and enable inline assets:
[project.markdown_extensions.termynal]
include_assets = true
title = "bash"
buttons = "macos"
prompt_literal_start = ["$"]
You can override default assets with your own files:
[project.markdown_extensions.termynal]
include_assets = true
assets_override_css = "docs/stylesheets/termynal.css"
assets_override_js = "docs/javascripts/termynal.js"
For Zensical-style asset management, keep include_assets = false and register
assets explicitly:
[project]
extra_css = ["stylesheets/termynal.css"]
extra_javascript = ["javascripts/termynal.js"]
[project.markdown_extensions.termynal]
include_assets = false
Credits
Thanks ines
Contribution
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file termynal-0.14.0.tar.gz.
File metadata
- Download URL: termynal-0.14.0.tar.gz
- Upload date:
- Size: 178.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2918a1a6cf468497fbb3a72dc3726743988829eef1136d0c78a81df70ec869f6
|
|
| MD5 |
0866d0c52964429509720277283cc8ce
|
|
| BLAKE2b-256 |
268cea13868e6008ed964837db011648e3e7766e0ecfa1b42d7b9a4cf0c228e2
|
File details
Details for the file termynal-0.14.0-py3-none-any.whl.
File metadata
- Download URL: termynal-0.14.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5147545e29256d35148251f5c2d3d23dec1d2fb0b4ba464ff330a7de8b56fc6
|
|
| MD5 |
b95c2876409bb8a53f028bce4bb4db5e
|
|
| BLAKE2b-256 |
c38fc089f7c9f9fc1da25e6271386e5df84e1f6e0b04d2f0b408939b51b2876f
|