From 4b91c2baade417c9fc5ac93d43a17348c779eefd Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Wed, 24 Jul 2019 15:34:44 +0200 Subject: [PATCH] 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 --- doc/source/configuration/tobiko.rst | 2 +- tox.ini | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/source/configuration/tobiko.rst b/doc/source/configuration/tobiko.rst index bc75c9689..1bca31844 100644 --- a/doc/source/configuration/tobiko.rst +++ b/doc/source/configuration/tobiko.rst @@ -3,4 +3,4 @@ tobiko.conf =========== .. show-options:: - :config-file: etc/oslo-config-generator/tobiko.conf + :config-file: ../../etc/oslo-config-generator/tobiko.conf diff --git a/tox.ini b/tox.ini index 7c2e08ba8..a759fcb35 100644 --- a/tox.ini +++ b/tox.ini @@ -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]