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_version to not auto-version the documents.

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.

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

Remove also now obsolete sections from setup.cfg and cleanup tox.ini.

Change-Id: I861983389f7dc57d229a2c87e28ff3deb91a4a63
This commit is contained in:
Andreas Jaeger 2020-06-03 20:48:42 +02:00
parent 6d7ff08baf
commit d926c5f13d
4 changed files with 8 additions and 19 deletions

View File

@ -44,8 +44,9 @@ source_suffix = '.rst'
#source_encoding = 'utf-8-sig' #source_encoding = 'utf-8-sig'
# Setting for openstackdocstheme: # Setting for openstackdocstheme:
repository_name = "openstack/ossa" openstackdocs_repo_name = "openstack/ossa"
bug_project = 'ossa' openstackdocs_auto_name = False
openstackdocs_bug_project = 'ossa'
# The master toctree document. # The master toctree document.
master_doc = 'index' master_doc = 'index'
@ -84,7 +85,7 @@ add_module_names = False
show_authors = False show_authors = False
# The name of the Pygments (syntax highlighting) style to use. # The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx' pygments_style = 'native'
# A list of ignored prefixes for module index sorting. # A list of ignored prefixes for module index sorting.
modindex_common_prefix = [] modindex_common_prefix = []

View File

@ -7,12 +7,3 @@ description-file =
author = OpenStack Vulnerability Management Team author = OpenStack Vulnerability Management Team
author-email = openstack-discuss@lists.openstack.org author-email = openstack-discuss@lists.openstack.org
home-page = http://www.openstack.org/ home-page = http://www.openstack.org/
[build_sphinx]
all_files = 1
build-dir = doc/build
source-dir = doc/source
warning-is-error = 1
[pbr]
warnerrors = True

View File

@ -1,5 +1,5 @@
# needed for doc build # needed for doc build
Jinja2>=2.7.3 Jinja2>=2.7.3
PyYAML==3.11 PyYAML==3.11
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD sphinx>=2.0.0,!=2.1.0 # BSD
openstackdocstheme>=1.19.0 # Apache-2.0 openstackdocstheme>=2.2.1 # Apache-2.0

View File

@ -4,16 +4,13 @@ minversion = 1.6
skipsdist = True skipsdist = True
[testenv] [testenv]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
usedevelop = True usedevelop = True
install_command = pip install {opts} {packages}
setenv = VIRTUAL_ENV={envdir} setenv = VIRTUAL_ENV={envdir}
[testenv:docs] [testenv:docs]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
commands = sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html commands = sphinx-build -W -b html -d doc/build/doctrees doc/source doc/build/html
[testenv:venv] [testenv:venv]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
commands = {[testenv:docs]commands} commands = {[testenv:docs]commands}