From 41f66c5ab398f838f964995b389a8e5e9fd64262 Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Wed, 20 Apr 2022 12:12:52 +0100 Subject: [PATCH] Disable support for autodocsumm's relative_ref_paths option for now. --- sphinx_toolbox/more_autosummary/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sphinx_toolbox/more_autosummary/__init__.py b/sphinx_toolbox/more_autosummary/__init__.py index 1b5838ed..76b14918 100644 --- a/sphinx_toolbox/more_autosummary/__init__.py +++ b/sphinx_toolbox/more_autosummary/__init__.py @@ -245,10 +245,10 @@ def add_autosummary(self, relative_ref_paths: bool = False): for documenter, _ in self.sort_members(documenters, member_order): obj_ref_path = documenter.fullname - if relative_ref_paths: - modname = self.modname + '.' - if documenter.fullname.startswith(modname): - obj_ref_path = documenter.fullname[len(modname):] + # if relative_ref_paths: + # modname = self.modname + '.' + # if documenter.fullname.startswith(modname): + # obj_ref_path = documenter.fullname[len(modname):] content.append(f"~{obj_ref_path}")