Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp984829rwb; Tue, 4 Oct 2022 13:37:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM53Dddm0v/pJBU5PktiiNOgmUWTB3X9BaI8WD9OwcN4LRzncaVUWwwT/0k2/FNERRX1FNCa X-Received: by 2002:a63:ff4f:0:b0:439:61d6:197 with SMTP id s15-20020a63ff4f000000b0043961d60197mr24549530pgk.67.1664915851819; Tue, 04 Oct 2022 13:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664915851; cv=none; d=google.com; s=arc-20160816; b=xfHnRimKg41stVkKm/Kk9OxV7mr1SfuXg7C7c4hA9s7H8nCsAW9+SGejugjBhmRrUX miq86HkDzsuWp+0//SnAFzKJ8IinUAu9C21SHq/OMCoHs7jviEy5Ry39baTIduRfYzY4 tR7G7vovNSdGTXN0sShLqCN5zK+Y2imfU53HZgJH8Jo8ra8OjhBW/eL2E18Ak1ioL7C9 jlrK3xgz/11XWLqcrsQfALXSBbZiyrGD/nDSmKRLedKjPF38iERMUtjzLCdB/xy8rdFT 3MCgSdl3GYVc+MffEZB7ljCa3RXuZp4yPnBEgmQrbrGrX0yj9qg0D/S41nsa7IbVdmK0 1ipA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=m4M2Ub4uKFOA9of7HT4ZvmGu/HwFJamTrsz9zZ87vbU=; b=Ze3ZIq8Q+LTVhR7p3ZzVH9tQgPK41b7SMczGoxgSj5EdbaKjCjRA4OWseCkKdTdnwS zAKlrneOLbYHt427fflDRRG3ZEPWs4PWmPXxSpw0MDgbfnUSBuV0Nn3YPCE+s6RqHxkY Bk42lIGlh8yQIT2XAtXC8voZPT2bY5GSj5NXJnvyGFid0/x+UA6EktgWfVssNs5ICqjF BOuzAgaGxyd6hwVi12xhOQc/10HS+iYtvqkgpsvwRvQ3v7NZAj/8orYbh1XBSbpfkXHT +TS1lTJfVAJhcyFWclfCMVqfx+CgtmLb/zz3LpT//gdvcBpu9eb3/H0iq2hlQ6KCbtjm OrrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=kFlmfeYK; 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 r12-20020a17090a690c00b00203246e4383si3281618pjj.145.2022.10.04.13.37.19; Tue, 04 Oct 2022 13:37:31 -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=kFlmfeYK; 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 S229507AbiJDUMi (ORCPT + 99 others); Tue, 4 Oct 2022 16:12:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbiJDUMg (ORCPT ); Tue, 4 Oct 2022 16:12:36 -0400 Received: from ms.lwn.net (ms.lwn.net [45.79.88.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A85F222A9; Tue, 4 Oct 2022 13:12:34 -0700 (PDT) Received: from meer.lwn.net (unknown [IPv6:2601:281:8300:73::5f6]) by ms.lwn.net (Postfix) with ESMTPA id D7D3C385; Tue, 4 Oct 2022 20:12:33 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net D7D3C385 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1664914354; bh=m4M2Ub4uKFOA9of7HT4ZvmGu/HwFJamTrsz9zZ87vbU=; h=From:To:Cc:Subject:Date:From; b=kFlmfeYKOG2VMoHmaMGE4rqx0kI24GE3c+EPYIbmWKbMMZC6zyuOmsgk4BIplaX/o gmWYRIHcg7QwXjbcJbM41NfgQV8ZkPjx4ibaQdM0uXfNmbj5BR3vMOduW10n1NlxfW Zwykh690xXivuIBt0tYm8/7szCsQtUtxHQ1Z6w796guo4xnEZdfToUkDTLnK4f1Z9y 2ASGCeEqfU7KPlNJPbu1WLm7TnHfuZRG2sodw3OBZk3hVPXm7p3bIfPSSUgpUxfShG dTvJGmzKf37JrbZVgddP04pIKtGUZ6FLL2plBffixwK+iar1sVWw3HXeCu5L0U85/8 dyBDMb/Y80tYg== From: Jonathan Corbet To: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jani Nikula , Mauro Carvalho Chehab , Jonathan Corbet Subject: [PATCH RFC 0/5] docs: Improvements to our HTML output Date: Tue, 4 Oct 2022 14:12:17 -0600 Message-Id: <20221004201222.281845-1-corbet@lwn.net> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 For a long time we have rejoiced that our HTML output from Sphinx is far better than what we got from the old DocBook toolchain. But it still leaves a lot to be desired; the following is an attempt to improve the situation somewhat. Sphinx has a theming mechanism for HTML rendering. Since the kernel's adoption of Sphinx, we have been using the "Read The Docs" theme — a choice made in a bit of a hurry to have *something* while figuring out the rest. RTD is OK, but it is not hugely attractive, requires the installation of an extra package, and does not observe all of the Sphinx configuration parameters. Among other things, that makes it hard to put reasonable contents into the left column in the HTML output. The Alabaster theme is the default for Sphinx installations, and is bundled with Sphinx itself. It has (IMO) nicer output and gives us the control that we need. So: switch to Alabaster. Additional patches adjust the documentation and remove the RTD references from scripts/sphinx-pre-install. The final patch changes the way that kerneldoc declarations are rendered to (IMO) improve readability. That requires some changes to kernel-doc to output a new container block and some CSS tweaks to improve things overall. It should be noted that I have a long history of inflicting ugly web designs on the net; this work is a start, but I think we could do far better yet. It would be great if somebody who actually enjoys working with CSS and such would help to improve what we have. As before, I've put a copy of the rendered docs at: https://static.lwn.net/kerneldoc/ To compare the kerneldoc changes specifically, pick a page that includes a lot of definitions; for example: https://static.lwn.net/kerneldoc/driver-api/media/drivers/frontends.html vs. https://www.kernel.org/doc/html/latest/driver-api/media/drivers/frontends.html Jonathan Corbet (5): docs: Switch the default HTML theme to alabaster docs: tweak some Alabaster style parameters docs: update sphinx.rst to reflect the default theme change docs: sphinx-pre-install: don't require the RTD theme docs: improve the HTML formatting of kerneldoc comments Documentation/conf.py | 27 ++++++++++++- Documentation/doc-guide/sphinx.rst | 16 +++----- Documentation/sphinx-static/custom.css | 25 +++++++++++++ Documentation/sphinx/requirements.txt | 1 - scripts/kernel-doc | 52 ++++++++++++++++---------- scripts/sphinx-pre-install | 8 ---- 6 files changed, 87 insertions(+), 42 deletions(-) create mode 100644 Documentation/sphinx-static/custom.css -- 2.37.2