diff --git a/docs/conf.py b/docs/conf.py index d16c57805..3ce7e0034 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -43,6 +43,7 @@ "myst_parser", "sphinx_reredirects", "sphinx_inline_tabs", + "notfound.extension", ] # Add any paths that contain templates here, relative to this directory. diff --git a/poetry.lock b/poetry.lock index 2f0c66093..891d5e0a8 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2049,6 +2049,24 @@ sphinx = ">=3" doc = ["furo", "myst-parser"] test = ["pytest", "pytest-cov", "pytest-xdist"] +[[package]] +name = "sphinx-notfound-page" +version = "1.0.0" +description = "Sphinx extension to build a 404 page with absolute URLs" +optional = true +python-versions = ">=3.8" +files = [ + {file = "sphinx_notfound_page-1.0.0-py3-none-any.whl", hash = "sha256:40a5741a6b07245a08fe55dbbd603ad6719e191b1419ab2e5337c706ebd16554"}, + {file = "sphinx_notfound_page-1.0.0.tar.gz", hash = "sha256:14cd388956de5cdf8710ab4ff31776ef8d85759c4f46014ee30f368e83bd3a3b"}, +] + +[package.dependencies] +sphinx = ">=5" + +[package.extras] +doc = ["sphinx-autoapi", "sphinx-rtd-theme", "sphinx-tabs", "sphinxemoji"] +test = ["tox"] + [[package]] name = "sphinx-reredirects" version = "0.1.3" @@ -2544,11 +2562,11 @@ docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)"] [extras] -docs = ["furo", "myst-parser", "sphinx", "sphinx-autobuild", "sphinx-copybutton", "sphinx-inline-tabs", "sphinx-reredirects"] +docs = ["furo", "myst-parser", "sphinx", "sphinx-autobuild", "sphinx-copybutton", "sphinx-inline-tabs", "sphinx-notfound-page", "sphinx-reredirects"] s3 = ["fs-s3fs"] testing = ["pytest", "pytest-durations"] [metadata] lock-version = "2.0" python-versions = ">=3.7.1,<4" -content-hash = "99f4a54e088236f9dddc13548b5a2e0e5912f5585b0868b4a63a5db2f2f0e8dc" +content-hash = "e7ffc878cf102dda7806c11254532158dc6cbca578b67cc765c607395bba701e" diff --git a/pyproject.toml b/pyproject.toml index 447ee6440..283ab415a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,8 +71,9 @@ furo = {version = ">=2022.12.7", optional = true} sphinx-copybutton = {version = ">=0.3.1", optional = true} myst-parser = {version = ">=1", optional = true} sphinx-autobuild = {version = ">=2021.3.14", optional = true} -sphinx-reredirects = {version = ">=0.1.1", optional = true} sphinx-inline-tabs = {version = ">=2023.4.21", optional = true, markers = "python_version >= \"3.8\""} +sphinx-notfound-page = {version = "^1.0.0", optional = true, python = ">=3.8"} +sphinx-reredirects = {version = ">=0.1.1", optional = true} # File storage dependencies installed as optional 'filesystem' extras fs-s3fs = {version = ">=1.1.1", optional = true} @@ -88,8 +89,9 @@ docs = [ "sphinx-copybutton", "myst-parser", "sphinx-autobuild", - "sphinx-reredirects", "sphinx-inline-tabs", + "sphinx-notfound-page", + "sphinx-reredirects", ] s3 = ["fs-s3fs"] testing = [