47149987c1
- Adds a theme variable, sidebar_dropdown, to set a dropdown menu for the API references. To test, uncomment the parameter html_theme_options in doc/source/conf.py OR build the API Ref demo docs. - Adds an API Ref docs demo integrating os-api-ref and openstackdocstheme. Tested with webserver: python -m SimpleHTTPServer <port_num>. Change-Id: I346695cd407ecf4efc0a5e00f2c0ccc1ea099ec5
39 lines
915 B
INI
39 lines
915 B
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = pep8
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
sitepackages = False
|
|
whitelist_externals = rm
|
|
|
|
[testenv:pep8]
|
|
commands =
|
|
flake8 openstackdocstheme
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands =
|
|
rm -rf doc/build api-ref/build
|
|
python setup.py build_sphinx
|
|
sphinx-build -a -E -W -d api-ref/build/doctrees -b html api-ref/source api-ref/build/html
|
|
|
|
[testenv:releasenotes]
|
|
commands =
|
|
rm -rf releasenotes/build
|
|
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[testenv:api-ref]
|
|
commands =
|
|
rm -rf api-ref/build
|
|
sphinx-build -a -E -W -d api-ref/build/doctrees -b html api-ref/source api-ref/build/html
|
|
|
|
[flake8]
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools
|
|
show-source = True
|