diff --git a/Documentation/sphinx/maintainers_include.py b/Documentation/sphinx/maintainers_include.py index dc9f9e188ffa..7ffe19b5ed58 100755 --- a/Documentation/sphinx/maintainers_include.py +++ b/Documentation/sphinx/maintainers_include.py @@ -161,7 +161,7 @@ class MaintainersParser: html = KERNELDOC_URL + ename + ".html" entries[entry] = f'`{ename} <{html}>`_' else: - entries[entry] = f':doc:`{ename} `' + entries[entry] = f'/{entry}' return entries @@ -345,7 +345,10 @@ class MaintainersProfile(Include): output += f"- {name}: {entry}\n" self.warning(f"{profile}: Invalid 'P' tag: {entry}\n") else: - output += f"- {entry}\n" + if not name: + name = entry + + output += f"- :doc:`{name} <{entry}>`\n" # # Create a hidden TOC table with all profiles. That allows adding