diff options
| author | Vishvananda Ishaya <vishvananda@yahoo.com> | 2010-10-30 17:42:40 -0700 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@yahoo.com> | 2010-10-30 17:42:40 -0700 |
| commit | 94e6b454183231b2e73b42d2e634889efd777587 (patch) | |
| tree | 277fb492b068b2118b1ef2a65a968dd8ae23be6d /doc/source | |
| parent | 7c74613eb801679c67f551e307265b4af1dc12a6 (diff) | |
| parent | 56c7e7763fc07f26be40bb8c0c702fc9afe8b1e3 (diff) | |
merged trunk, just in case
Diffstat (limited to 'doc/source')
| -rw-r--r-- | doc/source/_ga/layout.html | 17 | ||||
| -rw-r--r-- | doc/source/_templates/.DS_Store | bin | 0 -> 6148 bytes | |||
| -rw-r--r-- | doc/source/conf.py | 8 |
3 files changed, 24 insertions, 1 deletions
diff --git a/doc/source/_ga/layout.html b/doc/source/_ga/layout.html new file mode 100644 index 000000000..0b72a77ac --- /dev/null +++ b/doc/source/_ga/layout.html @@ -0,0 +1,17 @@ +{% extends "!layout.html" %} + +{% block footer %} +{{ super() }} +<script type="text/javascript"> +var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); +document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); +</script> +<script type="text/javascript"> +try { +var pageTracker = _gat._getTracker("UA-17511903-1"); +pageTracker._setDomainName("none"); +pageTracker._setAllowLinker(true); +pageTracker._trackPageview(); +} catch(err) {}</script> +{% endblock %} + diff --git a/doc/source/_templates/.DS_Store b/doc/source/_templates/.DS_Store Binary files differnew file mode 100644 index 000000000..5008ddfcf --- /dev/null +++ b/doc/source/_templates/.DS_Store diff --git a/doc/source/conf.py b/doc/source/conf.py index 505771ff8..e137e728a 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -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' |
