Browse Source

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: I04809a3cbfaaea711509f4a16548e4813780ddfc
changes/61/732561/1
Andreas Jaeger 1 year ago
parent
commit
82f7e4a1ff
2 changed files with 7 additions and 6 deletions
  1. +5
    -4
      doc/source/conf.py
  2. +2
    -2
      test-requirements.txt

+ 5
- 4
doc/source/conf.py View File

@ -48,12 +48,13 @@ add_function_parentheses = True
add_module_names = True
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
pygments_style = 'native'
# openstackdocstheme options
repository_name = 'openstack/tempest-stress'
bug_project = 'tempest'
bug_tag = 'doc'
openstackdocs_repo_name = 'openstack/tempest-stress'
openstackdocs_auto_name = False
openstackdocs_bug_project = 'tempest'
openstackdocs_bug_tag = 'doc'
# -- Options for HTML output --------------------------------------------------


+ 2
- 2
test-requirements.txt View File

@ -7,8 +7,8 @@ hacking>=3.0.1,<3.1.0 # Apache-2.0
coverage>=3.6 # Apache-2.0
stestr>=1.0.0 # Apache-2.0
python-subunit>=0.0.18 # Apache-2.0/BSD
sphinx>=2.0.0 # BSD
openstackdocstheme>=2.0.0 # Apache-2.0
sphinx>=2.0.0,!=2.1.0 # BSD
openstackdocstheme>=2.2.1 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
testtools>=1.4.0 # MIT

Loading…
Cancel
Save