/
template.html
172 lines (163 loc) · 5.85 KB
/
template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>${headers['title']} ${headers['version']} - ${headers['subtitle']}</title>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<link href="css/page.css" rel="stylesheet" />
</head>
<body>
<div class="navbar navbar-static-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">${headers['title']} ${headers['subtitle']}</a>
<ul class="nav">
<li class="divider-vertical"></li>
<li><a href="http://haproxy.1wt.eu/">HAProxy home page</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Versions
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
## TODO : provide a structure to dynamically generate per version links
<li class="dropdown-submenu">
<a tabindex="-1" href="#">HAProxy 1.4</a>
<ul class="dropdown-menu">
<li><a href="configuration-1.4.html">Configuration Manual</a></li>
<li class="divider"></li>
<li><a href="http://git.1wt.eu/git/haproxy-1.4.git/">GIT Repository</a></li>
<li><a href="http://haproxy.1wt.eu/git/?p=haproxy-1.4.git">Browse repository</a></li>
<li><a href="http://haproxy.1wt.eu/download/1.4/">Browse directory</a></li>
</ul>
</li>
<li class="dropdown-submenu">
<a tabindex="-1" href="#">HAProxy 1.5</a>
<ul class="dropdown-menu">
<li><a href="configuration-1.5.html">Configuration Manual</a></li>
<li class="divider"></li>
<li><a href="http://git.1wt.eu/git/haproxy.git/">GIT Repository</a></li>
<li><a href="http://haproxy.1wt.eu/git/?p=haproxy.git">Browse repository</a></li>
<li><a href="http://haproxy.1wt.eu/download/1.5/">Browse directory</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<form class="navbar-search pull-right" onsubmit="search(this.keyword.value); return false">
<input id="searchKeyword" type="text" name="keyword" class="input-large search-query" placeholder="Search keyword" autocomplete="off"/>
</form>
</div>
</div>
</div>
<div class="navbar navbar-fixed-bottom">
<div class="navbar-inner">
<div class="container">
<ul class="nav">
<li id="previous"></li>
</ul>
<ul class="nav pull-right">
<li id="next"></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="pagination-right">
<small>Converted with <a href="http://github.com/cbonte/haproxy-dconv">haproxy-dconv</a> v<b>${version}</b> on <b>${date}</b></small>
</div>
<div class="well pagination-centered">
<h1>${headers['title']}</h1>
<h2>${headers['subtitle']}</h2>
<p><strong>${headers['version']}</strong></p>
<p>
<a href="http://haproxy.1wt.eu/" title="HAProxy Home Page"><img src="http://haproxy.1wt.eu/img/logo-med.png" /></a><br>
${headers['author']}<br>
${headers['date']}
</p>
</div>
${document}
</div>
<div id="searchModal" class="modal hide fade" style="display: none;" tabindex="-1">
<div class="modal-header">
<a class="close" data-dismiss="modal">×</a>
<h3>Search keyword</h3>
</div>
<div class="modal-body">
<h4>Unknown keyword <code></code></h4>
<p>The keyword <code></code> you're looking for doesn't exist or is not detected by the documentation converter.</p>
</div>
<div class="modal-footer">
<a href="#" class="btn btn-primary" data-dismiss="modal">Close</a>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script>
/* Keyword search */
var keywords = [
"${'",\n\t\t\t\t"'.join(keywords)}"
];
function search(keyword) {
if (keyword) {
if (!!~$.inArray(keyword, keywords)) {
window.location.hash = keyword;
} else {
$("#searchModal code").text(keyword);
$("#searchModal").modal();
}
}
}
$('#searchKeyword').typeahead({
source: keywords,
updater: function(item) {
search(item)
return item
}
})
/* EXPERIMENTAL - Previous/Next navigation */
var headings = $(":header");
function refreshNavigation() {
var previous = false
var next = false
$.each(headings, function(item, value) {
var el = $(value)
if (! el.attr('id')) return true
if (el.offset().top < $(window).scrollTop()) {
previous = el
}
if (el.offset().top - 1 > $(window).scrollTop()) {
next = el
}
if (next) return false
})
$('#previous').html(
previous && previous.attr('id') ? '<a href="#' + previous.attr('id') + '">← ' + previous.text() + '</a>' : '<a href="#top">← Top</a>'
)
$('#next').html(
next && next.attr('id') ? '<a href="#' + next.attr('id') + '">' + next.text() + ' →</a>' : '<a href="#bottom">Bottom →</a>'
)
}
$(window).scroll(function () {
refreshNavigation()
});
$(document).ready(function() {
refreshNavigation()
});
</script>
<!-- Piwik -->
<script type="text/javascript">
var pkBaseURL = (("https:" == document.location.protocol) ? "https://stats.cdncdn.net/" : "http://stats.cdncdn.net/");
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
</script><script type="text/javascript">
try {
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 4);
piwikTracker.setCustomVariable (1, 'HaproxyVersion', '${headers['version']}', 'page');
piwikTracker.setCustomVariable (2, 'HaproxyDconvVersion', '${version}', 'page');
piwikTracker.trackPageView();
piwikTracker.enableLinkTracking();
} catch( err ) {}
</script><noscript><p><img src="http://stats.cdncdn.net/piwik.php?idsite=4" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
</body>
</html>