Drop options for old openstackdocstheme

This is based on the changes in OpenStack projects like [1] in ironic.

Some options are now automatically configured by openstackdocstheme
1.20.0 and later.
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

[1] 1becd6dda9f61652d1ff1345898514bf0e73c0fb

Change-Id: I2ff42d5a46f99b4aeaaf1b4f5abc47cd7bbbbb00
This commit is contained in:
Takashi Kajinami 2024-02-01 13:16:46 +09:00
parent 0a3f8987e1
commit f5c0bb707a
3 changed files with 4 additions and 18 deletions

View File

@ -1,7 +1,3 @@
# 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.
sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
openstackdocstheme>=1.31.2 # Apache-2.0
sphinx_rtd_theme

View File

@ -16,8 +16,6 @@ import sys
import os
import shlex
from cloudbaseinit import version as cbs_version
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
@ -54,20 +52,9 @@ source_suffix = '.rst'
master_doc = 'index'
# General information about the project.
project = u'cloudbase-init'
copyright = u'2012-2019, Cloudbase Solutions Srl'
author = u'Cloudbase Solutions Srl'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = cbs_version.get_canonical_version()
# The full version, including alpha/beta/rc tags.
release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#

View File

@ -30,11 +30,14 @@ commands =
commands = {posargs}
[testenv:docs]
allowlist_externals =
rm
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
-egit+https://github.com/openstack/cloudbase-init\#egg=cloudbase-init
-r{toxinidir}/requirements.txt
commands =
rm -rf doc/build
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
[testenv:releasenotes]