diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e748f48d..31c4aa9e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: rev: v6.0.0 hooks: - id: trailing-whitespace - exclude: ^doc/static/ + exclude: ^doc/static/|\.patch$ - id: end-of-file-fixer exclude: ^doc/static/ - id: check-yaml diff --git a/dfetch.yaml b/dfetch.yaml index e337d383..9181826a 100644 --- a/dfetch.yaml +++ b/dfetch.yaml @@ -26,6 +26,7 @@ manifest: patch: - doc/_ext/patches/001-autoformat-sphinxcontrib.asciinema.patch - doc/_ext/patches/002-fix-options-sphinxcontrib.asciinema.patch + - doc/_ext/patches/003-only-handle-html-sphinxcontrib.asciinema.patch - name: inter-font remote: github diff --git a/doc/_ext/patches/003-only-handle-html-sphinxcontrib.asciinema.patch b/doc/_ext/patches/003-only-handle-html-sphinxcontrib.asciinema.patch new file mode 100644 index 00000000..04a9cee4 --- /dev/null +++ b/doc/_ext/patches/003-only-handle-html-sphinxcontrib.asciinema.patch @@ -0,0 +1,29 @@ +diff --git a/asciinema.py b/asciinema.py +index 44dad260..be82899a 100644 +--- a/asciinema.py ++++ b/asciinema.py +@@ -10,6 +10,8 @@ logger = logging.getLogger(__name__) + + + def copy_asset_files(app, exc): ++ if app.builder.format != "html": ++ return + asset_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "_static") + if exc is None: # build succeeded + for file in os.listdir(asset_dir): +@@ -83,7 +85,6 @@ def visit_html(self, node): + + + def visit_unsupported(self, node): +- logger.warning("asciinema: unsupported output format (node skipped)") + raise nodes.SkipNode + + +@@ -177,6 +178,7 @@ class ASCIINemaDirective(SphinxDirective): + + _NODE_VISITORS = { + "html": (visit_html, depart), ++ "epub": (visit_unsupported, None), + "latex": (visit_unsupported, None), + "man": (visit_unsupported, None), + "texinfo": (visit_unsupported, None), diff --git a/doc/_ext/sphinxcontrib_asciinema/.dfetch_data.yaml b/doc/_ext/sphinxcontrib_asciinema/.dfetch_data.yaml index 4f9d5878..40afb1da 100644 --- a/doc/_ext/sphinxcontrib_asciinema/.dfetch_data.yaml +++ b/doc/_ext/sphinxcontrib_asciinema/.dfetch_data.yaml @@ -2,11 +2,12 @@ # For more info see https://dfetch.rtfd.io/en/latest/getting_started.html dfetch: branch: master - hash: dcd1473e1a3ca613b804e3e51e7ee342 - last_fetch: 22/03/2026, 19:52:31 + hash: c0665300cd7962033a3caafa7fc302e7 + last_fetch: 20/04/2026, 21:23:20 patch: - doc/_ext/patches/001-autoformat-sphinxcontrib.asciinema.patch - doc/_ext/patches/002-fix-options-sphinxcontrib.asciinema.patch + - doc/_ext/patches/003-only-handle-html-sphinxcontrib.asciinema.patch remote_url: https://github.com/divi255/sphinxcontrib.asciinema.git revision: 5ee0c5be62236a5dee0032e1d8dd59957a0c1d4c tag: '' diff --git a/doc/static/fonts/font-awesome/.dfetch_data.yaml b/doc/static/fonts/font-awesome/.dfetch_data.yaml index 4a9915c9..99b04969 100644 --- a/doc/static/fonts/font-awesome/.dfetch_data.yaml +++ b/doc/static/fonts/font-awesome/.dfetch_data.yaml @@ -3,8 +3,8 @@ dfetch: branch: '' hash: 853448351c1e332e9af3a8683fe927cd - last_fetch: 30/03/2026, 21:36:21 + last_fetch: 20/04/2026, 21:25:26 patch: '' remote_url: https://github.com/FortAwesome/Font-Awesome/releases/download/7.2.0/fontawesome-free-7.2.0-web.zip - revision: https://github.com/FortAwesome/Font-Awesome/releases/download/7.2.0/fontawesome-free-7.2.0-web.zip + revision: sha256:218d19fdec1bd898d1c78683f3c72e71bcc9e5f9bb3e065f99a5c3cdc48e0d66 tag: '' diff --git a/doc/static/fonts/inter/.dfetch_data.yaml b/doc/static/fonts/inter/.dfetch_data.yaml index 6b056726..3c6c4459 100644 --- a/doc/static/fonts/inter/.dfetch_data.yaml +++ b/doc/static/fonts/inter/.dfetch_data.yaml @@ -3,8 +3,8 @@ dfetch: branch: '' hash: 428a1aa8c0009c0c0583bbb49edd99b7 - last_fetch: 29/03/2026, 18:08:23 + last_fetch: 20/04/2026, 21:25:15 patch: '' remote_url: https://github.com/rsms/inter/releases/download/v4.1/Inter-4.1.zip - revision: https://github.com/rsms/inter/releases/download/v4.1/Inter-4.1.zip + revision: sha256:9883fdd4a49d4fb66bd8177ba6625ef9a64aa45899767dde3d36aa425756b11e tag: ''