From e2bb958ca5b4977d4c208ab25720974b43449676 Mon Sep 17 00:00:00 2001 From: Sarah Alnegheimish Date: Tue, 26 Mar 2024 14:26:03 -0400 Subject: [PATCH] fix docs --- docs/conf.py | 2 +- setup.py | 19 ++++++++++++++----- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index cc6fa4b..982e46a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -31,7 +31,7 @@ # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ - 'm2r', + 'm2r2', 'nbsphinx', 'sphinx.ext.autodoc', 'sphinx.ext.githubpages', diff --git a/setup.py b/setup.py index 737ecf0..22e7bfd 100644 --- a/setup.py +++ b/setup.py @@ -47,14 +47,23 @@ 'watchdog>=0.8.3,<0.11', # docs - 'm2r>=0.2.0,<0.3', + 'docutils>=0.12,<0.18', + 'm2r2>=0.2.5,<0.3', 'nbsphinx>=0.5.0,<0.7', - 'Sphinx>=1.7.1,<3', + 'Sphinx>=3,<3.3', 'sphinx_rtd_theme>=0.2.4,<0.5', 'autodocsumm>=0.1.10', - 'mistune>=0.7,<2', - 'Jinja2<3.1', - + 'Jinja2>=2,<3.1', + + # fails on Sphinx < v3.4 + 'alabaster<=0.7.12', + # fails on Sphins < v5.0 + 'sphinxcontrib-applehelp<1.0.8', + 'sphinxcontrib-devhelp<1.0.6', + 'sphinxcontrib-htmlhelp<2.0.5', + 'sphinxcontrib-serializinghtml<1.1.10', + 'sphinxcontrib-qthelp<1.0.7', + # style check 'flake8>=3.7.7,<4', 'isort>=4.3.4,<5',