-
Notifications
You must be signed in to change notification settings - Fork 26
/
tune_toc.html
361 lines (317 loc) · 10.8 KB
/
tune_toc.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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><no title> — Scipy lecture notes</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/gallery.css" type="text/css" />
<script type="text/javascript" id="documentation_options" data-url_root="./" src="_static/documentation_options.js"></script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/copybutton.js"></script>
<link rel="author" title="About these documents" href="about.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="stylesheet"
href="https://unpkg.com/[email protected]/build/base-min.css">
<script type="text/javascript">
$(function () {
// Highlight the table of content as we scroll
sections = {},
i = 0,
url = document.URL.replace(/#.*$/, ""),
current_section = 0;
// Grab positions of our sections
$('.headerlink').each(function(){
sections[this.href.replace(url, '')] = $(this).offset().top - 50;
});
$(window).scroll(function(event) {
var pos = $(window).scrollTop();
// Highlight the current section
$('a.internal').parent().removeClass('active');
for(i in sections){
if(sections[i] > pos){
break;
};
if($('a.internal[href$="' + i + '"]').is(':visible')){
current_section = i;
};
}
$('a.internal[href$="' + current_section + '"]').parent().addClass('active');
$('a.internal[href$="' + current_section + '"]').parent().parent().parent().addClass('active');
$('a.internal[href$="' + current_section + '"]').parent().parent().parent().parent().parent().addClass('active');
});
});
</script>
</head><body>
<!-- Use the header to add javascript -->
<script type="text/javascript">
// Function to collapse the tip divs
function collapse_tip_div(obj){
// Update the representation on the tip div based on whether it
// has the 'collapsed' css class or not: we only want to
// collapse divs that are not already collapsed
if($(obj).hasClass("collapsed")) {
} else {
$(obj).find("p.summary").remove();
var content = $(obj).text();
var html = $(obj).html();
if(content.length > 40) {
if ($.browser.msie) {
// We start at '3' to avoid 'tip', as IE
// does not count whitespace
var content = content.substr(3, 50);
} else {
// We start at '5' to avoid 'tip '
var content = content.substr(5, 50);
}
}
$(obj).html('<p class="summary"><img src="_static/plus.png">' + content + '...</p>' + html);
}
}
</script>
<script type="text/javascript">
$(function () {
$(".tip")
.click(function(event){
$(this).toggleClass("collapsed");
// Change state of the global button
$('div.related li.transparent').removeClass('transparent')
$(this).find("p.summary").remove();
if($(this).hasClass("collapsed")) {
var content = $(this).text();
var html = $(this).html();
if(content.length > 40) {
if ($.browser.msie) {
// We start at '3' to avoid 'tip', as IE
// does not count whitespace
var content = content.substr(3, 50);
} else {
// We start at '5' to avoid 'tip '
var content = content.substr(5, 50);
}
}
$(this).html('<p class="summary"><img src="_static/plus.png">' + content + '...</p>' + html);
}
if (event.target.tagName.toLowerCase() != "a") {
return true; //Makes links clickable
}
});
});
</script>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="nav-item nav-item-0"><a href="index.html">Scipy lecture notes</a> »</li>
<!-- Insert a menu in the navigation bar -->
<li class="left">
<!-- On click toggle the 'tip' on or off-->
<a onclick="$('.tip').each(function (index, obj) {
collapse_tip_div(obj);
});
$('.tip').addClass('collapsed');
$('.left').addClass('transparent');">
<img src="_static/minus.png"
alt="Collapse to compact view" style="padding: 1ex;"/>
<span class="hiddenlink">Collapse document to compact view</span>
</a></li>
<li class="right edit_on_github"><a href="https://github.com/scipy-lectures/scipy-lecture-notes/edit/master/tune_toc.rst">Edit
<span class="tooltip">
Improve this page:<br/>Edit it on Github.
</span>
</a>
</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<SCRIPT>
//Function to make the index toctree collapsible
$(function () {
$('.toctree-l2')
.click(function(event){
if (event.target.tagName.toLowerCase() != "a") {
if ($(this).children('ul').length > 0) {
$(this).attr('data-content',
(!$(this).children('ul').is(':hidden')) ? '\u25ba' : '\u25bc');
$(this).children('ul').toggle();
}
return true; //Makes links clickable
}
})
.mousedown(function(event){ return false; }) //Firefox highlighting fix
.children('ul').hide();
// Initialize the values
$('li.toctree-l2:not(:has(ul))').attr('data-content', '-');
$('li.toctree-l2:has(ul)').attr('data-content', '\u25ba');
$('li.toctree-l2:has(ul)').css('cursor', 'pointer');
$('.toctree-l2').hover(
function () {
if ($(this).children('ul').length > 0) {
$(this).css('background-color', '#D0D0D0').children('ul').css('background-color', '#F0F0F0');
$(this).attr('data-content',
(!$(this).children('ul').is(':hidden')) ? '\u25bc' : '\u25ba');
}
else {
$(this).css('background-color', '#F9F9F9');
}
},
function () {
$(this).css('background-color', 'white').children('ul').css('background-color', 'white');
if ($(this).children('ul').length > 0) {
$(this).attr('data-content',
(!$(this).children('ul').is(':hidden')) ? '\u25bc' : '\u25ba');
}
}
);
});
</SCRIPT>
<style type="text/css">
div.bodywrapper blockquote {
margin: 0 ;
}
div.toctree-wrapper ul {
margin: 0 ;
padding-left: 0px ;
}
div.tune li, div.tune ul {
transition-duration: 0.2s;
}
div.tune li.toctree-l1 {
padding: 5px 0 0;
list-style-type: none;
font-size: 150% ;
font-family: Arial, sans-serif;
background-color: #f2f2f2;
font-weight: normal;
color: #20435c;
margin-left: 0;
margin-bottom: 1.2em;
font-weight: bold;
}
div.tune li.toctree-l1 a {
padding: 0 0 0 10px ;
color: #314F64 ;
}
div.tune li.toctree-l2 {
padding: 0.25em 0 0.25em 0 ;
list-style-type: none;
background-color: #FFFFFF;
font-size: 85% ;
font-weight: normal;
}
div.tune li.toctree-l2 ul {
padding-left: 40px ;
}
div.tune li.toctree-l2:before {
content: attr(data-content) ;
font-size: 85% ;
color: #777 ;
display: inline-block;
width: 10px;
}
div.tune li.toctree-l3 {
font-size: 75% ;
list-style-type: square;
font-weight: normal;
}
div.tune li.toctree-l4 {
font-size: 85% ;
list-style-type: circle;
font-weight: normal;
}
div.preface li.toctree-l1 {
font-weight: bold;
background-color: transparent;
margin-bottom: 0;
margin-left: 0;
margin-top: 10px;
display: inline;
}
div.preface li.toctree-l2 {
background-color: transparent;
margin-bottom: 0;
margin-left: 1.5em;
display: inline;
}
div.sidebar {
width: 25ex ;
}
@media only screen and (max-width: 1080px) and (-webkit-min-device-pixel-ratio: 2.5), (max-width: 70ex) {
div.sidebar {
width: 79%;
padding-left: 5%;
font-size: 80%;
margin-left: auto;
margin-right: 1px;
}
}
@media (max-width: 1324px) {
div.sphinxsidebar {
display: none;
}
}
</style><p><div style="clear: both"></div></p>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/tune_toc.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<div class="searchformwrapper">
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="nav-item nav-item-0"><a href="index.html">Scipy lecture notes</a> »</li>
<!-- Insert a menu in the navigation bar -->
<li class="left">
<!-- On click toggle the 'tip' on or off-->
<a onclick="$('.tip').each(function (index, obj) {
collapse_tip_div(obj);
});
$('.tip').addClass('collapsed');
$('.left').addClass('transparent');">
<img src="_static/minus.png"
alt="Collapse to compact view" style="padding: 1ex;"/>
<span class="hiddenlink">Collapse document to compact view</span>
</a></li>
<li class="right edit_on_github"><a href="https://github.com/scipy-lectures/scipy-lecture-notes/edit/master/tune_toc.rst">Edit
<span class="tooltip">
Improve this page:<br/>Edit it on Github.
</span>
</a>
</li>
</ul>
</div>
<div class="footer" role="contentinfo">
© Copyright 2012,2013,2015,2016,2017,2018,2019,2020,2021,2022.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.7.9.
</div>
</body>
</html>