Changed env var that denotes if we're building for docs.saltstack.com

This one is a bit more descriptive.
This commit is contained in:
Seth House 2014-04-29 17:08:16 -06:00
parent f12694a446
commit cf0b79322e
2 changed files with 4 additions and 4 deletions

View File

@ -285,7 +285,7 @@
<script src="{{ pathto('_static/js/main.js', 1) }}"></script>
{% if html_docs_saltstack_org %}
{% if on_saltstack %}
<script>
var _gaq=[['_setAccount','UA-26984928-1'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];

View File

@ -180,10 +180,10 @@ html_favicon = 'favicon.ico'
html_use_smartypants = False
# Set a var if we're building docs for the live site or not
html_docs_saltstack_org = 'SALT_GOOGLE_SEARCH' in os.environ
on_saltstack = 'SALT_ON_SALTSTACK' in os.environ
# Use Google customized search or use Sphinx built-in JavaScript search
if html_docs_saltstack_org:
if on_saltstack:
html_search_template = 'googlesearch.html'
else:
html_search_template = 'searchbox.html'
@ -211,7 +211,7 @@ html_sidebars = {
}
html_context = {
'docs_saltstack_org': html_docs_saltstack_org,
'on_saltstack': on_saltstack,
'html_default_sidebars': html_default_sidebars,
'github_base': 'https://github.com/saltstack/salt',
'github_issues': 'https://github.com/saltstack/salt/issues',