From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2C0E391E5C; Wed, 15 Apr 2026 08:52:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776243149; cv=none; b=IXlFLGh0pZ+yE4K5zrEzt13dxtiZpLbqqRu8O3nr+yy79kNDASWUz1URgpudYAPEAwUmC61XqdC2+94UJqFLwLHJdN57SoLf8iu4lc7Lf2N1w6vC7xf/FUkPvxi6BOyKHTrJdSxPmikHZFIcV0gimdF9ct5+T67gaJpZpkqRIoA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776243149; c=relaxed/simple; bh=PN4FPVYRORp3XTpdvjjtDtB0ZIfuMMKyf0YVAqRdNAs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HvWA11Ra6VWpP6mAWZyDr99eUh+c33BUTc4B/bbSmFWj27Rm+tPotuHKsEldYJV0olNjaPZybPh6FHfYz1tZ8QJCWGpY5udnVUgW8TPBs5l8Pqs116IL4XLE3WMGl52Lcan0eBHCXwEX0qe3wY3vhe9Af5g80s2N55YrP/D7XSA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YoxTUEGE; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YoxTUEGE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85AE6C19424; Wed, 15 Apr 2026 08:52:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776243149; bh=PN4FPVYRORp3XTpdvjjtDtB0ZIfuMMKyf0YVAqRdNAs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YoxTUEGELm85PY7A8FuPbsXwoALNbwTESptxQyN5SWlz9l01EvTj//+4Tc7TJHxMG gBDXJ/IgWVCBr9YoeR4tpUx+CNyXpdpxQbOUut87qrJ400+yYyKdJ8K+yAeAUPpMeL 8s2R1yyWBiDkIPQPEat6RuSiag/9nrIrPDxCbOZ6VS3BB2UOBCw5MqWwSx54TbgENs vwooeVTuxkQceftzBjcC/M5QL7aOpMqhyv+XTE5H4wysTKjuSCrX70NP2aF3aOGoNx kofkOjCgDaHenI8zs2B7CY+q/Pzxhm/gQCetQA6oWbawDxrU0Lk5Gge5ikboFw9Cpd pWwn0DHN1zQyQ== Received: from mchehab by mail.kernel.org with local (Exim 4.99.1) (envelope-from ) id 1wCvz1-0000000ELw9-2rjz; Wed, 15 Apr 2026 10:52:27 +0200 From: Mauro Carvalho Chehab To: Jonathan Corbet , Linux Doc Mailing List , Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, workflows@vger.kernel.org, Dan Williams , Randy Dunlap , Shuah Khan Subject: [PATCH 6/8] docs: maintainers_include: add external profile URLs Date: Wed, 15 Apr 2026 10:52:22 +0200 Message-ID: <7c8d92cbc0828a926c07690d25be7b669bb83cf6.1776242739.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: Mauro Carvalho Chehab Some subsystem profiles are maintained elsewhere. Add them to the output. Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/maintainers_include.py | 28 +++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/Documentation/sphinx/maintainers_include.py b/Documentation/sphinx/maintainers_include.py index cf428db7599c..f1b8d4b00c2a 100755 --- a/Documentation/sphinx/maintainers_include.py +++ b/Documentation/sphinx/maintainers_include.py @@ -37,6 +37,7 @@ class MaintainersParser: def __init__(self, base_path, path): self.profiles = {} + self.profile_urls = {} result = list() result.append(".. _maintainers:") @@ -81,6 +82,16 @@ class MaintainersParser: else: self.profiles[fname] += f", {subsystem_name}" + match = re.match(r"P:\s*(https?://.*)", line) + if match: + url = match.group(1).strip() + if url not in self.profile_urls: + if self.profile_urls.get(url) is None: + self.profile_urls[url] = subsystem_name + else: + self.profile_urls[url] += f", {subsystem_name}" + + # Linkify all non-wildcard refs to ReST files in Documentation/. pat = r'(Documentation/([^\s\?\*]*)\.rst)' m = re.search(pat, line) @@ -219,18 +230,31 @@ class MaintainersProfile(Include): def emit(self, base_path, path): """Parse all the MAINTAINERS lines looking for profile entries""" - profiles = MaintainersParser(base_path, path).profiles + maint = MaintainersParser(base_path, path) output = ".. toctree::\n" output += " :maxdepth: 2\n\n" - items = sorted(profiles.items(), key=lambda kv: (kv[1] or "", kv[0])) + items = sorted(maint.profiles.items(), + key=lambda kv: (kv[1] or "", kv[0])) for fname, profile in items: if profile: output += f" {profile} <{fname}>\n" else: output += f" {fname}\n" + output += "\n**External profiles**\n\n" + + items = sorted(maint.profile_urls.items(), + key=lambda kv: (kv[1] or "", kv[0])) + for url, profile in items: + if profile: + output += f"- {profile} <{url}>\n" + else: + output += f"- {url}\n" + + output += "\n" + self.state_machine.insert_input(statemachine.string2lines(output), path) def run(self): -- 2.53.0