From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f171.google.com (mail-we0-f171.google.com [74.125.82.171]) by dpdk.org (Postfix) with ESMTP id B3807255 for ; Fri, 30 Jan 2015 22:03:56 +0100 (CET) Received: by mail-we0-f171.google.com with SMTP id k11so26911870wes.2 for ; Fri, 30 Jan 2015 13:03:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=iNkRhSqiNxlkMg2846j0QzN9VPCjD27T3HmMzAYLp5Y=; b=c8FFueXteqfBT5TqZ2cz3hkGJSfUHQAOZQnFwpb3J8qzkGSsMPdbHKjGLIjLnXi/xR LX0WG24WrI3Xh9WStGP9cox92KCteoCfRLFo4AN308UuavHaCddo5lTlDBo1BCByYl1H R0RG6u8xl4VsAJ5WjJdP5sIvO9rVkZqql96U67ZPgHJdqqzdEgwwuO7NQp+HuZBywuDD Vc2w30GhFIVz43Hj2ON471Z0qagggR2ienHKxI4OBltL4oxGvPfvsDWwqF1+dZ7MPeNk hBewedxhfVd3oflmbyHxZkVYVSj/xXfuXAYu2ytr0zr1llJxyA7p7aB0xA7NGWAbMEke y9wA== X-Gm-Message-State: ALoCoQkSQUhA41iE569yhXVtWvf5UO3967JaNZ4ugr9iJGF8RmdiAhqz8uLEWowaeKn6S26o6ZmX X-Received: by 10.180.207.110 with SMTP id lv14mr1202742wic.41.1422651836583; Fri, 30 Jan 2015 13:03:56 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id o7sm3953726wix.12.2015.01.30.13.03.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jan 2015 13:03:55 -0800 (PST) From: Thomas Monjalon To: John McNamara Date: Fri, 30 Jan 2015 22:03:28 +0100 Message-ID: <11662456.XmmOfOTMeT@xps13> Organization: 6WIND User-Agent: KMail/4.14.4 (Linux/3.18.4-1-ARCH; KDE/4.14.4; x86_64; ; ) In-Reply-To: <1422641608-8514-3-git-send-email-john.mcnamara@intel.com> References: <1421255657-19521-1-git-send-email-john.mcnamara@intel.com> <1422641608-8514-1-git-send-email-john.mcnamara@intel.com> <1422641608-8514-3-git-send-email-john.mcnamara@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v2 2/4] doc: Add Sphinx config to build pdf version of guides X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2015 21:03:56 -0000 2015-01-30 18:13, John McNamara: > Add Python Sphinx config to allow conversion of guides > to PDF format. > > Signed-off-by: John McNamara > --- > doc/guides/conf.py | 51 ++++++++++++++++++++++++++++++++++--- > doc/guides/freebsd_gsg/conf.py | 41 +++++++++++++++++++++++++++++ > doc/guides/linux_gsg/conf.py | 41 +++++++++++++++++++++++++++++ > doc/guides/prog_guide/conf.py | 41 +++++++++++++++++++++++++++++ > doc/guides/rel_notes/conf.py | 41 +++++++++++++++++++++++++++++ > doc/guides/sample_app_ug/conf.py | 41 +++++++++++++++++++++++++++++ > doc/guides/testpmd_app_ug/conf.py | 41 +++++++++++++++++++++++++++++ > 7 files changed, 293 insertions(+), 4 deletions(-) > create mode 100644 doc/guides/freebsd_gsg/conf.py > create mode 100644 doc/guides/linux_gsg/conf.py > create mode 100644 doc/guides/prog_guide/conf.py > create mode 100644 doc/guides/rel_notes/conf.py > create mode 100644 doc/guides/sample_app_ug/conf.py > create mode 100644 doc/guides/testpmd_app_ug/conf.py I think it is possible to use the existing conf.py. The only thing different in all these files is the generated filename which could be computed from the title or extracted from an rst comment. > --- a/doc/guides/conf.py > +++ b/doc/guides/conf.py > +texinfo_documents = [ > + ('index', > + '', > + '', > + '', > + '', > + '', > + 'Miscellaneous')] Why texinfo? > + > +# Override the dafault Latex formatter. Typo: default > +class CustomLatexFormatter(LatexFormatter): > + > + def __init__(self, **options): > + > + super(CustomLatexFormatter, self).__init__(**options) > + > + self.verboptions = r"formatcom=\footnotesize" Please comment this line. I don't understand. > + > +PygmentsBridge.latex_formatter = CustomLatexFormatter -- Thomas