From 9c6a54e5b795a0bb60bd07b2a8d000292d7c5271 Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Mon, 28 Jun 2021 23:15:10 +0200 Subject: [PATCH] DOC: Update sphinx to latest major (4.0) --- docs/conf.py | 17 ++++------------- docs/requirements.txt | 6 ++---- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index aed399b3..77698df5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -29,15 +29,14 @@ # -- General configuration --------------------------------------------------- extensions = [ "sphinx.ext.autodoc", + "sphinx.ext.coverage", "sphinx.ext.doctest", + "sphinx.ext.githubpages", + "sphinx.ext.ifconfig", "sphinx.ext.intersphinx", - "sphinx.ext.coverage", "sphinx.ext.mathjax", "sphinx.ext.napoleon", - "sphinx.ext.ifconfig", "sphinx.ext.viewcode", - "sphinx.ext.githubpages", - "sphinxcontrib.apidoc", ] autodoc_mock_imports = [ @@ -55,16 +54,8 @@ # Accept custom section names to be parsed for numpy-style docstrings # of parameters. -# Requires pinning sphinxcontrib-napoleon to a specific commit while -# https://github.com/sphinx-contrib/napoleon/pull/10 is merged. napoleon_use_param = True -napoleon_custom_sections = [ - # ("Inputs", "params_style"), - # ("Outputs", "Parameters"), - # ("Attributes", "Parameters"), - # ("Mandatory Inputs", "Parameters"), - # ("Optional Inputs", "Parameters"), -] +napoleon_custom_sections = [] # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] diff --git a/docs/requirements.txt b/docs/requirements.txt index 6256d6f0..f5b3f9c3 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,9 +1,7 @@ -git+https://github.com/rwblair/sphinxcontrib-versioning.git@39b40b0b84bf872fc398feff05344051bbce0f63#egg=sphinxcontrib-versioning nbsphinx packaging pydot>=1.2.3 pydotplus sphinx-argparse -sphinx~=3.2.1 -sphinx_rtd_theme -sphinxcontrib-apidoc \ No newline at end of file +sphinx ~= 4.0 +sphinx_rtd_theme \ No newline at end of file