Skip to content

Commit

Permalink
Remove sphinx-prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
chdemko committed Aug 29, 2024
1 parent 8dcea72 commit 33650c9
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 98 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repos:
- id: teyit

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.0
rev: v0.6.3
hooks:
- id: ruff
language: system
Expand All @@ -61,7 +61,7 @@ repos:
files: \.(rst|md)$

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
rev: v1.11.2
hooks:
- id: mypy
language: system
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ comes pre-installed on linux and Mac OS X, and which is easily installed

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

~~~{prompt} bash
pipx install pandoc-codeblock-include
~~~shell-session
$ pipx install pandoc-codeblock-include
~~~

To upgrade to the most recent release, use

~~~{prompt} bash
pipx upgrade pandoc-codeblock-include
~~~shell-session
$ pipx upgrade pandoc-codeblock-include
~~~

`pipx` is a script to install and run python applications in isolated
Expand Down
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ["myst_parser", "sphinx_prompt", "sphinx_copybutton"]
extensions = ["myst_parser", "sphinx_copybutton"]

copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
copybutton_prompt_is_regexp = True
copybutton_line_continuation_character = "\\"

# Add any paths that contain templates here, relative to this directory.
templates_path = []
Expand Down
4 changes: 2 additions & 2 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Usage

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

~~~{prompt} bash
pandoc --filter pandoc-codeblock-include
~~~shell-session
$ pandoc --filter pandoc-codeblock-include
~~~

Explanation
Expand Down
Loading

0 comments on commit 33650c9

Please sign in to comment.