Sphinx directive to add unselectable prompt
Project description
Initialise
In conf.py add extensions += ['sphinx-prompt'].
Syntax
.. prompt:: [<language> [<prompts> [<modifier>]]]
<statements>
Language
Supported language:
text (no pigments, default)
bash
python
scala
Prompt(s)
If modifier is auto, a comma-separated list of prompts to find in the statements.
Else the prompt to add on each statements, for Python and Bash language the end \ is supported.
Default to empty, $ for bash language.
Examples
Build
python bootstrap.py --distribute -v 1.7.1
./buildout/bin/buildout
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
sphinx-prompt-1.0.0.tar.gz
(3.2 kB
view details)
File details
Details for the file sphinx-prompt-1.0.0.tar.gz.
File metadata
- Download URL: sphinx-prompt-1.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c0e868b97f021a8e22fc5999f49fb1f545aa156c341f2b686f8eea3d128420c
|
|
| MD5 |
ab7844a8d9338528e85a0b1f6ecf565d
|
|
| BLAKE2b-256 |
ddd102400fd67ab1fdd398f81a79f7cbf87ede8b2ae2b378e94b97b640b3d67e
|