sphinx-prompt-1.9.0


توضیحات

Sphinx directive to add unselectable prompt
ویژگی مقدار
سیستم عامل OS Independent
نام فایل sphinx-prompt-1.9.0
نام sphinx-prompt
نسخه کتابخانه 1.9.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Stéphane Brunner
ایمیل نویسنده stephane.brunner@gmail.com
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/sphinx-prompt/
مجوز -
# Sphinx Prompt ## Initialize In `conf.py` add `extensions += ['sphinx_prompt']`. ## Syntax A default prompt can be created using a `prompt` directive: ```rst .. prompt:: <statements> ``` The prompt can be further customized in one of two ways: - Using positional arguments: ```rst .. prompt:: [<language> [<prompts> [<modifiers>]]] <statements> ``` - Using options: ```rst .. prompt:: :language: <language> :prompts: <prompts> :modifiers: <modifiers> <statements> ``` 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): ```rst .. prompt:: bash :prompts: (cool_project) $ python3 -m pip install --upgrade sphinx-prompt ``` ### Language Supported language: - `text` (no pigments, default) - `bash` - `batch` - `powershell` - `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. Defaults to empty, except for the shell languages listed below: - `bash` - `$` - `batch` - `C:\>` - `powershell` - `PS C:\>` ## Examples See: <http://sbrunner.github.io/sphinx-prompt/> ## Run tests and prospector ```bash 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 ```bash git tag <version> git push origin <version> ``` ## Contributing Install the pre-commit hooks: ```bash pip install pre-commit pre-commit install --allow-missing-config ```


نیازمندی

مقدار نام
- Sphinx
- certifi
- docutils
- idna
- jinja2
- pygments
- requests>=2.32.4
- urllib3


زبان مورد نیاز

مقدار نام
>=3.11 Python


نحوه نصب


نصب پکیج whl sphinx-prompt-1.9.0:

    pip install sphinx-prompt-1.9.0.whl


نصب پکیج tar.gz sphinx-prompt-1.9.0:

    pip install sphinx-prompt-1.9.0.tar.gz