We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b75f248 commit d49fd8fCopy full SHA for d49fd8f
autodocsumm/__init__.py
@@ -310,11 +310,11 @@ def add_autosummary(self, relative_ref_paths=False):
310
indent = ' '
311
312
for (documenter, _) in documenters:
313
+ obj_ref_path = documenter.fullname
314
if relative_ref_paths:
- obj_ref_path = documenter.fullname.lstrip(
315
- self.modname + '.')
316
- else:
317
- obj_ref_path = documenter.fullname
+ modname = self.modname + "."
+ if documenter.fullname.startswith(modname):
+ obj_ref_path = documenter.fullname[len(modname):]
318
319
self.add_line(indent + '~' + obj_ref_path, sourcename)
320
0 commit comments