Fix build autogenerated config files doc on RTD

This commit changes working dir from which sphinx-build is
run when using tox to make it working in same way as it is
done on readthedocs.org when documentation is build.

This commit also fixes path to oslo-config-generator config file
that it will be fine for spinx-build to autogenerate config.

Change-Id: I14982b3cbaa0bc87390e8694c4c866a3b7c375fa
This commit is contained in:
Slawek Kaplonski 2019-07-24 15:34:44 +02:00
parent 01d5d02543
commit 4b91c2baad
2 changed files with 3 additions and 2 deletions

View File

@ -3,4 +3,4 @@ tobiko.conf
===========
.. show-options::
:config-file: etc/oslo-config-generator/tobiko.conf
:config-file: ../../etc/oslo-config-generator/tobiko.conf

View File

@ -152,7 +152,8 @@ deps = -r{toxinidir}/doc/requirements.txt
basepython = {[docs]basepython}
envdir = {[docs]envdir}
deps = {[docs]deps}
commands = sphinx-build -W -b html doc/source doc/build/html
changedir = doc/source
commands = sphinx-build -W -b html . ../build/html
[testenv:linkcheck]