Switch to newer openstackdocstheme and reno versions

Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. 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.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I4ce76439f598b73d0520577bb3b47c7f28ed3663
This commit is contained in:
Andreas Jaeger 2020-05-21 17:09:37 +02:00
parent fc6c459a0b
commit 76c6b3ad96
5 changed files with 11 additions and 17 deletions

View File

@ -1,9 +1,9 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
openstackdocstheme>=1.20.0 # Apache-2.0
reno>=2.5.0 # Apache-2.0
sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.3 # BSD
openstackdocstheme>=2.2.1 # Apache-2.0
reno>=3.1.0 # Apache-2.0
sphinx>=2.0.0,!=2.1.0 # BSD
os-api-ref>=1.4.0 # Apache-2.0
sphinxcontrib-apidoc>=0.2.0 # BSD
sphinx-feature-classification>=0.1.0 # Apache 2.0

View File

@ -35,7 +35,7 @@ add_function_parentheses = True
add_module_names = True
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = 'native'
# -- Options for HTML output --------------------------------------------------
@ -45,9 +45,10 @@ html_theme = 'openstackdocs'
# -- Options for openstackdocstheme -------------------------------------------
repository_name = 'openstack/os-brick'
bug_project = 'os-brick'
bug_tag = ''
openstackdocs_repo_name = 'openstack/os-brick'
openstackdocs_pdf_link = True
openstackdocs_bug_project = 'os-brick'
openstackdocs_bug_tag = ''
# -- Options for LaTeX output -------------------------------------------------

View File

@ -32,7 +32,6 @@ mox3==0.20.0
msgpack-python==0.4.0
netaddr==0.7.18
netifaces==0.10.4
openstackdocstheme==1.20.0
os-client-config==1.28.0
os-testr==1.0.0
os-win==3.0.0
@ -62,7 +61,6 @@ python-mimeparse==1.6.0
python-subunit==1.0.0
pytz==2013.6
PyYAML==3.12
reno==2.5.0
repoze.lru==0.7
requests==2.14.2
requestsexceptions==1.2.0
@ -71,8 +69,6 @@ rfc3986==0.3.1
Routes==2.3.1
six==1.10.0
snowballstemmer==1.2.1
Sphinx==1.6.2
sphinxcontrib-websupport==1.0.1
stestr==1.0.0
stevedore==1.20.0
suds-jurko==0.6

View File

@ -48,6 +48,6 @@ html_theme = 'openstackdocs'
# -- Options for openstackdocstheme -------------------------------------------
repository_name = 'openstack/os-brick'
bug_project = 'os-brick'
bug_tag = ''
openstackdocs_repo_name = 'openstack/os-brick'
openstackdocs_bug_project = 'os-brick'
openstackdocs_bug_tag = ''

View File

@ -5,9 +5,6 @@
hacking>=3.0.1,<3.1.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
ddt>=1.0.1 # MIT
reno>=2.5.0 # Apache-2.0
sphinx!=1.6.6,!=1.6.7,!=2.1.0,>=1.6.2 # BSD
openstackdocstheme>=1.20.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0
testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT