diff --git a/doc/requirements.txt b/doc/requirements.txt index 307d4d3f7..f6d9b4bc3 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -2,6 +2,7 @@ sphinx==4.2.0 openstackdocstheme>=2.2.1,<=2.3.1 # Apache-2.0 docutils==0.17.1 PyYAML==6.0 +sphinx-tabs<=3.4.1 # API Reference Guide os-api-ref>=1.5.0 # Apache-2.0 diff --git a/doc/source/conf.py b/doc/source/conf.py index d9b7a4e08..dae81992c 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -36,7 +36,8 @@ author = 'StarlingX' # ones. extensions = [ # 'openstackdocstheme', - 'starlingxdocs_plus' + 'starlingxdocs_plus', + 'sphinx_tabs.tabs' ] if tags.has('use_spellext'): diff --git a/tox.ini b/tox.ini index 75128d973..6c3aa1e3f 100644 --- a/tox.ini +++ b/tox.ini @@ -35,7 +35,7 @@ deps = -r{toxinidir}/doc/requirements.txt commands = {[testenv:prebuild-docs]commands} - sphinx-build -a -E -W --keep-going -d doc/build/doctrees -t starlingx -t openstack -b html doc/source doc/build/html {posargs} + sphinx-build -a -E -W --keep-going -d doc/build/doctrees -t starlingx -t openstack -t virtual -b html doc/source doc/build/html {posargs} {[testenv:postbuild-docs]commands} # Note: The dev env for the docs team uses a version of tox that does not yet support allowlist_externals whitelist_externals = bash