Generate a PDF version of the docsite. Request from a user in Slack.

This commit is contained in:
Mike Hearn
2018-03-28 16:36:08 +02:00
parent eb52c8be35
commit 2e1f591e7f
5 changed files with 18 additions and 1 deletions

View File

@ -28,7 +28,13 @@ import sphinx_rtd_theme
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = []
extensions = ['rst2pdf.pdfbuilder']
# PDF configuration
pdf_documents = [('index', u'corda-developer-site', u'Corda Developer Documentation', u'R3')]
pdf_stylesheets = ['sphinx', 'kerning', 'a4', 'murphy', 'tenpoint']
pdf_compressed = True
pdf_fit_mode = "shrink"
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']