Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2996067rwd; Fri, 2 Jun 2023 19:09:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ59xe55/fkBNPMiz4fKF4fJixU9W2+9G0oVJdNjgwfIvkzfQ7r2K4rW5JkwSkfVCZlVCrt9 X-Received: by 2002:aa7:88d1:0:b0:64a:f8c9:a421 with SMTP id k17-20020aa788d1000000b0064af8c9a421mr12781730pff.32.1685758197151; Fri, 02 Jun 2023 19:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685758197; cv=none; d=google.com; s=arc-20160816; b=JtSXWJwxoMfZsk60Muhd98hjpjkD9tlBAqRLqBiHHZAM2PVa9kxriN+ByoSycdnJv4 sbAlzZQkSvtmLIli2E/4mIhoHZLMP4Hequcwj87srmI3AKCny7UeXe08YpG9uDPCSeJg h/yX705EpipKyUV3D8wElpDMLzdsxeVHmLPRyFvTt7qYOy3qf54sGzpgHo1TZDQazPX4 Ps9+juDrQgbOuHNbVYrfUHZ/qgmOXuOWPEYB1kKE3AhiXo2j+CAuK2fDfWjXRtDHvHSA S7xtT5DIHAOo242tZIM5Pl5nXbjwp/+erwIVzWewz5CbsKTILgvbEJ6NYdxp4CUdBZO4 nOdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IGvHg8ueaPSLkb+HRbdq0Dyuayg75nPra3YsPtVkCzg=; b=JeLMiOYw9obdkqgBTTvVrL65wVLXDLATaG2vUpPR4SAGVvW5zmCih+i3itsNeOgmgS Wx7TsDGDWMDw53MNegNo9yfruJe9B7wcPnXDZcMYNcc86U8z/RS66HgkUkFVIJKPXZCl 63LfXlo8egqN/W6NfLrHokuEX1FBV5N96j2Tg+buMQCbuBXqQ2gg55bg/N4kXxBMAmfl a4ErPyvqIdQdq3T7EOXHRH+BG1mtSC6XbQAIvtqYGuiJukRnEl1CdinQAA6qHQSeDHgs JuFqTGM4j0Rp/feykU6j0Aqbu09keQLBriFSQt4g7vbnKK7WQeuwXGb9Im+bRkzoAINW 7EYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1mFtfwrN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 20-20020a631854000000b0053f0cdab81esi1836582pgy.357.2023.06.02.19.09.44; Fri, 02 Jun 2023 19:09:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1mFtfwrN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237107AbjFCBlw (ORCPT + 99 others); Fri, 2 Jun 2023 21:41:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235954AbjFCBlv (ORCPT ); Fri, 2 Jun 2023 21:41:51 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C9981B6; Fri, 2 Jun 2023 18:41:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=IGvHg8ueaPSLkb+HRbdq0Dyuayg75nPra3YsPtVkCzg=; b=1mFtfwrNSoCATUnXEClh2raq2A a+OJhHBskgEx566hrqUDJyFNaBAWrMYNt9Gq8lJ/dN4xIqG9HW53zJN47Escx2TCxEQeGhvx7PHwY K8FZAyxM/BK9k4n28fNUDbE7f8Jk0sDphxyIiwCjGQJmZFNYcwx8KMWkTWJT/9YaZWxx5hwRL3AYD +i+NIs7LfCRHPkYDNpncNsQwX9XUF/pRE2glfMZ8wmTrbCpigkVPZyhpC3hvwY1cp+2Vx6TfNV9De OllCRQlPZlnkItQJw+cddq8qMbS9l5MmCH26qXZdYSDV50V/kR5syVySuuIiQsoQhh5rgDLD+v/ZC 64+E5nlA==; Received: from [2601:1c2:980:9ec0::2764] by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q5GH5-008T8b-2K; Sat, 03 Jun 2023 01:41:47 +0000 Message-ID: Date: Fri, 2 Jun 2023 18:41:46 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] docs: Fix warning:Error in "code-block" directive Content-Language: en-US To: Bagas Sanjaya , Madhumitha Prabakaran , rafael@kernel.org, lenb@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, skhan@linuxfoundation.org, Linux Documentation Cc: ivan.orlov0322@gmail.com References: <20230602215102.GA220958@madhu-kernel> From: Randy Dunlap In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/2/23 18:20, Bagas Sanjaya wrote: > On Fri, Jun 02, 2023 at 04:51:02PM -0500, Madhumitha Prabakaran wrote: >> Fix the error in "code-block" directive by providing the >> argument as "text". >> >> ... >> Result code: >> ------------ >> >> -.. code-block:: >> +.. code-block:: text > > Nope. > > I don't see error you mention in this patch when making htmldocs on my > computer (my setup is pretty standard: see > Documentation/doc-guide/sphinx.rst). This patch is unneccessary, though, > unless you have code snippets in some language (e.g. C, where passing > language name to code-block:: syntax-highlight it). Result code outputs, > on the other hand, are generic text with no definitive syntax, hence > you can omit language name. > > Thanks. I also don't see any such warnings so I don't see a need for this patch. My wild guess is that some older version of Sphinx was being used. -- ~Randy