* [PATCH 0/2] A couple of fixes for maintainers_include.py
@ 2026-07-12 14:59 Mauro Carvalho Chehab
2026-07-12 14:59 ` [PATCH 1/2] docs: maintainers_include: don't output duplicated profile entries Mauro Carvalho Chehab
2026-07-12 14:59 ` [PATCH 2/2] docs: maintainers_include.py: output subsystem name if available Mauro Carvalho Chehab
0 siblings, 2 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2026-07-12 14:59 UTC (permalink / raw)
To: Jonathan Corbet, Mauro Carvalho Chehab
Cc: Mauro Carvalho Chehab, linux-doc, linux-kernel, Shuah Khan,
Manuel Ebner
Hi Jon,
It follows a couple fixes for maintainers_include when generating
maintainer's profile entries.
Regards,
Mauro
Mauro Carvalho Chehab (2):
docs: maintainers_include: don't output duplicated profile entries
docs: maintainers_include.py: output subsystem name if available
Documentation/sphinx/maintainers_include.py | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
--
2.55.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] docs: maintainers_include: don't output duplicated profile entries
2026-07-12 14:59 [PATCH 0/2] A couple of fixes for maintainers_include.py Mauro Carvalho Chehab
@ 2026-07-12 14:59 ` Mauro Carvalho Chehab
2026-07-12 14:59 ` [PATCH 2/2] docs: maintainers_include.py: output subsystem name if available Mauro Carvalho Chehab
1 sibling, 0 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2026-07-12 14:59 UTC (permalink / raw)
To: Jonathan Corbet, Linux Doc Mailing List, Mauro Carvalho Chehab
Cc: Mauro Carvalho Chehab, linux-kernel, Shuah Khan, Manuel Ebner
Add a logic to prevent having duplicated maintainer's profile entries
at the rst output.
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>
---
Documentation/sphinx/maintainers_include.py | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/Documentation/sphinx/maintainers_include.py b/Documentation/sphinx/maintainers_include.py
index dc9f9e188ffa..7df73f66e13c 100755
--- a/Documentation/sphinx/maintainers_include.py
+++ b/Documentation/sphinx/maintainers_include.py
@@ -336,16 +336,24 @@ class MaintainersProfile(Include):
# Produce a list with all maintainer profiles, sorted by subsystem name
#
output = ""
- for profile, entry in sorted(maint_parser.profile_entries.items()):
+ entries = set()
+ for profile, entry in maint_parser.profile_entries.items():
name = profile.title()
if entry.startswith("http"):
- output += f"- `{name} <{entry}>`_\n"
+ new_entry = f"- `{name} <{entry}>`_\n"
elif entry.startswith("`"):
- output += f"- {name}: {entry}\n"
+ new_entry = f"- {name}: {entry}\n"
self.warning(f"{profile}: Invalid 'P' tag: {entry}\n")
else:
- output += f"- {entry}\n"
+ new_entry = f"- {entry}\n"
+
+ if new_entry not in entries:
+ entries.add(new_entry)
+
+ for entry in sorted(entries):
+ output += entry
+
#
# Create a hidden TOC table with all profiles. That allows adding
--
2.55.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH 2/2] docs: maintainers_include.py: output subsystem name if available
2026-07-12 14:59 [PATCH 0/2] A couple of fixes for maintainers_include.py Mauro Carvalho Chehab
2026-07-12 14:59 ` [PATCH 1/2] docs: maintainers_include: don't output duplicated profile entries Mauro Carvalho Chehab
@ 2026-07-12 14:59 ` Mauro Carvalho Chehab
1 sibling, 0 replies; 3+ messages in thread
From: Mauro Carvalho Chehab @ 2026-07-12 14:59 UTC (permalink / raw)
To: Jonathan Corbet, Linux Doc Mailing List, Mauro Carvalho Chehab
Cc: Mauro Carvalho Chehab, linux-kernel, Shuah Khan, Manuel Ebner
If the subsystem name is available (which should always be true,
except if the parser has an issue), outputs the subsystem's name
at the profile entry.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
---
Documentation/sphinx/maintainers_include.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/sphinx/maintainers_include.py b/Documentation/sphinx/maintainers_include.py
index 7df73f66e13c..1596630a74ca 100755
--- a/Documentation/sphinx/maintainers_include.py
+++ b/Documentation/sphinx/maintainers_include.py
@@ -345,6 +345,8 @@ class MaintainersProfile(Include):
elif entry.startswith("`"):
new_entry = f"- {name}: {entry}\n"
self.warning(f"{profile}: Invalid 'P' tag: {entry}\n")
+ elif name:
+ new_entry = f"- {name}: {entry}\n"
else:
new_entry = f"- {entry}\n"
--
2.55.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-07-12 15:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-12 14:59 [PATCH 0/2] A couple of fixes for maintainers_include.py Mauro Carvalho Chehab
2026-07-12 14:59 ` [PATCH 1/2] docs: maintainers_include: don't output duplicated profile entries Mauro Carvalho Chehab
2026-07-12 14:59 ` [PATCH 2/2] docs: maintainers_include.py: output subsystem name if available Mauro Carvalho Chehab
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox