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 685559e commit e7a835c
Show file tree
Hide file tree
Showing 6 changed files with 263 additions and 209 deletions.
8 changes: 4 additions & 4 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.5
rev: v0.5.7
hooks:
- id: ruff
language: system
exclude: ^(?!pandoc_latex_admonition/)

- repo: https://github.com/psf/black
rev: 24.4.2
rev: 24.8.0
hooks:
- id: black-jupyter
args: [--config=pyproject.toml, pandoc_latex_admonition/, tests]
Expand All @@ -58,7 +58,7 @@ 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.1
Expand All @@ -68,7 +68,7 @@ repos:
exclude: ^(?!pandoc_latex_admonition/)

- repo: https://github.com/pycqa/flake8
rev: 7.1.0
rev: 7.1.1
hooks:
- id: flake8
language: system
Expand Down
42 changes: 16 additions & 26 deletions README.md

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
Expand Down Expand Up @@ -44,7 +43,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

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

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

$ pandoc --filter pandoc-latex-admonition
pandoc --filter pandoc-latex-admonition

Explanation
-----------
Expand Down
Loading

0 comments on commit e7a835c

Please sign in to comment.