Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1582748pxu; Sat, 12 Dec 2020 18:49:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrPfm5nmgGFiCT5nUAJ7AVtRen/tM4ao1/NYWl81j0C/Glhr0wJY8CSF7ySA38CCAxzSwp X-Received: by 2002:a05:6402:797:: with SMTP id d23mr358156edy.302.1607827785727; Sat, 12 Dec 2020 18:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607827785; cv=none; d=google.com; s=arc-20160816; b=Mg4LjtcG6Dpug8qKmw9C2JvW25TzREMyEECA/xYe2fBWvZmHdpL2sZP3LcQZDnBFi3 stan7L4krkSi3m/6a+aRmKZMOxCCUjLuxT2tzg4rPufYDhc3m4/pRTReLk5XxLQTNkjX zBNtsF2uTHC4yAz2rf0XkkFICdwqqMhkarvDBw1TGm0MUgNWOd3OKSTmTJZTT1Qkl4cQ unQKJLSBBOQWpqCJRCd8zBL9eAYP5zFVlpXHeHFziV4v/TKBlxb5cIzKkpA/Zmr67yzw JNVHXiFPtZ/PaW5Y/pS+ElQ5Y7vK2pDnw+mrES78c4m+ec3Vnd04LjpUsHhVSZTt1qoU PoRg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:dkim-filter; bh=TUKuBk1yLTj6iJl57tiIUylufG0Uuv+IzcChQMN3mgU=; b=nb2VbigvLvaO91F5cSHdoAfb6BZJRGCEWbQ5clhc2CIF/DJgUOTCkZtEV08B3QuPwd G1MG8KrVizwlp7SI61PAnJeWb7DRrFiSzw4UWazOH6V8Hu1kHsEHWRm40WaegMJH4gRZ 45LkyEiz5AK2F9Ru/FOZadRm/AC5+odCE6L4224+bP/U1ZrodLxV3bPHzCmqNBFembKO 292rLG8+EUjXuNABxrncofxrWUc3A7BEvhFudbtzkDsf2GDQDr0zX5ZhamZPdxBACqFs XjFHTdGKK5Wa6zxBV0MOMon4CuUvn9OJnAnoqQ+giy5xvX8ivyDpcarT38/uFfz+89qA xLIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=DLCsy9Kh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si6916804ejd.293.2020.12.12.18.49.23; Sat, 12 Dec 2020 18:49:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=DLCsy9Kh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394041AbgLKUtw (ORCPT + 99 others); Fri, 11 Dec 2020 15:49:52 -0500 Received: from ms.lwn.net ([45.79.88.28]:39128 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393915AbgLKUtk (ORCPT ); Fri, 11 Dec 2020 15:49:40 -0500 X-Greylist: delayed 108013 seconds by postgrey-1.27 at vger.kernel.org; Fri, 11 Dec 2020 15:49:40 EST Received: from lwn.net (localhost [127.0.0.1]) (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 33CB72CA; Fri, 11 Dec 2020 20:49:00 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net 33CB72CA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1607719740; bh=TUKuBk1yLTj6iJl57tiIUylufG0Uuv+IzcChQMN3mgU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DLCsy9KhstfgEKIf/LylZp0NnHpDxD0qTRlJfmrEtCNvDVipTAWkeyamFBiJnbuC3 hs5QykQKEQoNcPQimiy8rJnRNWdoNg3FbhBdm3Zz5ERZkQjiCWYMnEIbEgg5i21at3 O2PQYM+beUlJTHubQGYz1wnJST0bHe5n6jMiiSriscmA77ZpU1jRgndDqc8KUD9oGq bU66sZie6MIzPd+JDCAIo6hCwqekZai5F6K7F4trRa0C7xkojt0FtBsFDal633DWsy PIdV2iO811offKh65uSecAz+77Xjhr/Xhc4yS/gFf/Q9hSJ8HrvaGmBD3ArnlJMlJC S+aV9TeyzdVOg== Date: Fri, 11 Dec 2020 13:48:59 -0700 From: Jonathan Corbet To: Mauro Carvalho Chehab Cc: Linux Doc Mailing List , Masahiro Yamada , Mauro Carvalho Chehab , Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH RFC v2] docs: experimental: build PDF with rst2pdf Message-ID: <20201211134859.5ab8e0c2@lwn.net> In-Reply-To: References: <20201210172938.3b3086b6@coco.lan> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 11 Dec 2020 09:33:32 +0100 Mauro Carvalho Chehab wrote: > Add an experimental PDF builder using rst2pdf > > Signed-off-by: Mauro Carvalho Chehab > --- > > Please notice that 18 documents (of a total of 71) won't build with > rst2pdf. There's an opened issue about that at: > > https://github.com/rst2pdf/rst2pdf/issues/958 > > v2: usage of SPHINXDIRS was fixed. > > > Documentation/Makefile | 5 +++++ > Documentation/conf.py | 21 +++++++++++++++------ > Documentation/sphinx/load_config.py | 12 ++++++++++++ > Documentation/userspace-api/media/Makefile | 1 + > Makefile | 4 ++-- > 5 files changed, 35 insertions(+), 8 deletions(-) So I would dearly love to have rst2pdf working. I applied this, then tried to see what would happen if I ran a build without having rst2pdf installed: > 1108 meer kernel: make htmldocs > SPHINX htmldocs --> file:///stuff/k/git/kernel/Documentation/output > make[2]: Nothing to be done for 'html'. > WARNING: The kernel documentation build process > support for Sphinx v3.0 and above is brand new. Be prepared for > possible issues in the generated output. > enabling CJK for LaTeX builder > > Extension error: > Could not import extension rst2pdf.pdfbuilder (exception: No module named 'rst2pdf') > make[1]: *** [Documentation/Makefile:91: htmldocs] Error 2 > make: *** [Makefile:1663: htmldocs] Error 2 Methinks it's perhaps not quite ready for linux-next yet :) With rst2pdf installed I get a bunch of zero-length files, as promised. Pretty much none of the larger "books" make it through. It's a start, though. I'll happily apply this as a step forward once it doesn't break the docs build if rst2pdf is missing. Thanks, jon