From 999e87cbe327e3341101c626416997b42944b505 Mon Sep 17 00:00:00 2001 From: Matthew Woehlke Date: Fri, 26 Jun 2026 16:00:34 -0400 Subject: [PATCH] Fix attribute cross-references Commit 1122f58546fb added custom logic for resolving attribute references, but did so in a way that caused the resulting generated links to be non-normalized, and thus broken. Use the normalized name as the target identifier instead of the raw name. --- _extensions/cps/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_extensions/cps/__init__.py b/_extensions/cps/__init__.py index 378e23f..e83d7c5 100644 --- a/_extensions/cps/__init__.py +++ b/_extensions/cps/__init__.py @@ -487,7 +487,7 @@ def resolve_xref(self, env, fromdocname, builder, _, docname, refnode = c qualified = not short and len(attr.instances) > 1 - label = refnode['names'][0] + label = nodes.make_id(refnode['names'][0]) cont = nodes.literal('', name, classes=['attribute']) if qualified: