From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753583AbcFGGoX (ORCPT ); Tue, 7 Jun 2016 02:44:23 -0400 Received: from mga02.intel.com ([134.134.136.20]:5301 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751500AbcFGGoV (ORCPT ); Tue, 7 Jun 2016 02:44:21 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,432,1459839600"; d="scan'208";a="996722356" From: Jani Nikula To: Markus Heiser , Jonathan Corbet Cc: Daniel Vetter , Grant Likely , Mauro Carvalho Chehab , Dan Allen , Russel Winder , Keith Packard , LKML , linux-doc@vger.kernel.org, Hans Verkuil Subject: Re: rst2pdf (was [PATCH 00/10] Documentation/Sphinx) In-Reply-To: <1241B2AE-2257-4C72-97A1-D1D22D713442@darmarit.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <877fec7gfm.fsf@intel.com> <36300F5F-C3F3-4A55-9257-788CF9F96CA4@darmarit.de> <878tyrbo36.fsf@intel.com> <5369C8B8-47F2-4B67-A314-5EB5471ABA00@darmarit.de> <87k2ibfh0x.fsf@intel.com> <20160603144732.18db8869@lwn.net> <1241B2AE-2257-4C72-97A1-D1D22D713442@darmarit.de> User-Agent: Notmuch/0.22+12~gbdd9442 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) Date: Tue, 07 Jun 2016 09:44:16 +0300 Message-ID: <8760tl7b27.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 07 Jun 2016, Markus Heiser wrote: > I looked closer to rst2pdf, it supports only the docutils reST, but > not the sphinx superset ... > > ------------- > $ rst2pdf index.rst > index.rst:15: (ERROR/3) Unknown interpreted text role "ref". > index.rst:15: (ERROR/3) Unknown interpreted text role "ref". > index.rst:27: (ERROR/3) Unknown directive type "toctree". This doesn't actually happen if you run rst2pdf through Sphinx. > .. toctree:: > :maxdepth: 1 > > kernel-doc-intro > kernel-doc-syntax > ------------- > > > rules like ":ref:", domains like ":c:type:" and directives like ".. toctree:" > are a part of the (extended) reST syntax from sphinx, thats why > standard docutils (like rst2*) will not work ... You will get warnings like [WARNING] styles.py:548 Using undefined style 'function', aliased to style 'normal'. [WARNING] styles.py:548 Using undefined style 'type', aliased to style 'normal'. but it's a matter of defining a custom rst2pdf stylesheet. It's json with a sort of inheritance model, so it should be easy to just extend the existing stylesheet. BR, Jani. -- Jani Nikula, Intel Open Source Technology Center