From 87f79218c2463ac2c026931bd5055fc369c7d8df Mon Sep 17 00:00:00 2001 From: Krerkkiat Chusap Date: Wed, 27 Mar 2024 02:10:43 +0000 Subject: [PATCH] fix: fix nested tag's id --- src/autodoc2/sphinx/autodoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/autodoc2/sphinx/autodoc.py b/src/autodoc2/sphinx/autodoc.py index 380ff2a..e5b261e 100644 --- a/src/autodoc2/sphinx/autodoc.py +++ b/src/autodoc2/sphinx/autodoc.py @@ -136,7 +136,7 @@ def _set_parents( current_class = env.ref_context.get("py:class") env.ref_context["py:module"] = mod["full_name"] if klass: - env.ref_context["py:class"] = klass["full_name"] + env.ref_context["py:class"] = None try: yield finally: