Generate a PDF version of the docsite. Request from a user in Slack. (#2900)

This commit is contained in:
Katelyn Baker
2018-03-29 12:43:22 +01:00
committed by GitHub
parent 2f0f737c3f
commit c59f3e0786
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']