Switch to newer openstackdocstheme version

Switch to openstackdocstheme 2.2.1 version. Using
this version will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

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.

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: Ie0bbbbf0c725e19f07db8bdc21485e523fa6854c
This commit is contained in:
Andreas Jaeger 2020-06-02 13:56:17 +02:00
parent 31b621dc0f
commit bbba8294b9
2 changed files with 8 additions and 8 deletions

View File

@ -50,7 +50,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 --------------------------------------------------
@ -62,11 +62,11 @@ pygments_style = 'sphinx'
html_theme = 'openstackdocs'
# openstackdocstheme options
repository_name = 'openstack/whereto'
bug_project = 'openstack-doc-tools'
bug_tag = 'whereto'
openstackdocs_repo_name = 'openstack/whereto'
openstackdocs_auto_name = False
openstackdocs_bug_project = 'openstack-doc-tools'
openstackdocs_bug_tag = 'whereto'
html_last_updated_fmt = '%Y-%m-%d %H:%M'
# Output file base name for HTML help builder.
htmlhelp_basename = '%sdoc' % project

View File

@ -5,12 +5,12 @@
hacking>=3.0,<3.1.0 # Apache-2.0
coverage>=4.0,!=4.4 # Apache-2.0
sphinx>=1.8.0,!=2.1.0 # BSD
sphinx>=2.0.0,!=2.1.0 # BSD
oslotest>=1.10.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
testtools>=1.4.0 # MIT
# releasenotes
reno>=1.8.0 # Apache-2.0
reno>=3.1.0 # Apache-2.0
sphinxcontrib.autoprogram
openstackdocstheme>=1.24.0 # Apache-2.0
openstackdocstheme>=2.2.1 # Apache-2.0