Moved SaltStack events and news to SaltStack-specific sidebar template

This commit is contained in:
Seth House 2014-04-29 17:49:00 -06:00
parent 04021cb233
commit 7c952dd98e
3 changed files with 16 additions and 13 deletions

14
doc/_templates/saltstack.html vendored Normal file
View file

@ -0,0 +1,14 @@
<h4>SaltStack News</h4>
<p><a href="http://www.saltstack.com/events">Upcoming SaltStack events,
webinars and local meet ups and user groups.</a></p>
{% if on_saltstack %}
<h4>SaltStack training</h4>
<img src="{{ pathto('_static/images/salt-training.png', 1) }}" alt="" style="padding-bottom: 1em;">
<ul>
<li><a href="https://saltnyc.eventbrite.com/">NYC, May 5-7</a></li>
<li><a href="http://saltlondon.eventbrite.com/"> London, May 28-30</a></li>
<li><a href="http://saltslc.eventbrite.com/">Salt Lake City, June 11-13</a></li>
</ul>
{% endif %}

View file

@ -64,19 +64,6 @@
{%- for sidebartemplate in sidebars|default(html_default_sidebars, true) %}
{%- include sidebartemplate %}
{%- endfor %}
<p><a href="http://www.saltstack.com/events">Connect with SaltStack at
upcoming events, webinars and local meet ups and user groups</a></p>
<h4>SaltStack training</h4>
<img src="{{ pathto('_static/images/salt-training.png', 1) }}" alt="" style="padding-bottom: 1em;">
<ul>
<li><a href="https://saltnyc.eventbrite.com/">NYC, May 5-7</a></li>
<li><a href="http://saltlondon.eventbrite.com/"> London, May 28-30</a></li>
<li><a href="http://saltslc.eventbrite.com/">Salt Lake City, June 11-13</a></li>
</ul>
</div>
</div>
{%- endif %}

View file

@ -198,6 +198,7 @@ html_default_sidebars = [
'localtoc.html',
'relations.html',
'sourcelink.html',
'saltstack.html',
]
html_sidebars = {
'ref/**/all/salt.*': [
@ -207,6 +208,7 @@ html_sidebars = {
'localtoc.html',
'relations.html',
'sourcelink.html',
'saltstack.html',
],
'ref/formula/all/*': [
],