Skip to content

Commit 33650c9

Browse files
committed
Remove sphinx-prompt
1 parent 8dcea72 commit 33650c9

File tree

6 files changed

+89
-98
lines changed

6 files changed

+89
-98
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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ comes pre-installed on linux and Mac OS X, and which is easily installed
3838

3939
Install *pandoc-codeblock-include* using the bash command
4040

41-
~~~{prompt} bash
42-
pipx install pandoc-codeblock-include
41+
~~~shell-session
42+
$ pipx install pandoc-codeblock-include
4343
~~~
4444

4545
To upgrade to the most recent release, use
4646

47-
~~~{prompt} bash
48-
pipx upgrade pandoc-codeblock-include
47+
~~~shell-session
48+
$ pipx upgrade pandoc-codeblock-include
4949
~~~
5050

5151
`pipx` is a script to install and run python applications in isolated

docs/conf.py

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

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

docs/usage.md

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

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

6-
~~~{prompt} bash
7-
pandoc --filter pandoc-codeblock-include
6+
~~~shell-session
7+
$ pandoc --filter pandoc-codeblock-include
88
~~~
99

1010
Explanation

0 commit comments

Comments
 (0)