This contains an env variable in conf.py for the build to contain the GA code

This commit is contained in:
Anne Gentle 2010-10-29 16:30:56 -05:00
parent e022738734
commit e03d5bef1f
2 changed files with 8 additions and 1 deletions

View File

@ -14,3 +14,4 @@ pageTracker._setAllowLinker(true);
pageTracker._trackPageview();
} catch(err) {}</script>
{% endblock %}

View File

@ -41,7 +41,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'