From nobody Fri Oct 10 13:45:37 2025 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 9F01A2980AC; Sat, 14 Jun 2025 08:56:18 +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=1749891378; cv=none; b=ii2h5k8cgfi5iFmcp/2n3njJsaZw1+H1bcd4c+vPl0rO+3Ua/76aCpnLZkguah8HunA/T+apwIhIHt9+TDsC3EQG9MOltfl8+wXNSg8EeOBsFrTI/HC1aP1zcYsGk/JoaE64I4OYAvr08SsQNFR0sVSwFAFunIc/2R8JZH12WYo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749891378; c=relaxed/simple; bh=+6rtudJ73X+4ufoIvZc3v82fZGF4QvbxcviFruS5je8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BO218lETKnonlHkapNyY+a6MxDysHSM31I+Qwx0tBQTvCEwSpr9v1bsGehqlmr2TwiP22r/O/yVvfS9RHsHLGsoWfq+4yok0CemfBBoJ8pqt7SEsgJ5Wo2Q0sLf7/J3RrL+zOB0XEl4lmKJXdzKgtAKNEg+1Qsekgvqt42jSXpM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kVadhsiF; 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="kVadhsiF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41AA2C4CEFC; Sat, 14 Jun 2025 08:56:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1749891378; bh=+6rtudJ73X+4ufoIvZc3v82fZGF4QvbxcviFruS5je8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kVadhsiFfw1MukiWOx/QmX9YxGaDXTanMWwIAtUR7A1moktENrB55UduqSiOGrpt3 bkmb2l1YKkJpqKC4KTUrFqr/cLfMhgKBiUYXgGteilOC/LAr3BA9+2pxP36LZfpRv3 pwfHUWbBHo19ig60DM05UFsVok0cE1SshPyi57ORIMkoCmr/2HVBj28ScfEK8VT/F4 rEfRXarDKsxqZ+7f8VOKybJB092lMV5NLccTW0ghJJLUzx+Yn1njsxQfKWfTkc0vat ER7BqIoootq6YyA+PYCNijJAGynwgFRHKaophMGth764KftTL+zbZFK8xn4BOj5N1g uyEbeFjDnKpOA== Received: from mchehab by mail.kernel.org with local (Exim 4.98.2) (envelope-from ) id 1uQMgS-000000064bG-1zCZ; Sat, 14 Jun 2025 10:56:16 +0200 From: Mauro Carvalho Chehab To: Linux Doc Mailing List , Jonathan Corbet Cc: Mauro Carvalho Chehab , "Akira Yokosawa" , "Breno Leitao" , "David S. Miller" , "Donald Hunter" , "Eric Dumazet" , "Ignacio Encinas Rubio" , "Jan Stancek" , "Marco Elver" , "Mauro Carvalho Chehab" , "Paolo Abeni" , "Ruben Wauters" , "Shuah Khan" , joel@joelfernandes.org, linux-kernel-mentees@lists.linux.dev, linux-kernel@vger.kernel.org, lkmm@lists.linux.dev, netdev@vger.kernel.org, peterz@infradead.org, stern@rowland.harvard.edu Subject: [PATCH v4 10/14] docs: conf.py: don't handle yaml files outside Netlink specs Date: Sat, 14 Jun 2025 10:56:04 +0200 Message-ID: X-Mailer: git-send-email 2.49.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: quoted-printable Sender: Mauro Carvalho Chehab The parser_yaml extension already has a logic to prevent handing all yaml documents. However, if we don't also exclude the patterns at conf.py, the build time would increase a lot, and warnings like those would be generated: Documentation/netlink/genetlink.yaml: WARNING: o documento n=C3=A3o est= =C3=A1 inclu=C3=ADdo em nenhum toctree Documentation/netlink/genetlink-c.yaml: WARNING: o documento n=C3=A3o e= st=C3=A1 inclu=C3=ADdo em nenhum toctree Documentation/netlink/genetlink-legacy.yaml: WARNING: o documento n=C3= =A3o est=C3=A1 inclu=C3=ADdo em nenhum toctree Documentation/netlink/index.rst: WARNING: o documento n=C3=A3o est=C3= =A1 inclu=C3=ADdo em nenhum toctree Documentation/netlink/netlink-raw.yaml: WARNING: o documento n=C3=A3o e= st=C3=A1 inclu=C3=ADdo em nenhum toctree Add some exclusion rules to prevent that. Signed-off-by: Mauro Carvalho Chehab --- Documentation/conf.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Documentation/conf.py b/Documentation/conf.py index add6ce78dd80..62a51ac64b95 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -221,8 +221,16 @@ language =3D 'en' #today_fmt =3D '%B %d, %Y' =20 # List of patterns, relative to source directory, that match files and -# directories to ignore when looking for source files. -exclude_patterns =3D ['output'] +# directories. +include_patterns =3D [ + '**.rst', + 'netlink/specs/*.yaml', +] + +# patterns to ignore when looking for source files. +exclude_patterns =3D [ + 'output', +] =20 # The reST default role (used for this markup: `text`) to use for all # documents. --=20 2.49.0