Skip to content

Commit e7a835c

Browse files
committed
Use sphinx-prompt
1 parent 685559e commit e7a835c

File tree

6 files changed

+263
-209
lines changed

6 files changed

+263
-209
lines changed

.pre-commit-config.yaml

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

4444
- repo: https://github.com/astral-sh/ruff-pre-commit
45-
rev: v0.5.5
45+
rev: v0.5.7
4646
hooks:
4747
- id: ruff
4848
language: system
4949
exclude: ^(?!pandoc_latex_admonition/)
5050

5151
- repo: https://github.com/psf/black
52-
rev: 24.4.2
52+
rev: 24.8.0
5353
hooks:
5454
- id: black-jupyter
5555
args: [--config=pyproject.toml, pandoc_latex_admonition/, tests]
@@ -58,7 +58,7 @@ repos:
5858
rev: v1.1.1
5959
hooks:
6060
- id: doc8
61-
args: [docs, README.md, -e, .rst, -e, .md]
61+
files: \.(rst|md)$
6262

6363
- repo: https://github.com/pre-commit/mirrors-mypy
6464
rev: v1.11.1
@@ -68,7 +68,7 @@ repos:
6868
exclude: ^(?!pandoc_latex_admonition/)
6969

7070
- repo: https://github.com/pycqa/flake8
71-
rev: 7.1.0
71+
rev: 7.1.1
7272
hooks:
7373
- id: flake8
7474
language: system

README.md

Lines changed: 16 additions & 26 deletions
Large diffs are not rendered by default.

docs/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# Configuration file for the Sphinx documentation builder.
43
#
@@ -44,7 +43,7 @@
4443
# Add any Sphinx extension module names here, as strings. They can be
4544
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4645
# ones.
47-
extensions = ["myst_parser"]
46+
extensions = ["myst_parser", "sphinx_prompt", "sphinx_copybutton"]
4847

4948
# Add any paths that contain templates here, relative to this directory.
5049
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-
.. code-block:: shell
6+
.. prompt:: bash
77

8-
$ pandoc --filter pandoc-latex-admonition
8+
pandoc --filter pandoc-latex-admonition
99

1010
Explanation
1111
-----------

0 commit comments

Comments
 (0)