diff --git a/.gitignore b/.gitignore index e2eb2ef7a2e5..8e4001cb4b12 100644 --- a/.gitignore +++ b/.gitignore @@ -44,6 +44,7 @@ pip-log.txt # Built documentation docs/_build +docs/_build_doc2dash # Virtual environment env/ diff --git a/docs/_static/images/gcp-logo-32x32.png b/docs/_static/images/gcp-logo-32x32.png new file mode 100644 index 000000000000..1dcafb042990 Binary files /dev/null and b/docs/_static/images/gcp-logo-32x32.png differ diff --git a/docs/_static/images/gcp-logo.png b/docs/_static/images/gcp-logo.png new file mode 100644 index 000000000000..eb7f9d405fdc Binary files /dev/null and b/docs/_static/images/gcp-logo.png differ diff --git a/tox.ini b/tox.ini index d0cc47ded48d..43e37d45942b 100644 --- a/tox.ini +++ b/tox.ini @@ -79,6 +79,23 @@ deps = sphinx_rtd_theme passenv = {[testenv:system-tests]passenv} SPHINX_RELEASE READTHEDOCS +[testenv:docs-doc2dash] +setenv = + PYTHONPATH = {toxinidir}/_testing +basepython = {[testenv:docs]basepython} +commands = + sphinx-build -W -b html -d docs/_build_doc2dash/doctrees \ + docs docs/_build_doc2dash/html + doc2dash -vv --force -n google-cloud-python \ + -i docs/_static/images/gcp-logo-32x32.png -I index.html \ + -u https://google-cloud-python.readthedocs.io/en/latest/ \ + -d docs/_build_doc2dash/ docs/_build_doc2dash/html +deps = + {[testenv:docs]deps} + doc2dash +passenv = + {[testenv:docs]passenv} + [pep8] exclude = docs/conf.py,