Skip to content

Commit e2403ba

Browse files
committed
Use sphinx-prompt
1 parent 979a32b commit e2403ba

File tree

6 files changed

+291
-237
lines changed

6 files changed

+291
-237
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 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_codeblock_include/)
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_codeblock_include/, tests]
@@ -58,17 +58,17 @@ 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
64-
rev: v1.11.0
64+
rev: v1.11.1
6565
hooks:
6666
- id: mypy
6767
language: system
6868
exclude: ^(?!pandoc_codeblock_include/)
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: 14 additions & 24 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
#
@@ -46,7 +45,7 @@
4645
# Add any Sphinx extension module names here, as strings. They can be
4746
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4847
# ones.
49-
extensions = ["myst_parser"]
48+
extensions = ["myst_parser", "sphinx_prompt", "sphinx_copybutton"]
5049

5150
# Add any paths that contain templates here, relative to this directory.
5251
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-
~~~shell
7-
$ pandoc --filter pandoc-codeblock-include
6+
~~~{prompt} bash
7+
pandoc --filter pandoc-codeblock-include
88
~~~
99

1010
Explanation

0 commit comments

Comments
 (0)