Skip to content

Commit c01f657

Browse files
committed
Remove sphinx-prompt
1 parent 0408758 commit c01f657

File tree

6 files changed

+91
-100
lines changed

6 files changed

+91
-100
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ repos:
4242
- id: teyit
4343

4444
- repo: https://github.com/astral-sh/ruff-pre-commit
45-
rev: v0.6.0
45+
rev: v0.6.3
4646
hooks:
4747
- id: ruff
4848
language: system
@@ -61,7 +61,7 @@ repos:
6161
files: \.(rst|md)$
6262

6363
- repo: https://github.com/pre-commit/mirrors-mypy
64-
rev: v1.11.1
64+
rev: v1.11.2
6565
hooks:
6666
- id: mypy
6767
language: system

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ comes pre-installed on linux and Mac OS X, and which is easily installed
4242

4343
Install *pandoc-latex-admonition* using the bash command
4444

45-
~~~{prompt} bash
46-
pipx install pandoc-latex-admonition
45+
~~~shell-session
46+
$ pipx install pandoc-latex-admonition
4747
~~~
4848

4949
To upgrade to the most recent release, use
5050

51-
~~~{prompt} bash
52-
pipx upgrade pandoc-latex-admonition
51+
~~~shell-session
52+
$ pipx upgrade pandoc-latex-admonition
5353
~~~
5454

5555
`pipx` is a script to install and run python applications in isolated environments from the Python Package Index, [PyPI]. It can be installed using instructions given [here](https://pipx.pypa.io/stable/).
@@ -65,8 +65,8 @@ LaTeX packages. On linux you have to install some extra libraries **before**
6565
*pandoc-latex-admonition*. On a Debian-based system (including Ubuntu),
6666
you can install it as root using
6767

68-
~~~{prompt} bash
69-
sudo apt-get install texlive-latex-extra
68+
~~~shell-session
69+
$ sudo apt-get install texlive-latex-extra
7070
~~~
7171

7272
[python]: https://www.python.org

docs/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@
4343
# Add any Sphinx extension module names here, as strings. They can be
4444
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4545
# ones.
46-
extensions = ["myst_parser", "sphinx_prompt", "sphinx_copybutton"]
46+
extensions = ["myst_parser", "sphinx_copybutton"]
47+
48+
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
49+
copybutton_prompt_is_regexp = True
50+
copybutton_line_continuation_character = "\\"
4751

4852
# Add any paths that contain templates here, relative to this directory.
4953
templates_path = []

docs/usage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Usage
33

44
To apply the filter, use the following option with pandoc:
55

6-
.. prompt:: bash
6+
.. code-block:: shell-session
77
8-
pandoc --filter pandoc-latex-admonition
8+
$ pandoc --filter pandoc-latex-admonition
99
1010
Explanation
1111
-----------

0 commit comments

Comments
 (0)