From e6dc450945457746347336c0315b7b1e37f267db Mon Sep 17 00:00:00 2001 From: Jirka Date: Mon, 25 Mar 2024 15:03:53 +0100 Subject: [PATCH] docs: downgrade `sphinx~=5.3` --- docs/source/conf.py | 6 +++--- requirements/_docs.txt | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 1e64f57f..42c21cdd 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -9,7 +9,7 @@ import os import re import sys -from typing import Optional +from typing import List, Optional import lightning_utilities import pt_lightning_sphinx_theme @@ -73,7 +73,7 @@ def _convert_markdown(path_in: str, path_out: str, path_root: str) -> None: # If your documentation needs a minimal Sphinx version, state it here. -needs_sphinx = "6.2" +needs_sphinx = "5.3" # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom @@ -270,7 +270,7 @@ def setup(app): # Ignoring Third-party packages # https://stackoverflow.com/questions/15889621/sphinx-how-to-exclude-imports-in-automodule -def _package_list_from_file(file: str) -> list[str]: +def _package_list_from_file(file: str) -> List[str]: list_pkgs = [] with open(file) as fp: lines = fp.readlines() diff --git a/requirements/_docs.txt b/requirements/_docs.txt index 2110c882..2d6a1197 100644 --- a/requirements/_docs.txt +++ b/requirements/_docs.txt @@ -1,5 +1,5 @@ -sphinx >=6.0,<7.0 -myst-parser >=2.0.0, <3.0.0 +sphinx >=5.0,<6.0 +myst-parser >=1.0.0, <2.0.0 nbsphinx >=0.8.5 ipython[notebook] pandoc >=1.0 @@ -14,5 +14,3 @@ sphinx-autodoc-typehints >=1.0 sphinx-paramlinks >=0.5.1 sphinx-togglebutton >=0.2 sphinx-copybutton >=0.3 - -numpy # for validation of custom/local version adjustemnt