From a74372bdc309101c8c689ddcd4a0089f7e2f990d Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Thu, 28 Mar 2024 07:33:53 +0100 Subject: [PATCH] docs: use fixed version of adjust links to 'stable' (#2476) * lightning-utilities ==0.11.2 --- Makefile | 1 + docs/source/conf.py | 2 +- requirements/_docs.txt | 5 +---- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 6f25ea84a6b..151d26a7e37 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ export FREEZE_REQUIREMENTS=1 # assume you have installed need packages export SPHINX_MOCK_REQUIREMENTS=1 export SPHINX_FETCH_ASSETS=0 +export SPHINX_PIN_RELEASE_VERSIONS=1 clean: # clean all temp runs diff --git a/docs/source/conf.py b/docs/source/conf.py index 56aca38b430..f147c0393a0 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -105,7 +105,7 @@ def _set_root_image_path(page_path: str) -> None: version_digits=3, ) adjust_linked_external_docs( - "https://scikit-learn.org/stable/", "https://scikit-learn.org/{sklearn.__version__}/", _PATH_ROOT + "https://scikit-learn.org/stable/", "https://scikit-learn.org/{scikit-learn}/", _PATH_ROOT ) diff --git a/requirements/_docs.txt b/requirements/_docs.txt index e7bf3e9685c..ea8bbcd7978 100644 --- a/requirements/_docs.txt +++ b/requirements/_docs.txt @@ -12,7 +12,7 @@ sphinx-togglebutton ==0.3.2 sphinx-copybutton ==0.5.2 lightning >=1.8.0, <2.3.0 -lightning-utilities >=0.11.0, <0.12.0 +lightning-utilities ==0.11.2 pydantic > 1.0.0, < 3.0.0 # integrations @@ -24,6 +24,3 @@ pydantic > 1.0.0, < 3.0.0 -r multimodal.txt -r text.txt -r text_test.txt - -# needed for replacing stable keyword with latest version linkd -scikit-learn