mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02:00
docs: maintainers_include: fix entry names
Right now, it is printing duplicated values as profile entries, as it is not properly handling subsystem name. Fix it. Reported-by: Manuel Ebner <manuelebner@mailbox.org> Closes: https://lore.kernel.org/linux-doc/98a558a87a07ab641f47c66c372ee7ed0735f4f5.camel@mailbox.org/ Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net> Message-ID: <bb00e9ba66f2d95306e7ca88fdf0f39fcc570cff.1783884625.git.mchehab+huawei@kernel.org>
This commit is contained in:
parent
238844aa96
commit
9df36192ff
|
|
@ -161,7 +161,7 @@ class MaintainersParser:
|
|||
html = KERNELDOC_URL + ename + ".html"
|
||||
entries[entry] = f'`{ename} <{html}>`_'
|
||||
else:
|
||||
entries[entry] = f':doc:`{ename} </{entry}>`'
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user