Skip to main content

No project description provided

Project description

Sphinx directive to add unselectable prompt

Home-page: http://github.com/sbrunner/sphinx-prompt
Author: Stéphane Brunner
Author-email: stephane.brunner@camptocamp.com
License: BSD
Description: Sphinx Prompt
=============

.. contents:: Table of contents

Initialise
----------

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

Syntax
------

.. code::

.. 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
--------

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

Build
-----

.. code::

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

Keywords: gis tilecloud chain
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python

Project details


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.1.0.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_prompt-1.1.0-py2-none-any.whl (4.5 kB view details)

Uploaded Python 2

File details

Details for the file sphinx-prompt-1.1.0.tar.gz.

File metadata

  • Download URL: sphinx-prompt-1.1.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.12

File hashes

Hashes for sphinx-prompt-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3d9cf382b750291f73d1f6f1713c4af0557c30208af124cd3d8731e607a4febf
MD5 b7cf0ee98a7951f9c3a0e3e4b5e4ae61
BLAKE2b-256 161e0dd94829b97676b7d7cdf2f0e86cb169d6f2ffb56590427833d281370116

See more details on using hashes here.

File details

Details for the file sphinx_prompt-1.1.0-py2-none-any.whl.

File metadata

  • Download URL: sphinx_prompt-1.1.0-py2-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.12

File hashes

Hashes for sphinx_prompt-1.1.0-py2-none-any.whl
Algorithm Hash digest
SHA256 8d2ef964527884dbfca17c41332ec06c8f069564b4bbec27578f021c65994e9a
MD5 edd85226a59e7c0ad3be714bd53da492
BLAKE2b-256 f857f031af89d9e8234efbb54b83f19415c0d5f962e2a63cab6060870e79f091

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page