From e03d5bef1f4d3028dcb77c1cb3381ce1c8aeb281 Mon Sep 17 00:00:00 2001 From: Anne Gentle Date: Fri, 29 Oct 2010 16:30:56 -0500 Subject: [PATCH] This contains an env variable in conf.py for the build to contain the GA code --- doc/source/{_templates => _ga}/layout.html | 1 + doc/source/conf.py | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) rename doc/source/{_templates => _ga}/layout.html (99%) diff --git a/doc/source/_templates/layout.html b/doc/source/_ga/layout.html similarity index 99% rename from doc/source/_templates/layout.html rename to doc/source/_ga/layout.html index d170ec41d6..0b72a77ac2 100644 --- a/doc/source/_templates/layout.html +++ b/doc/source/_ga/layout.html @@ -14,3 +14,4 @@ pageTracker._setAllowLinker(true); pageTracker._trackPageview(); } catch(err) {} {% endblock %} + diff --git a/doc/source/conf.py b/doc/source/conf.py index 91596d6b4e..acff18d29b 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -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'