mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
156 lines
4.4 KiB
HTML
156 lines
4.4 KiB
HTML
13 years ago
|
{% extends "basic/layout.html" %}
|
||
|
{% set script_files = script_files + ['_static/bootstrap-dropdown.js', '_static/bootstrap-scrollspy.js'] %}
|
||
12 years ago
|
{% set css_files = ['_static/bootstrap.css', '_static/bootstrap-sphinx.css', '_static/ansible-local.css'] + css_files %}
|
||
13 years ago
|
|
||
|
{# Sidebar: Rework into our Boostrap nav section. #}
|
||
|
{% macro navBar() %}
|
||
|
<div class="topbar" data-scrollspy="scrollspy" >
|
||
|
<div class="topbar-inner">
|
||
|
<div class="container">
|
||
12 years ago
|
<!-- <a class="brand" href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a> -->
|
||
13 years ago
|
<ul class="nav">
|
||
|
{% block sidebartoc %}
|
||
12 years ago
|
<li><a href="/">Home</A>
|
||
|
{% include "globaltoc.html" %}
|
||
13 years ago
|
{% include "localtoc.html" %}
|
||
13 years ago
|
{% endblock %}
|
||
|
</ul>
|
||
|
<ul class="nav secondary-nav">
|
||
|
{% block sidebarsearch %}
|
||
|
{% include "searchbox.html" %}
|
||
|
{% endblock %}
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endmacro %}
|
||
12 years ago
|
<p></p>
|
||
13 years ago
|
|
||
|
{%- block extrahead %}
|
||
|
<script type="text/javascript">
|
||
|
(function () {
|
||
|
/**
|
||
|
* Patch TOC list.
|
||
|
*
|
||
|
* Will mutate the underlying span to have a correct ul for nav.
|
||
|
*
|
||
|
* @param $span: Span containing nested UL's to mutate.
|
||
|
* @param minLevel: Starting level for nested lists. (1: global, 2: local).
|
||
|
*/
|
||
|
var patchToc = function ($span, minLevel) {
|
||
|
var $tocList = $("<ul/>").attr('class', "dropdown-menu"),
|
||
|
findA;
|
||
|
|
||
|
// Find all a "internal" tags, traversing recursively.
|
||
|
findA = function ($elem, level) {
|
||
|
var level = level || 0,
|
||
|
$items = $elem.find("> li > a.internal, > ul, > li > ul");
|
||
|
|
||
|
// Iterate everything in order.
|
||
|
$items.each(function (index, item) {
|
||
|
var $item = $(item),
|
||
|
tag = item.tagName.toLowerCase(),
|
||
|
pad = 10 + ((level - minLevel) * 10);
|
||
|
|
||
|
if (tag === 'a' && level >= minLevel) {
|
||
|
// Add to existing padding.
|
||
|
$item.css('padding-left', pad + "px");
|
||
|
// Add list element.
|
||
|
$tocList.append($("<li/>").append($item));
|
||
|
} else if (tag === 'ul') {
|
||
|
// Recurse.
|
||
|
findA($item, level + 1);
|
||
|
}
|
||
|
});
|
||
|
};
|
||
|
|
||
|
// Start construction and return.
|
||
|
findA($span);
|
||
|
|
||
|
// Wipe out old list and patch in new one.
|
||
|
return $span.empty("ul").append($tocList);
|
||
|
};
|
||
|
|
||
|
$(document).ready(function () {
|
||
|
// Patch the global and local TOC's to be bootstrap-compliant.
|
||
|
patchToc($("span.globaltoc"), 1);
|
||
|
patchToc($("span.localtoc"), 2);
|
||
|
|
||
|
// Activate.
|
||
|
$('#topbar').dropdown();
|
||
|
});
|
||
|
}());
|
||
13 years ago
|
</script>
|
||
13 years ago
|
|
||
13 years ago
|
<script type="text/javascript">
|
||
|
|
||
|
var _gaq = _gaq || [];
|
||
|
_gaq.push(['_setAccount', 'UA-29861888-1']);
|
||
|
_gaq.push(['_trackPageview']);
|
||
|
|
||
|
(function() {
|
||
|
var ga = document.createElement('script'); ga.type =
|
||
|
'text/javascript'; ga.async = true;
|
||
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
|
||
|
'http://www') + '.google-analytics.com/ga.js';
|
||
|
var s = document.getElementsByTagName('script')[0];
|
||
|
s.parentNode.insertBefore(ga, s);
|
||
|
})();
|
||
|
|
||
12 years ago
|
</script>
|
||
|
<script type="text/javascript">
|
||
|
// Set the maximum height of drop down menus to just less than the height
|
||
|
// of the viewport.
|
||
|
var set_max_menu_height = function () {
|
||
|
|
||
|
// set menu max height to 75 less than viewport height
|
||
|
$('.dropdown-menu').css('max-height', $(window).height() - 75);
|
||
|
}
|
||
|
|
||
|
// Set this when we set the page up and on each resize.
|
||
|
$(window).resize(set_max_menu_height);
|
||
|
$(window).ready(set_max_menu_height);
|
||
|
|
||
13 years ago
|
</script>
|
||
13 years ago
|
|
||
13 years ago
|
{% endblock %}
|
||
|
|
||
|
{% block header %}{{ navBar() }}{% endblock %}
|
||
|
|
||
|
{# Silence the sidebar's, relbar's #}
|
||
|
{% block sidebar1 %}{% endblock %}
|
||
|
{% block sidebar2 %}{% endblock %}
|
||
|
{% block relbar1 %}{% endblock %}
|
||
|
{% block relbar2 %}{% endblock %}
|
||
|
|
||
|
{%- block content %}
|
||
13 years ago
|
|
||
13 years ago
|
<div class="container">
|
||
|
{% block body %} {% endblock %}
|
||
13 years ago
|
<br/>
|
||
13 years ago
|
</div>
|
||
12 years ago
|
|
||
13 years ago
|
{%- endblock %}
|
||
|
|
||
|
{%- block footer %}
|
||
13 years ago
|
<footer class="footer">
|
||
12 years ago
|
<center>
|
||
|
<a href="http://ansibleworks.com"><img src="http://ansible.cc/img/AnsibleWorks.png" alt="AnsibleWorks"></a>
|
||
13 years ago
|
<p>
|
||
13 years ago
|
{%- if show_copyright %}
|
||
|
{%- if hasdoc('copyright') %}
|
||
|
{% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}<br/>
|
||
|
{%- else %}
|
||
|
{% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %}<br/>
|
||
|
{%- endif %}
|
||
|
{%- endif %}
|
||
|
{%- if last_updated %}
|
||
|
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}<br/>
|
||
|
{%- endif %}
|
||
|
</p>
|
||
12 years ago
|
</div>
|
||
12 years ago
|
</center>
|
||
13 years ago
|
</footer>
|
||
|
{%- endblock %}
|
||
|
|