Skip to content

Commit

Permalink
Use sphinx-prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
chdemko committed Aug 14, 2024
1 parent e08d144 commit 5131802
Show file tree
Hide file tree
Showing 6 changed files with 326 additions and 271 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ repos:
- id: teyit

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.4
rev: v0.5.7
hooks:
- id: ruff
language: system
exclude: ^(?!pandoc_numbering/.*.py)

- repo: https://github.com/psf/black
rev: 24.4.2
rev: 24.8.0
hooks:
- id: black-jupyter
args: [--config=pyproject.toml, pandoc_numbering, tests]
Expand All @@ -58,17 +58,17 @@ repos:
rev: v1.1.1
hooks:
- id: doc8
args: [docs, README.md, -e, .rst, -e, .md]
files: \.(rst|md)$

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.0
rev: v1.11.1
hooks:
- id: mypy
language: system
exclude: ^(?!pandoc_numbering/.*.py)

- repo: https://github.com/pycqa/flake8
rev: 7.1.0
rev: 7.1.1
hooks:
- id: flake8
language: system
Expand All @@ -82,7 +82,7 @@ repos:
exclude: ^(?!pandoc_numbering/.*.py)

- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.17.0
hooks:
- id: pyupgrade
language: system
Expand Down
48 changes: 19 additions & 29 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# 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"]
extensions = ["myst_parser", "sphinx_prompt", "sphinx_copybutton"]

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

Run `pandoc` using ``pandoc-numbering`` filter:

.. code-block:: shell
.. prompt:: bash

$ pandoc --filter pandoc-numbering
pandoc --filter pandoc-numbering


.. toctree::
Expand Down
Loading

0 comments on commit 5131802

Please sign in to comment.