From aead4b3cab472b96fa0e07c289979c28f5fc22a5 Mon Sep 17 00:00:00 2001 From: Max Schlecht Date: Thu, 24 Sep 2020 23:14:15 -0400 Subject: [PATCH] API Docs: Fix xref urls Fully revert D7913 "Fix T77276: Generating Python API docs raises many warnings" {D7913} broke xrefs/links to other types and permalinks in the docs. This makes the python api docs for 2.90 and 2.91 completely unusable. It got partially reverted in commit e893430a6306ded059270e7df9d78180cdc0d9e3. That didn't fix those two issues though, so it should be fully reverted. As you can see here, i'm not able to click `bpy_struct.id_data`, because no tag got generated in the html. {F8889934} Here you can see a working, but wrong permalink, generated by clicking the little chain. (It should be `bpy.types.MeshVertices`, not `bpy.types.MeshVertices.MeshVertices`) {F8889938} Reviewed By: Blendify Differential Revision: https://developer.blender.org/D8913 --- doc/python_api/sphinx_doc_gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index 2c9445dce97..db5c161865f 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -1312,7 +1312,7 @@ def pyrna2sphinx(basepath): fw(title_string(title, "=")) - fw(".. module:: %s.%s\n\n" % (struct_module_name, struct_id)) + fw(".. module:: %s\n\n" % struct_module_name) # docs first?, ok write_example_ref("", fw, "%s.%s" % (struct_module_name, struct_id)) @@ -1543,7 +1543,7 @@ def pyrna2sphinx(basepath): fw(title_string(class_name, "=")) - fw(".. module:: %s.%s\n" % (class_module_name, class_name)) + fw(".. module:: %s\n" % class_module_name) fw("\n") if use_subclasses: