Add support for google analytics to only the hudson-produced docs.

This commit is contained in:
Anne Gentle 2010-10-29 18:59:03 +00:00 committed by Tarmac
commit ab1c34f717
3 changed files with 7 additions and 1 deletions

BIN
doc/source/_templates/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -27,7 +27,13 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx.ext.todo',
todo_include_todos = True
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# Changing the path so that the Hudson build output contains GA code and the source
# docs do not contain the code so local, offline sphinx builds are "clean."
templates_path = []
if os.getenv('HUDSON_PUBLISH_DOCS'):
templates_path = ['_ga', '_templates']
else:
templates_path = ['_templates']
# The suffix of source filenames.
source_suffix = '.rst'