Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.autosummary',
'sphinx.ext.coverage',
'sphinx.ext.doctest',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
Expand Down Expand Up @@ -294,3 +295,15 @@
'oauth2client': ('http://oauth2client.readthedocs.org/en/latest/', None),
'python': ('https://docs.python.org/', None),
}

# Configuration for coverage:
# See: http://sphinx-doc.org/ext/coverage.html

coverage_ignore_modules = ['test_.*.py', '.*_pb2.py']
#coverage_ignore_functions = ()
#coverage_ignore_classes = ()
coverage_c_path = ['../gcloud/*.py', '../gcloud/*/*.py']
#coverage_c_regexes
#coverage_ignore_c_items
#coverage_write_headline
coverage_skip_undoc_in_source = True
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ basepython =
commands =
python -c "import shutil; shutil.rmtree('docs/_build', ignore_errors=True)"
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html
sphinx-build -W -E -b coverage -d docs/_build/doctrees docs docs/_build/coverage
deps =
Sphinx
passenv = {[testenv:system-tests]passenv} SPHINX_RELEASE READTHEDOCS LOCAL_RTD
Expand Down