ericholscher / sphinx-prompt

Sphinx directive to add unselectable prompt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sphinx Prompt

In conf.py add extensions += ['sphinx-prompt'].

.. prompt:: [<language> [<prompts> [<modifier>]]]

   <statements>

Supported language:

  • text (no pigments, default)
  • bash
  • python
  • scala

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.

See: http://sbrunner.github.io/sphinx-prompt/

python bootstrap.py --distribute -v 1.7.1
./buildout/bin/buildout

About

Sphinx directive to add unselectable prompt

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%