Skip to content

Commit

Permalink
Disable support for autodocsumm's relative_ref_paths option for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Apr 20, 2022
1 parent eec77c3 commit 41f66c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sphinx_toolbox/more_autosummary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down

0 comments on commit 41f66c5

Please sign in to comment.