From 2eb2752988d4301ebf8971ef3f1e59456cb5dc79 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 18 May 2020 18:12:27 +0200 Subject: [PATCH] Add link to PDF document Switch to openstackdocstheme 2.2.0 that can link to PDF document, enable this with setting openstackdocs_pdf_link. Note that the link to the published document only works on docs.openstack.org where the PDF file is placed in the top-level html directory. The site-preview places the PDF in a pdf directory. Depends-On: https://review.opendev.org/728938 Change-Id: I29dddfa06183ecadb8f23feb2ad2e3c1c5a233cc --- doc/requirements.txt | 2 +- doc/source/conf.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/requirements.txt b/doc/requirements.txt index ec4298aec9f1..946d4519da2f 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -7,7 +7,7 @@ sphinxcontrib-seqdiag>=0.8.4 # BSD sphinxcontrib-svg2pdfconverter>=0.1.0 # BSD sphinx-feature-classification>=0.2.0 # Apache-2.0 os-api-ref>=1.4.0 # Apache-2.0 -openstackdocstheme>=2.1.2 # Apache-2.0 +openstackdocstheme>=2.2.0 # Apache-2.0 # releasenotes reno>=3.1.0 # Apache-2.0 diff --git a/doc/source/conf.py b/doc/source/conf.py index 29c6c03f165e..4d3fe75f9a25 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -142,6 +142,7 @@ latex_use_xindy = False openstackdocs_repo_name = 'openstack/nova' openstackdocs_bug_project = 'nova' openstackdocs_bug_tag = 'doc' +openstackdocs_pdf_link = True # keep this ordered to keep mriedem happy #