From 00c32fe888905ad361d19bf108c5e480beacd934 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sun, 28 Jun 2026 09:32:13 +0000 Subject: [PATCH 1/2] Pin sphinx-pyrepl-web to autodoc doctest REPL branch for QC Use cursor/autodoc-doctest-repl-3c18 from chrizzFTD/sphinx-pyrepl-web (chrizzFTD/sphinx-pyrepl-web#12) instead of the PyPI release so the naming docs can exercise autodoc doctest_block REPL integration. Co-authored-by: chrizzftd --- setup.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 30b352f..a29f6d1 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,5 +23,5 @@ packages = find: [options.extras_require] # docs dependencies install: # conda install --channel conda-forge pygraphviz -# python -m pip install sphinx myst-parser sphinx-toggleprompt sphinx-copybutton sphinx-togglebutton sphinx_autodoc_typehints sphinx_rtd_theme "sphinx-pyrepl-web>=0.1.1" -docs = sphinx; myst-parser; sphinx-toggleprompt; sphinx-copybutton; sphinx-togglebutton; sphinx_autodoc_typehints; sphinx_rtd_theme; sphinx-pyrepl-web>=0.1.1 +# python -m pip install sphinx myst-parser sphinx-toggleprompt sphinx-copybutton sphinx-togglebutton sphinx_autodoc_typehints sphinx_rtd_theme "sphinx-pyrepl-web @ git+https://github.com/chrizzFTD/sphinx-pyrepl-web.git@cursor/autodoc-doctest-repl-3c18" +docs = sphinx; myst-parser; sphinx-toggleprompt; sphinx-copybutton; sphinx-togglebutton; sphinx_autodoc_typehints; sphinx_rtd_theme; sphinx-pyrepl-web @ git+https://github.com/chrizzFTD/sphinx-pyrepl-web.git@cursor/autodoc-doctest-repl-3c18 From b6b51ab506871b1bd28ee3b585389d2f4cd93e48 Mon Sep 17 00:00:00 2001 From: chrizzftd Date: Mon, 29 Jun 2026 23:10:31 +1000 Subject: [PATCH 2/2] Fix autodoc doctest REPL examples for installed packages (#31) --- docs/source/conf.py | 1 + setup.cfg | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 52b5964..091e82c 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -49,6 +49,7 @@ # Offset to play well with copybutton toggleprompt_offset_right = 35 togglebutton_hint = " " +pyrepl_doctest_blocks = "autodoc" intersphinx_mapping = { 'python': ('https://docs.python.org/3', None), } diff --git a/setup.cfg b/setup.cfg index a29f6d1..d9d723e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -21,7 +21,5 @@ classifiers = packages = find: [options.extras_require] -# docs dependencies install: -# conda install --channel conda-forge pygraphviz -# python -m pip install sphinx myst-parser sphinx-toggleprompt sphinx-copybutton sphinx-togglebutton sphinx_autodoc_typehints sphinx_rtd_theme "sphinx-pyrepl-web @ git+https://github.com/chrizzFTD/sphinx-pyrepl-web.git@cursor/autodoc-doctest-repl-3c18" -docs = sphinx; myst-parser; sphinx-toggleprompt; sphinx-copybutton; sphinx-togglebutton; sphinx_autodoc_typehints; sphinx_rtd_theme; sphinx-pyrepl-web @ git+https://github.com/chrizzFTD/sphinx-pyrepl-web.git@cursor/autodoc-doctest-repl-3c18 +# python -m pip install -e ".[docs]" +docs = sphinx; myst-parser; sphinx-toggleprompt; sphinx-copybutton; sphinx-togglebutton; sphinx_autodoc_typehints; sphinx_rtd_theme; sphinx-pyrepl-web>=0.2.0