Merge "Add tox -e api-ref CLI"

This commit is contained in:
Zuul 2022-09-09 07:39:51 +00:00 committed by Gerrit Code Review
commit 99e79f9f6d
2 changed files with 14 additions and 1 deletions

View File

@ -58,6 +58,7 @@ html_theme_options = {
# (source start file, target name, title, author, documentclass
# [howto/manual]).
latex_documents = [
('index', 'Venus.tex', u'OpenStack Log API Documentation',
('index', 'Venus.tex',
u'OpenStack Log Management Service API Documentation',
u'OpenStack Foundation', 'manual'),
]

12
tox.ini
View File

@ -66,6 +66,18 @@ commands =
rm -rf doc/build/html
sphinx-build -W -b html doc/source doc/build/html
[testenv:api-ref]
description =
Generate the API ref. Called from CI scripts to test and publish to docs.openstack.org.
# This environment is called from CI scripts to test and publish
# the API Ref to docs.openstack.org.
envdir = {toxworkdir}/docs
deps = {[testenv:docs]deps}
commands =
rm -rf api-ref/build
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
allowlist_externals = rm
[flake8]
# Following checks are ignored on purpose.
#