ppc64le/linux/: sphinx-prompt-1.9.0+ppc64le1 metadata and description

Homepage Simple index

Sphinx directive to add unselectable prompt

author Stéphane Brunner
author_email [email protected]
classifiers
  • Development Status :: 5 - Production/Stable
  • Environment :: Plugins
  • Environment :: Web Environment
  • Framework :: Sphinx :: Extension
  • Intended Audience :: Developers
  • License :: OSI Approved :: BSD License
  • Operating System :: OS Independent
  • Programming Language :: Python
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.10
  • Programming Language :: Python :: 3.11
  • Programming Language :: Python :: 3.12
  • Topic :: Documentation
  • Topic :: Documentation :: Sphinx
  • Topic :: Software Development :: Documentation
  • Typing :: Typed
  • Environment :: MetaData :: IBM Python Ecosystem
description_content_type text/markdown
keywords sphinx,shell,prompt
license BSD-3-Clause
project_urls
  • Repository, https://github.com/sbrunner/sphinx-prompt
requires_dist
  • Sphinx (>=8.0.0,<9.0.0)
  • certifi
  • docutils
  • idna
  • pygments
  • urllib3
requires_python >=3.10
File Tox results History
sphinx_prompt-1.9.0+ppc64le1-py3-none-any.whl
Size
5 KB
Type
Python Wheel
Python
3

Sphinx Prompt

Initialize

In conf.py add extensions += ['sphinx_prompt'].

Syntax

A default prompt can be created using a prompt directive:

.. prompt::

   <statements>

The prompt can be further customized in one of two ways:

While these constructs generate the same output, the positional arguments cannot be used if you want to use a prompt that contains spaces. This is a limitation of reStructuredText.

Positional arguments can be mixed with options if they don't overlap (so if you pass prompts using options, you can only pass the language using positional arguments):

.. prompt:: bash
    :prompts: (cool_project) $

   python3 -m pip install --upgrade sphinx-prompt

Language

Supported language:

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.

Defaults to empty, except for the shell languages listed below:

Examples

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

Run tests and prospector

python3 -m pip install --user --upgrade poetry
poetry install
poetry run pytest
poetry run prospector

The code should be formatted with black add isort.

Create new release

git tag <version>
git push origin <version>

Contributing

Install the pre-commit hooks:

pip install pre-commit
pre-commit install --allow-missing-config

Export Classification Notice

The software hosted on this website consists of publicly available open‑source packages. To the extent U.S. export regulations apply, software that is publicly available as described in 15 C.F.R. §§ 734.7 (for non-encryption software) or 742.15(b) (for encryption software) is not subject to the Export Administration Regulations (EAR). Users are responsible for complying with all applicable export laws and regulations.