From e571a6bc87723561d046a3338463faafdb2a004e Mon Sep 17 00:00:00 2001 From: Eugen-Bleck Date: Sat, 28 Jun 2025 07:53:33 -0700 Subject: [PATCH] fix(docs): Fix incorrect 'sphinx-prompt' module name in Sphinx extensions Using `sphinx-prompt` in the `extensions` list causes a ModuleNotFoundError when building the documentation via `make` or similar Sphinx commands: ModuleNotFoundError: No module named `sphinx-prompt` This happens because the correct Python module name is `sphinx_prompt` (with an underscore), not a hyphen. Sphinx uses importlib to load extensions, so the module name must be valid Python syntax. This fixes the issue for contributors using `make` to build the docs locally. --- doc/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index 71c9ec5bb60c3..d306078ddb9ac 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -62,7 +62,7 @@ "sphinx.ext.intersphinx", "sphinx.ext.imgconverter", "sphinx_gallery.gen_gallery", - "sphinx-prompt", + "sphinx_prompt", "sphinx_copybutton", "sphinxext.opengraph", "matplotlib.sphinxext.plot_directive",