From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 2/4] doc: Add Sphinx config to build pdf version of guides Date: Fri, 30 Jan 2015 22:03:28 +0100 Message-ID: <11662456.XmmOfOTMeT@xps13> 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: John McNamara Return-path: In-Reply-To: <1422641608-8514-3-git-send-email-john.mcnamara-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" 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