forked from erlang/erlang-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
348 lines (329 loc) · 17.2 KB
/
search.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
</meta>
<meta charset="utf-8">
</meta>
<link rel="stylesheet" href="otp_doc.css" type="text/css" />
<title>Erlang/OTP doc search</title>
<script id="js" type="text/javascript" language="JavaScript" src="js/flipmenu/flipmenu.js">
</script>
<script id="js2" type="text/javascript" language="JavaScript" src="js/topbar.js">
</script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/algoliasearch-lite.umd.js"
integrity="sha256-EXPXz4W6pQgfYY3yTpnDa3OH8/EPn16ciVsPQ/ypsjk=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/instantsearch.production.min.js"
integrity="sha256-LAGhRRdtVoD6RLo2qDQsU2mp+XVSciKRC8XPOBWmofM=" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/themes/satellite-min.css"
integrity="sha256-TehzF/2QvNKhGQrrNpoOb2Ck4iGZ1J/DI4pkd2oUsBc=" crossorigin="anonymous">
</head>
<style>
.main-description {
margin: 1em 0
}
.search-box {
margin-left: 0.5rem;
}
.search-hits {
margin-left: 0.5rem;
overflow: hidden;
}
.search-pagination {
margin-top: 0.3rem;
margin-left: 0.5rem;
margin-bottom: 1rem;
}
.hit-name {
margin-top: 0.0rem;
margin-bottom: 0.2rem;
}
.hit-tag {
color: rgb(114, 114, 114);
margin-bottom: 1rem;
}
.hit-tag code {
border: 1px solid #ccc;
border-radius: 5px;
padding-left: 0.2rem;
padding-right: 0.2rem;
}
.hit-text {
color: #1a1a1a;
}
.algolia-docsearch-suggestion--highlight {
border-bottom: 1px solid #ccc;
}
@media screen and (min-width: 768px) {
.search-sidebar {
float: right;
max-width: 20%;
margin-left: 1rem;
}
}
.search-clear-refinements {
margin-top: 1rem;
}
@media screen and (max-width: 768px) {
/* Sorry mobile people, the refinements do not fit on your screen */
.search-refinements {
display: none;
}
.search-sidebar {
margin-bottom: 1rem;
}
}
</style>
<body>
<div id="container">
<div class="topbar">
<div class="topbar-expand">
<button onclick="toggleDisplay();">
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 54 54" width="24"
height="24">
<g>
<path style="fill:#000000;"
d="M27,54c-0.552,0-1-0.448-1-1V8c0-0.552,0.448-1,1-1s1,0.448,1,1v45C28,53.552,27.552,54,27,54z" />
<path style="fill:#000000;"
d="M11,25c-0.256,0-0.512-0.098-0.707-0.293c-0.391-0.391-0.391-1.023,0-1.414l16-16
c0.391-0.391,1.023-0.391,1.414,0s0.391,1.023,0,1.414l-16,16C11.512,24.902,11.256,25,11,25z" />
<path style="fill:#000000;"
d="M43,25c-0.256,0-0.512-0.098-0.707-0.293l-16-16c-0.391-0.391-0.391-1.023,0-1.414
s1.023-0.391,1.414,0l16,16c0.391,0.391,0.391,1.023,0,1.414C43.512,24.902,43.256,25,43,25z" />
<path style="fill:#000000;"
d="M43,2H11c-0.552,0-1-0.448-1-1s0.448-1,1-1h32c0.552,0,1,0.448,1,1S43.552,2,43,2z" />
</g>
</svg>
</button>
</div>
<div class="topbar-title">
<h1>
Erlang/OTP 24.1.4
</h1>
</div>
<div class="search-expand">
<button id="docsearch-mobile">
<svg fill="#000000" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="24" height="24">
<path
d="M 21 3 C 11.621094 3 4 10.621094 4 20 C 4 29.378906 11.621094 37 21 37 C 24.710938 37 28.140625 35.804688 30.9375 33.78125 L 44.09375 46.90625 L 46.90625 44.09375 L 33.90625 31.0625 C 36.460938 28.085938 38 24.222656 38 20 C 38 10.621094 30.378906 3 21 3 Z M 21 5 C 29.296875 5 36 11.703125 36 20 C 36 28.296875 29.296875 35 21 35 C 12.703125 35 6 28.296875 6 20 C 6 11.703125 12.703125 5 21 5 Z" />
</svg>
</button>
</div>
</div>
<aside id="leftnav">
<nav class="leftnav-tube">
<div class="erlang-logo-wrapper"> <a href="../index.html"><img alt="Erlang logo" src="erlang-logo.png"
class="erlang-logo" /></a> </div>
<ul class="section-links">
<li><a href="applications.html">Applications</a></li>
<li><a href="man_index.html" class="modules">Modules</a></li>
</ul>
<ul class="section-links">
<li><a href="general_info/deprecations.html" class="modules">Deprecations</a></li>
<li><a href="general_info/removed.html" class="modules">Removed Functionality</a></li>
<li><a href="general_info/scheduled_for_removal.html" class="modules">Scheduled for Removal</a></li>
<li><a href="general_info/upcoming_incompatibilities.html" class="modules">Upcoming Potential
Incompatibilities</a></li>
</ul>
<div id="docsearch"></div>
<div style="padding-left: 1rem; padding-top: 0.1rem;"><a href="/doc/search">Paginated Search</a></div>
<ul class="expand-collapse-items">
<li><a href="javascript:openAllFlips()">Expand All</a></li>
<li><a href="javascript:closeAllFlips()">Contract All</a></li>
</ul>
<ul class="flipMenu">
<li>System Documentation
<ul>
<li><a href="installation_guide/users_guide.html">Installation Guide</a></li>
<li><a href="system_principles/users_guide.html">System Principles</a></li>
<li><a href="embedded/users_guide.html">Embedded System</a></li>
<li><a href="getting_started/users_guide.html">Getting Started</a></li>
<li><a href="reference_manual/users_guide.html">Erlang Reference Manual</a></li>
<li><a href="programming_examples/users_guide.html">Programming Examples</a></li>
<li><a href="efficiency_guide/users_guide.html">Efficiency Guide</a></li>
<li><a href="tutorial/users_guide.html">Interoperability Tutorial</a></li>
<li><a href="design_principles/users_guide.html">Design Principles</a></li>
<li><a href="oam/users_guide.html">OAM Principles</a></li>
</ul>
</li>
</ul>
<h3>Application Groups</h3>
<ul class="flipMenu">
<li>Basic
<ul>
<li><a href="apps/compiler/index.html">compiler</a></li>
<li><a href="apps/erts/index.html">erts</a></li>
<li><a href="apps/kernel/index.html">kernel</a></li>
<li><a href="apps/sasl/index.html">sasl</a></li>
<li><a href="apps/stdlib/index.html">stdlib</a></li>
</ul>
</li>
<li>Database
<ul>
<li><a href="apps/mnesia/index.html">mnesia</a></li>
<li><a href="apps/odbc/index.html">odbc</a></li>
</ul>
</li>
<li>Operation & Maintenance
<ul>
<li><a href="apps/os_mon/index.html">os_mon</a></li>
<li><a href="apps/snmp/index.html">snmp</a></li>
</ul>
</li>
<li>Interface and Communication
<ul>
<li><a href="apps/asn1/index.html">asn1</a></li>
<li><a href="apps/crypto/index.html">crypto</a></li>
<li><a href="apps/diameter/index.html">diameter</a></li>
<li><a href="apps/eldap/index.html">eldap</a></li>
<li><a href="apps/erl_interface/index.html">erl_interface</a></li>
<li><a href="apps/ftp/index.html">ftp</a></li>
<li><a href="apps/inets/index.html">inets</a></li>
<li><a href="apps/jinterface/index.html">jinterface</a></li>
<li><a href="apps/megaco/index.html">megaco</a></li>
<li><a href="apps/public_key/index.html">public_key</a></li>
<li><a href="apps/ssh/index.html">ssh</a></li>
<li><a href="apps/ssl/index.html">ssl</a></li>
<li><a href="apps/tftp/index.html">tftp</a></li>
<li><a href="apps/wx/index.html">wx</a></li>
<li><a href="apps/xmerl/index.html">xmerl</a></li>
</ul>
</li>
<li>Tools
<ul>
<li><a href="apps/debugger/index.html">debugger</a></li>
<li><a href="apps/dialyzer/index.html">dialyzer</a></li>
<li><a href="apps/et/index.html">et</a></li>
<li><a href="apps/observer/index.html">observer</a></li>
<li><a href="apps/parsetools/index.html">parsetools</a></li>
<li><a href="apps/reltool/index.html">reltool</a></li>
<li><a href="apps/runtime_tools/index.html">runtime_tools</a></li>
<li><a href="apps/syntax_tools/index.html">syntax_tools</a></li>
<li><a href="apps/tools/index.html">tools</a></li>
</ul>
</li>
<li>Test
<ul>
<li><a href="apps/common_test/index.html">common_test</a></li>
<li><a href="apps/eunit/index.html">eunit</a></li>
</ul>
</li>
<li>Documentation
<ul>
<li><a href="apps/edoc/index.html">edoc</a></li>
<li><a href="apps/erl_docgen/index.html">erl_docgen</a></li>
</ul>
</li>
</ul>
</nav>
</aside>
<div id="content">
<div class="innertube">
<p class="main-description">
Erlang/OTP documentation search
</p>
<div class="search-box" id="searchbox"></div>
<div class="search-sidebar">
<div class="DocSearch-Logo">
<a href="https://www.algolia.com/docsearch" target="_blank" rel="noopener noreferrer">
<span class="DocSearch-Label">Search by</span>
<svg width="77" height="19">
<path
d="M2.5067 0h14.0245c1.384.001 2.5058 1.1205 2.5068 2.5017V16.5c-.0014 1.3808-1.1232 2.4995-2.5068 2.5H2.5067C1.1232 18.9995.0014 17.8808 0 16.5V2.4958A2.495 2.495 0 01.735.7294 2.505 2.505 0 012.5068 0zM37.95 15.0695c-3.7068.0168-3.7068-2.986-3.7068-3.4634L34.2372.3576 36.498 0v11.1794c0 .2715 0 1.9889 1.452 1.994v1.8961zm-9.1666-1.8388c.694 0 1.2086-.0397 1.5678-.1088v-2.2934a5.3639 5.3639 0 00-1.3303-.1679 4.8283 4.8283 0 00-.758.0582 2.2845 2.2845 0 00-.688.2024c-.2029.0979-.371.2362-.4919.4142-.1268.1788-.185.2826-.185.5533 0 .5297.185.8359.5205 1.0375.3355.2016.7928.3053 1.365.3053v-.0008zm-.1969-8.1817c.7463 0 1.3768.092 1.8856.2767.5088.1838.9195.4428 1.2204.7717.3068.334.5147.7777.6423 1.251.1327.4723.196.991.196 1.5603v5.798c-.5235.1036-1.05.192-1.5787.2649-.7048.1037-1.4976.156-2.3774.156-.5832 0-1.1215-.0582-1.6016-.167a3.385 3.385 0 01-1.2432-.5364 2.6034 2.6034 0 01-.8037-.9565c-.191-.3922-.29-.9447-.29-1.5208 0-.5533.11-.905.3246-1.2863a2.7351 2.7351 0 01.8849-.9329c.376-.242.8029-.415 1.2948-.5187a7.4517 7.4517 0 011.5381-.156 7.1162 7.1162 0 011.6667.2024V8.886c0-.259-.0296-.5061-.093-.7372a1.5847 1.5847 0 00-.3245-.6158 1.5079 1.5079 0 00-.6119-.4158 2.6788 2.6788 0 00-.966-.173c-.5206 0-.9948.0634-1.4283.1384a6.5481 6.5481 0 00-1.065.259l-.2712-1.849c.2831-.0986.7048-.1964 1.2491-.2943a9.2979 9.2979 0 011.752-.1501v.0008zm44.6597 8.1193c.6947 0 1.2086-.0405 1.567-.1097v-2.2942a5.3743 5.3743 0 00-1.3303-.1679c-.2485 0-.503.0177-.7573.0582a2.2853 2.2853 0 00-.688.2024 1.2333 1.2333 0 00-.4918.4142c-.1268.1788-.1843.2826-.1843.5533 0 .5297.1843.8359.5198 1.0375.3414.2066.7927.3053 1.365.3053v.0009zm-.191-8.1767c.7463 0 1.3768.0912 1.8856.2759.5087.1847.9195.4436 1.2204.7717.3.329.5147.7786.6414 1.251a5.7248 5.7248 0 01.197 1.562v5.7972c-.3466.0742-.874.1602-1.5788.2648-.7049.1038-1.4976.1552-2.3774.1552-.5832 0-1.1215-.0573-1.6016-.167a3.385 3.385 0 01-1.2432-.5356 2.6034 2.6034 0 01-.8038-.9565c-.191-.3922-.2898-.9447-.2898-1.5216 0-.5533.1098-.905.3245-1.2854a2.7373 2.7373 0 01.8849-.9338c.376-.2412.8029-.4141 1.2947-.5178a7.4545 7.4545 0 012.325-.1097c.2781.0287.5672.081.879.156v-.3686a2.7781 2.7781 0 00-.092-.738 1.5788 1.5788 0 00-.3246-.6166 1.5079 1.5079 0 00-.612-.415 2.6797 2.6797 0 00-.966-.1729c-.5205 0-.9947.0633-1.4282.1384a6.5608 6.5608 0 00-1.065.259l-.2712-1.8498c.283-.0979.7048-.1957 1.2491-.2935a9.8597 9.8597 0 011.752-.1494zm-6.79-1.072c-.7576.001-1.373-.6103-1.3759-1.3664 0-.755.6128-1.3664 1.376-1.3664.764 0 1.3775.6115 1.3775 1.3664s-.6195 1.3664-1.3776 1.3664zm1.1393 11.1507h-2.2726V5.3409l2.2734-.3568v10.0845l-.0008.0017zm-3.984 0c-3.707.0168-3.707-2.986-3.707-3.4642L59.7069.3576 61.9685 0v11.1794c0 .2715 0 1.9889 1.452 1.994V15.0703zm-7.3512-4.979c0-.975-.2138-1.7873-.6305-2.3516-.4167-.571-.9998-.852-1.747-.852-.7454 0-1.3302.281-1.7452.852-.4166.5702-.6195 1.3765-.6195 2.3516 0 .9851.208 1.6473.6254 2.2183.4158.576.9998.8587 1.7461.8587.7454 0 1.3303-.2885 1.747-.8595.4158-.5761.6237-1.2315.6237-2.2184v.0009zm2.3132-.006c0 .7609-.1099 1.3361-.3356 1.9654a4.654 4.654 0 01-.9533 1.6076A4.214 4.214 0 0155.613 14.69c-.579.2412-1.4697.3795-1.9143.3795-.4462-.005-1.3303-.1324-1.9033-.3795a4.307 4.307 0 01-1.474-1.0316c-.4115-.4445-.7293-.9801-.9609-1.6076a5.3423 5.3423 0 01-.3465-1.9653c0-.7608.104-1.493.3356-2.1155a4.683 4.683 0 01.9719-1.5958 4.3383 4.3383 0 011.479-1.0257c.5739-.242 1.2043-.3567 1.8864-.3567.6829 0 1.3125.1197 1.8906.3567a4.1245 4.1245 0 011.4816 1.0257 4.7587 4.7587 0 01.9592 1.5958c.2426.6225.3643 1.3547.3643 2.1155zm-17.0198 0c0 .9448.208 1.9932.6238 2.431.4166.4386.955.6579 1.6142.6579.3584 0 .6998-.0523 1.0176-.1502.3186-.0978.5721-.2134.775-.3517V7.0784a8.8706 8.8706 0 00-1.4926-.1906c-.8206-.0236-1.4452.312-1.8847.8468-.4335.5365-.6533 1.476-.6533 2.3516v-.0008zm6.2863 4.4485c0 1.5385-.3938 2.662-1.1866 3.3773-.791.7136-2.0005 1.0712-3.6308 1.0712-.5958 0-1.834-.1156-2.8228-.334l.3643-1.7865c.8282.173 1.9202.2193 2.4932.2193.9077 0 1.555-.1847 1.943-.5533.388-.3686.578-.916.578-1.643v-.3687a6.8289 6.8289 0 01-.8848.3349c-.3634.1096-.786.167-1.261.167-.6246 0-1.1917-.0979-1.7055-.2944a3.5554 3.5554 0 01-1.3244-.8645c-.3642-.3796-.6541-.8579-.8561-1.4289-.2028-.571-.3068-1.59-.3068-2.339 0-.7034.1099-1.5856.3245-2.1735.2198-.5871.5316-1.0949.9542-1.515.4167-.42.9255-.743 1.5213-.98a5.5923 5.5923 0 012.052-.3855c.7353 0 1.4114.092 2.0707.2024.6592.1088 1.2204.2236 1.6776.35v8.945-.0008zM11.5026 4.2418v-.6511c-.0005-.4553-.3704-.8241-.8266-.8241H8.749c-.4561 0-.826.3688-.8265.824v.669c0 .0742.0693.1264.1445.1096a6.0346 6.0346 0 011.6768-.2362 6.125 6.125 0 011.6202.2185.1116.1116 0 00.1386-.1097zm-5.2806.852l-.3296-.3282a.8266.8266 0 00-1.168 0l-.393.3922a.8199.8199 0 000 1.164l.3237.323c.0524.0515.1268.0397.1733-.0117.191-.259.3989-.507.6305-.7372.2374-.2362.48-.4437.7462-.6335.0575-.0354.0634-.1155.017-.1687zm3.5159 2.069v2.818c0 .081.0879.1392.1622.0987l2.5102-1.2964c.0574-.0287.0752-.0987.0464-.1552a3.1237 3.1237 0 00-2.603-1.574c-.0575 0-.115.0456-.115.1097l-.0008-.0009zm.0008 6.789c-2.0933.0005-3.7915-1.6912-3.7947-3.7804C5.9468 8.0821 7.6452 6.39 9.7387 6.391c2.0932-.0005 3.7911 1.6914 3.794 3.7804a3.7783 3.7783 0 01-1.1124 2.675 3.7936 3.7936 0 01-2.6824 1.1054h.0008zM9.738 4.8002c-1.9218 0-3.6975 1.0232-4.6584 2.6841a5.359 5.359 0 000 5.3683c.9609 1.661 2.7366 2.6841 4.6584 2.6841a5.3891 5.3891 0 003.8073-1.5725 5.3675 5.3675 0 001.578-3.7987 5.3574 5.3574 0 00-1.5771-3.797A5.379 5.379 0 009.7387 4.801l-.0008-.0008z"
fill="currentColor" fill-rule="evenodd"></path>
</svg>
</a>
</div>
<div class="search-refinements">
<h4>Documentation Type</h4>
<div class="search-refinements-type" id="type-list"></div>
<h4>Applications</h4>
<div class="search-refinements-app" id="app-list"></div>
<div class="search-clear-refinements" id="clear-refinements"></div>
</div>
</div>
<div class="search-hits" id="hits"></div>
<div class="search-pagination" id="pagination"></div>
<center>
<small>
Copyright © 1999-2021
<a href="http://www.ericsson.com">Ericsson AB</a>
</small>
</center>
</div>
</div>
</div>
<script src="/assets/js/doc-search.bundle.js"></script>
<script type=text/html id=hit-template>
<a href="{{ url }}" class=hit>
<div class=hit-content>
<h3 class="hit-name lvl0">
{{#isModule}}
{{{_highlightResult.hierarchy.lvl1.value}}}{{#_highlightResult.hierarchy.lvl2.value}}:{{{_highlightResult.hierarchy.lvl2.value}}}{{/_highlightResult.hierarchy.lvl2.value}}
{{/isModule}}
{{^isModule}}
{{{_highlightResult.hierarchy.lvl1.value}}} {{#_highlightResult.hierarchy.lvl2.value}} → {{{_highlightResult.hierarchy.lvl2.value}}}{{/_highlightResult.hierarchy.lvl2.value}} {{#_highlightResult.hierarchy.lvl3.value}} → {{{_highlightResult.hierarchy.lvl3.value}}}{{/_highlightResult.hierarchy.lvl3.value}}
{{/isModule}}
</h3>
<div class="hit-tag">{{#tags}}<code><small>{{.}}</small></code> {{/tags}}</div>
<div class="hit-text">{{{_snippetResult.content.value}}}</div>
</div>
</a>
</script>
<script>
const searchClient = algoliasearch('LUYTU1J2MB', '86152ba1d4a9d7e179d537b8060a4c31');
const search = instantsearch({
indexName: 'erlang',
searchClient,
routing: {
stateMapping: {
stateToRoute: function (uiState) {
return {
q: uiState['erlang'].query,
};
},
routeToState: function (routeState) {
return {
erlang: {
query: routeState.q,
},
};
},
}
}
});
search.addWidgets([
instantsearch.widgets.searchBox({
container: '#searchbox',
placeholder: 'Search erlang documentation',
}),
instantsearch.widgets.hits({
container: '#hits',
escapeHTML: false,
templates: {
item: document.getElementById('hit-template').innerHTML
}
}),
instantsearch.widgets.pagination({
container: '#pagination'
}),
instantsearch.widgets.clearRefinements({
container: '#clear-refinements',
}),
instantsearch.widgets.refinementList({
container: '#type-list',
attribute: 'docType',
limit: 10,
}),
instantsearch.widgets.refinementList({
container: '#app-list',
attribute: 'app',
showMore: true,
showMoreLimit: 100,
limit: 10,
}),
]);
search.start();
</script>
</body>
</html>