From 9f8fb037bc25b9bd4be28921384265d9290dbb96 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 13 Oct 2021 11:34:16 +0100 Subject: [PATCH 1/2] added spinix.ext.napoleon to sphinx extensions --- {{ cookiecutter.repo_name }}/docs/source/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/{{ cookiecutter.repo_name }}/docs/source/conf.py b/{{ cookiecutter.repo_name }}/docs/source/conf.py index 3335f40..2db69e5 100644 --- a/{{ cookiecutter.repo_name }}/docs/source/conf.py +++ b/{{ cookiecutter.repo_name }}/docs/source/conf.py @@ -43,7 +43,8 @@ 'matplotlib.sphinxext.plot_directive', 'numpydoc', 'sphinx_copybutton', - 'autoapi.extension' + 'autoapi.extension', + 'sphinx.ext.napoleon' ] # Configuration options for plot_directive. See: From ac949c193afe02f659dfe93e46b60fe20e08a1ae Mon Sep 17 00:00:00 2001 From: Matthew Date: Fri, 17 Dec 2021 18:39:15 +0000 Subject: [PATCH 2/2] Update conf.py for Sphinx Remove use of numpydoc in favour of sphinx.ext.napoleon --- {{ cookiecutter.repo_name }}/docs/source/conf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/{{ cookiecutter.repo_name }}/docs/source/conf.py b/{{ cookiecutter.repo_name }}/docs/source/conf.py index 2db69e5..d419fae 100644 --- a/{{ cookiecutter.repo_name }}/docs/source/conf.py +++ b/{{ cookiecutter.repo_name }}/docs/source/conf.py @@ -41,7 +41,6 @@ 'IPython.sphinxext.ipython_directive', 'IPython.sphinxext.ipython_console_highlighting', 'matplotlib.sphinxext.plot_directive', - 'numpydoc', 'sphinx_copybutton', 'autoapi.extension', 'sphinx.ext.napoleon'