mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
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:
parent
f12694a446
commit
cf0b79322e
2
doc/_themes/saltstack/layout.html
vendored
2
doc/_themes/saltstack/layout.html
vendored
@ -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];
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user