[dpdk-dev] [PATCH v2 0/4] doc: Add 'make pdf' target to convert guide docs to pdf

John McNamara john.mcnamara at intel.com
Fri Jan 30 19:13:24 CET 2015


This patch adds support for creating PDF versions of the user guides.

Specifically:

    * The Programmer's Guide
    * The Linux Getting Started Guide
    * The FreeBSD Getting Started Guide
    * The Sample Applications User Guide
    * The TestPMD User Guide
    * The Release Notes

The local and online Html documentation is very useful but we have had
internal and external requests from people who also liked the PDF
documentation in older releases.

The PDF generation is fully automated and uses the same Sphinx build system
and RST files used for the Html docs but uses the 'latexpdf' target. In
addition to the standard Sphinx Python modules it requires the Tex/LaTeX
toolchain. For best results it requires a TexLive 'Full' installation.

The PDF documents are generated as follows:

    make pdf
    # or
    make doc-pdf

The PDFs aren't generated as part of the 'make doc' rule since they can take
some 1-3 minutes to build and since they have a large toolchain dependency.

V2 Changes:

    * Removes config file duplication
    * Converts SVG files to PNG on the fly
    * Splits the patch into distinct mk/doc parts
    * Fixes issues in the RST docs that prevent PDF generation


John McNamara (4):
  mk: Add 'make doc-pdf' target to convert guide docs to pdf
  doc: Add Sphinx config to build pdf version of guides
  doc: Fix encoding of (r) character
  doc: Refactored split cell formatting in one table

 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/rel_notes/supported_features.rst |    2 +-
 doc/guides/sample_app_ug/conf.py            |   41 +++++++++++++++++++++
 doc/guides/sample_app_ug/test_pipeline.rst  |   32 +++++++++++-----
 doc/guides/testpmd_app_ug/conf.py           |   41 +++++++++++++++++++++
 mk/rte.sdkdoc.mk                            |   33 +++++++++++++++++-
 mk/rte.sdkroot.mk                           |    3 +-
 11 files changed, 350 insertions(+), 17 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

-- 
1.7.4.1



More information about the dev mailing list