Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2067177rwb; Wed, 5 Oct 2022 08:34:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM63joz2qrdGaZedr8U83M4mx06RI0UD7ICBsIHAcSGYJlJpCX3ZJsa1JsoV/IYjNwvFUqWC X-Received: by 2002:a17:906:fe45:b0:788:15a5:7495 with SMTP id wz5-20020a170906fe4500b0078815a57495mr118882ejb.633.1664984060424; Wed, 05 Oct 2022 08:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664984060; cv=none; d=google.com; s=arc-20160816; b=OpSGpLQsvfCexRYb56lUruoG5Qwz484xt/teTRaiLNfSqscdVcV/pEptJ6fQdBdLUS /O8s90AOcoaMuaAF5gRXbTi6D7OwIF8e6mO85ZXqDI3xzymfe7C8e/BYUvmPQBRJCTmH PUcC5GFtGjcXguJXmip8GEmKMqTOzmWD54LjDQOO713SyEmOyjkEgRCgmMmScYPUErep uPs/1qmSNfhc+A3juc4/X6knCZZESgb73ij2qL1rbaPRNqu+BVc6Yno9CdhgNsh0iTUK CmXMz2LERIT/SgYPrJkoTDaW+wObJJDjmbJ+WqB3bH51ouZG1bnTn+l6l4mssvXuwZdM mGHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature:dkim-filter; bh=fhWAv3XoJ4MKi2R/EsBnzcg48N1lTjy8sf1fdDB1rzg=; b=bDe2PoX5qL8LYPU02Z2VGt67Lb+XuKpjy4yzSfz7LCRqpZs62FB7+AKEZTbZ8ycDCk KThkoxrUMsht8lvpKFehCOMC16Cj8A5UAKXQLiTrH7QnTtgYHxQjc5e65sBtEq8uuG3u Nelgf/pMD+Uav+MOn1Rz+w+VcghSzUKTPqUfQ713xvW30vp+1P879fAvtNcjHt4Bm3lB EdBIzZM+KzgpkV3nc9bWuu5zs6S54F8WMwvbypHNp5NqUwrAEYnnfiHE2AUahOF7tA7G FWwMJTJD5isVVQSQCaQ6Ivfgrh92SgoBe04aQXBonIwxYFfh1RR3xpZ6ExksM4oqD7FO 0eVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=Yflxwk16; 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 z5-20020a1709063ac500b007808f3f4cbcsi11927363ejd.239.2022.10.05.08.33.52; Wed, 05 Oct 2022 08:34:20 -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=@lwn.net header.s=20201203 header.b=Yflxwk16; 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 S229868AbiJEP36 (ORCPT + 99 others); Wed, 5 Oct 2022 11:29:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230490AbiJEP3u (ORCPT ); Wed, 5 Oct 2022 11:29:50 -0400 Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9F07EE03; Wed, 5 Oct 2022 08:29:47 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:281:8300:73::5f6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 31721385; Wed, 5 Oct 2022 15:29:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 31721385 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1664983786; bh=fhWAv3XoJ4MKi2R/EsBnzcg48N1lTjy8sf1fdDB1rzg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Yflxwk16JAgvC0ItDDpzlPeOb7IoN4akI7urQVYJL3vCtS5riyOkNXUojjfB6cYsq wbxWoXmyj3F2Yy1nURLmwGUnIfZTfcMy/TA3pkYiax1uC0ieJoIFVFAZU6OQbvjICA zVrCJOYm5WY/25d2gAHQ+SC76ylrOGDAa4/kfB0r5L0qpCdyRquvzzP2whkkOK5gYZ kaeTw4DmMl8ruInK+y7vag1MIXKB2pUxF0UdFJbc9X2rxKkEqY4FCgcKtbqPBW/sHO hwd3JreqLR+2gS0uGUunue83dXXbm04B3kymQXx2Si5Kz9+uEfdoP6Pdcj4sCZLPYR ybCckH34l62dQ== From: Jonathan Corbet To: Mauro Carvalho Chehab Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jani Nikula Subject: Re: [PATCH 5/5] docs: improve the HTML formatting of kerneldoc comments In-Reply-To: <20221005065909.33ba2523@sal.lan> References: <20221004201222.281845-1-corbet@lwn.net> <20221004201222.281845-6-corbet@lwn.net> <20221005065909.33ba2523@sal.lan> Date: Wed, 05 Oct 2022 09:29:45 -0600 Message-ID: <87tu4i9tli.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Mauro Carvalho Chehab writes: > Nitpick: you forgot to close the parenthesis on your comment ;-) Hey, I gotta provide something for people to complain about :) >> + # >> + print ".. container:: kernelindent\n\n"; > > I liked the new alignment: it makes easier to identify what belongs > to each definition block. > > As I didn't test the patches, it sounds worth mentioning that it makes > sense to check if this won't badly affect epub and/or LaTeX/PDF outputs. > > The LaTeX output generator in particular has a problem with long > lines with fixed-width lines: if the text doesn't fit into one line, it > either truncates it or makes the text go outside the margins. > > If the container affects the PDF outputs, we need to double-check if > this would break its output. The __container:: directive is pretty much defined as contributing a
do the HTML output, so I do not expect problems. That said, I've not yet tested it, and clearly need to. > Also, when the container directive was introduced? Does it affect > the minimal Sphinx version we support? It seems that this was old > enough to not require any changes at the minimal version, but, > from https://www.sphinx-doc.org/en/master/changes.html, it seems > that LaTeX support for it was added only at Sphinx v4.1 on this PR: > > https://github.com/sphinx-doc/sphinx/pull/9166 > > So, we need to double-check if are there any changes before and after > such version at the places container is used - or change the kerneldoc > to only emit such tags on PDF depending on the Sphinx version. I've tested things as far back as 2.4.5, where all is well. I don't currently have a machine that is capable of running earlier versions; I'll need to conjure one of those up, I guess. (Either that or just bite the bullet and move the minimum version forward!) Thanks, jon