diff --git a/.zuul.yaml b/.zuul.yaml index 2cc516b9..efea3e31 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,12 +1,16 @@ - project: + templates: + - build-openstack-docs-pti check: jobs: - - build-openstack-releasenotes - - build-openstack-sphinx-docs + - build-openstack-releasenotes: + vars: + sphinx_python: python3 gate: jobs: - - build-openstack-releasenotes - - build-openstack-sphinx-docs + - build-openstack-releasenotes: + vars: + sphinx_python: python3 post: jobs: - cbsl-init-upload-git-mirror diff --git a/doc/source/conf.py b/doc/source/conf.py index 211c6617..2091da14 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -142,7 +142,7 @@ html_theme = 'classic' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +# html_static_path = ['_static'] # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied diff --git a/setup.cfg b/setup.cfg index aa27fe0a..0648e815 100644 --- a/setup.cfg +++ b/setup.cfg @@ -27,11 +27,6 @@ packages = setup-hooks = pbr.hooks.setup_hook -[build_sphinx] -all_files = 1 -build-dir = doc/build -source-dir = doc/source - [entry_points] console_scripts = cloudbase-init = cloudbaseinit.shell:main diff --git a/tox.ini b/tox.ini index cd8c8ac6..00f170e2 100644 --- a/tox.ini +++ b/tox.ini @@ -41,7 +41,8 @@ commands = [testenv:docs] basepython = python3 -commands = python setup.py build_sphinx +commands = + sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html [flake8] # E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126