From fce7c24544a67ecc6c6c9c250880304427b3dd0e Mon Sep 17 00:00:00 2001 From: sewon jeon Date: Wed, 25 Feb 2026 10:11:10 +0900 Subject: [PATCH 1/2] docs: fix deprecated needs_extra_links in sphinx conf --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index a9bfb288..694128b6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -111,7 +111,7 @@ ), ] -needs_extra_links = [ +needs_links = [ { "option": "links", "incoming": "is linked by", From 2c7b72e83bb57d1bcbd8654b0efa53e9725bcaaf Mon Sep 17 00:00:00 2001 From: sewon jeon Date: Wed, 25 Feb 2026 13:18:44 +0900 Subject: [PATCH 2/2] docs: use dict-based needs_links for sphinx-needs 7 --- docs/conf.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 694128b6..346041cf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -111,20 +111,18 @@ ), ] -needs_links = [ - { - "option": "links", +needs_links = { + "links": { "incoming": "is linked by", "outgoing": "links to", }, - { - "option": "verifies", + "verifies": { "incoming": "is verified by", "outgoing": "verifies", - "copy_link": False, + "copy": False, "allow_dead_links": False, }, -] +} # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output