-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
822 lines (486 loc) · 23.7 KB
/
index.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
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="apple-touch-icon" sizes="76x76" href="/img/tx.jpeg">
<link rel="icon" type="image/png" href="/img/tx.jpeg">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<meta name="theme-color" content="#2f4154">
<meta name="description" content="嗜好太多,能力太小">
<meta name="author" content="LeeWeir">
<meta name="keywords" content="">
<title>Weir's Note</title>
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/css/bootstrap.min.css" />
<link rel="stylesheet" href="https://cdn.staticfile.org/github-markdown-css/4.0.0/github-markdown.min.css" />
<link rel="stylesheet" href="https://cdn.staticfile.org/highlight.js/10.0.0/styles/github-gist.min.css" />
<!-- 主题依赖的图标库,不要自行修改 -->
<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_fmb4a04yx8h.css">
<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_pjno9b9zyxs.css">
<link rel="stylesheet" href="/css/main.css" />
<!-- 自定义样式保持在最底部 -->
<meta name="generator" content="Hexo 4.2.1"></head>
<body>
<header style="height: 100vh;">
<nav id="navbar" class="navbar fixed-top navbar-expand-lg navbar-dark scrolling-navbar">
<div class="container">
<a class="navbar-brand"
href="/"> <strong>Weir's Note</strong> </a>
<button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<div class="animated-icon"><span></span><span></span><span></span></div>
</button>
<!-- Collapsible content -->
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto text-center">
<li class="nav-item">
<a class="nav-link" href="/">
<i class="iconfont icon-home-fill"></i>
Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/archives/">
<i class="iconfont icon-archive-fill"></i>
Archives</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/tags/">
<i class="iconfont icon-tags-fill"></i>
Tags</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/about/">
<i class="iconfont icon-user-fill"></i>
About</a>
</li>
<li class="nav-item" id="search-btn">
<a class="nav-link" data-toggle="modal" data-target="#modalSearch"> <i
class="iconfont icon-search"></i> </a>
</li>
</ul>
</div>
</div>
</nav>
<div class="view intro-2" id="background" parallax=true
style="background: url('/img/home.jpg') no-repeat center center;
background-size: cover;">
<div class="full-bg-img">
<div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
<div class="container text-center white-text fadeInUp">
<span class="h2" id="subtitle">
</span>
</div>
<div class="scroll-down-bar">
<i class="iconfont icon-arrowdown"></i>
</div>
</div>
</div>
</div>
</header>
<main>
<div class="container nopadding-md">
<div class="py-5" id="board"
style=margin-top:0>
<div class="container">
<div class="row">
<div class="col-12 col-md-10 m-auto">
<div class="row mx-auto index-card">
<div class="col-12 col-md-4 m-auto index-img">
<a href="/posts/stability/" target="_self">
<img src="/img/posts/stability.jpg" srcset="/img/loading.gif" alt="稳定性的模式与反模式">
</a>
</div>
<div class="col-12 col-md-8 mx-auto index-info">
<a class="index-header" href="/posts/stability/">稳定性的模式与反模式</a>
<a href="/posts/stability/" class="index-excerpt">
<div>稳定性的模式与反模式
稳定性之于系统,就像健康之于人类,看起来重要不紧急,然而一旦失去,就追悔莫及。
稳定性是一切 0 前面的 1。
本文简单介绍下稳定的模式和反模式,大家在设计系统的时候可以多一点思考。
稳定性的反模式:集成点
每一个依赖点的都有可能有问题。
利用断路器、超时、中间件解耦和握手等模式进行防御性编程,以防止集成点出现问题。
同层连累反应
例如在负载均衡下,一台服务器的停机会</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i> 2020-09-17
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/sre/">sre</a>
<a href="/tags/stability/">stability</a>
</div>
</div>
</div>
</div>
<div class="row mx-auto index-card">
<div class="col-12 col-md-4 m-auto index-img">
<a href="/posts/liveness-probe-problem/" target="_self">
<img src="/img/posts/choco.png" srcset="/img/loading.gif" alt="LIVENESS PROBE 的问题">
</a>
</div>
<div class="col-12 col-md-8 mx-auto index-info">
<a class="index-header" href="/posts/liveness-probe-problem/">LIVENESS PROBE 的问题</a>
<a href="/posts/liveness-probe-problem/" class="index-excerpt">
<div>Readiness and Liveness ProbesKubernetes 提供了两种功能 Readiness and Liveness Probes,它们可以定期执行操作(例如发出 HTTP 请求,打开 TCP 连接或在您的容器中运行命令),以确认您的应用程序按预期工作。
Kubernetes 使用 Readiness Probes 来了解容器何时准备开始接受流量。当 Pod 的所有容器都准</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i> 2020-06-28
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/cloud-native/">cloud-native</a>
<a href="/tags/best-practive/">best-practive</a>
</div>
</div>
</div>
</div>
<div class="row mx-auto index-card">
<div class="col-12 col-md-4 m-auto index-img">
<a href="/posts/cilium/" target="_self">
<img src="/img/posts/cilium.png" srcset="/img/loading.gif" alt="Replacing iptables with eBPF in Kubernetes with Cilium">
</a>
</div>
<div class="col-12 col-md-8 mx-auto index-info">
<a class="index-header" href="/posts/cilium/">Replacing iptables with eBPF in Kubernetes with Cilium</a>
<a href="/posts/cilium/" class="index-excerpt">
<div>Why Cilium is awesome?
It makes disadvantages of iptables disappear. And always gets the best from the Linux kernel.
Cluster Mesh / multi-cluster.
Makes Istio faster.
Offers L7 API Aware filtering as </div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i> 2020-06-19
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/network/">network</a>
<a href="/tags/cloud-native/">cloud-native</a>
</div>
</div>
</div>
</div>
<div class="row mx-auto index-card">
<div class="col-12 col-md-4 m-auto index-img">
<a href="/posts/acid-cap-base/" target="_self">
<img src="/img/posts/cap.png" srcset="/img/loading.gif" alt="谈谈 ACID、CAP 和 BASE">
</a>
</div>
<div class="col-12 col-md-8 mx-auto index-info">
<a class="index-header" href="/posts/acid-cap-base/">谈谈 ACID、CAP 和 BASE</a>
<a href="/posts/acid-cap-base/" class="index-excerpt">
<div>背景知识ACIDACID 是指数据库管理系统在写入或更新资料的过程中,为保证事务(transaction)是正确可靠的,所必须具备的四个特性:
原子性(atomicity)
一致性(consistency)
隔离性(isolation)
持久性(durability)
CAP来自 Berkerly 的 Eric Brewer 教授提出了一个著名的 CAP 理论:一致性(Consistency)</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i> 2020-06-15
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/distributed-system/">distributed-system</a>
</div>
</div>
</div>
</div>
<div class="row mx-auto index-card">
<div class="col-12 col-md-4 m-auto index-img">
<a href="/posts/raft/" target="_self">
<img src="/img/posts/raft.jpg" srcset="/img/loading.gif" alt="Raft 协议介绍">
</a>
</div>
<div class="col-12 col-md-8 mx-auto index-info">
<a class="index-header" href="/posts/raft/">Raft 协议介绍</a>
<a href="/posts/raft/" class="index-excerpt">
<div>寻找一种易于理解的一致性算法(扩展版)论文: In Search of an Understandable Consensus Algorithm (Extended Version)
摘要Raft 是一种为了管理复制日志的一致性算法。它提供了和 Paxos 算法相同的功能和性能,但是它的算法结构和 Paxos 不同,使得 Raft 算法更加容易理解并且更容易构建实际的系统。为了提升可理解性,Ra</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i> 2020-06-15
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/distributed-system/">distributed-system</a>
</div>
</div>
</div>
</div>
<div class="row mx-auto index-card">
<div class="col-12 col-md-4 m-auto index-img">
<a href="/posts/dockerfile-env/" target="_self">
<img src="/img/posts/choco.png" srcset="/img/loading.gif" alt="Dockerfile ENV 的问题">
</a>
</div>
<div class="col-12 col-md-8 mx-auto index-info">
<a class="index-header" href="/posts/dockerfile-env/">Dockerfile ENV 的问题</a>
<a href="/posts/dockerfile-env/" class="index-excerpt">
<div>今天遇见一个小问题,大概是这样,我们的镜像是分层的,在 base 镜像里设置了一个 ENV,然后在后面一层镜像的时候 unset 掉了,但是实际运行的时候发现这个 ENV 一直存在,导致应用启动失败。花了一些时间查问题,其实本身也是 dockerfile 的设计,之前没有体系化的去看,所以这篇就记录下关于 ENV 的最佳实践。
Dockerfile reference for the ENV in</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i> 2020-05-28
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/cloud-native/">cloud-native</a>
<a href="/tags/docker/">docker</a>
</div>
</div>
</div>
</div>
<div class="row mx-auto index-card">
<div class="col-12 col-md-4 m-auto index-img">
<a href="/posts/cloud-native-delivery/" target="_self">
<img src="/img/posts/choco.png" srcset="/img/loading.gif" alt="云原生交付思考">
</a>
</div>
<div class="col-12 col-md-8 mx-auto index-info">
<a class="index-header" href="/posts/cloud-native-delivery/">云原生交付思考</a>
<a href="/posts/cloud-native-delivery/" class="index-excerpt">
<div>当 DevOps 遇上容器时,PPT 上往往有各种遐想的空间。实际在落地的过程中,因为公司已有成熟的发布系统,该发布系统是基于虚拟机时代的场景设计,发布主要是更新下代码和重启服务。为了兼容现有的发布模式,交付做的并不成功,和 k8s 的弹性理念存在冲突。所以我们需要打造一个以 k8s 为核心的新一代云原生 PaaS。
</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i> 2020-05-25
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/cloud-native/">cloud native</a>
</div>
</div>
</div>
</div>
<div class="row mx-auto index-card">
<div class="col-12 col-md-4 m-auto index-img">
<a href="/posts/irq-not-balance/" target="_self">
<img src="/img/posts/tcp.jpeg" srcset="/img/loading.gif" alt="关于网卡中断不均衡问题及其解决方案">
</a>
</div>
<div class="col-12 col-md-8 mx-auto index-info">
<a class="index-header" href="/posts/irq-not-balance/">关于网卡中断不均衡问题及其解决方案</a>
<a href="/posts/irq-not-balance/" class="index-excerpt">
<div>前不久生产碰到一个故障,一台宿主机上出现了大量的丢包,对业务造成了比较大的影响,遇到的问题还是蛮值得记录下来,所以简单的整理了下。
我们先了解几个概念:
什么是中断CPU 工作的模式有两种,一种是中断,由各种设备发起;一种是轮询,由 CPU 主动发起。
我们主要看下中断。
中断又分为两种:一种硬中断;一种软中断。硬中断是由硬件产生的,比如,像磁盘,网卡,键盘;软中断是由当前正在运行的进程所产生的。</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i> 2020-05-13
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/sre/">sre</a>
<a href="/tags/linux/">linux</a>
<a href="/tags/network/">network</a>
</div>
</div>
</div>
</div>
<div class="row mx-auto index-card">
<div class="col-12 col-md-4 m-auto index-img">
<a href="/posts/a-deep-dive-into-kubernetes-controllers/" target="_self">
<img src="/img/posts/choco.png" srcset="/img/loading.gif" alt="[译] A deep dive into Kubernetes controllers">
</a>
</div>
<div class="col-12 col-md-8 mx-auto index-info">
<a class="index-header" href="/posts/a-deep-dive-into-kubernetes-controllers/">[译] A deep dive into Kubernetes controllers</a>
<a href="/posts/a-deep-dive-into-kubernetes-controllers/" class="index-excerpt">
<div>
原文地址
Kubernetes 运行一组控制器,它们负责处理日常任务,以确保集群的期望状态与观察到的状态一致。例如,Replica Sets 维护在集群中运行的正确数量的 pods。Node Controller 查找服务器的状态,并在服务器宕机时做出响应。基本上,每个控制器负责 Kubernetes 世界中的特定资源。对于用户管理他们的集群,用户理解 Kubernetes 中每个控制器的角色</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i> 2020-03-06
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/cloud-native/">cloud-native</a>
</div>
</div>
</div>
</div>
<div class="row mx-auto index-card">
<div class="col-12 col-md-4 m-auto index-img">
<a href="/posts/linux-packet-loss/" target="_self">
<img src="/img/posts/tcp.jpeg" srcset="/img/loading.gif" alt="Linux 丢包那些事">
</a>
</div>
<div class="col-12 col-md-8 mx-auto index-info">
<a class="index-header" href="/posts/linux-packet-loss/">Linux 丢包那些事</a>
<a href="/posts/linux-packet-loss/" class="index-excerpt">
<div>背景最近一直在排查一些网络的问题,比如 connect timeout 、read timeout 以及一些丢包的问题,刚好想整理一些东西,方便和团队内及开发分享。
我们先看下 Linux 系统接收数据包的过程:
网卡收到数据包。
将数据包从网卡硬件缓存转移到服务器内存中。
通知内核处理。
经过 TCP/IP 协议逐层处理。
应用程序通过 read() 从 socket buffer 读取数据</div>
</a>
<div class="index-btm post-metas">
<div class="post-meta mr-3">
<i class="iconfont icon-date"></i> 2019-10-28
</div>
<div class="post-meta">
<i class="iconfont icon-tags"></i>
<a href="/tags/sre/">sre</a>
<a href="/tags/tcp/">tcp</a>
<a href="/tags/linux/">linux</a>
</div>
</div>
</div>
</div>
<nav aria-label="navigation">
<span class="pagination" id="pagination">
<span class="page-number current">1</span><a class="page-number" href="/page/2/">2</a><a class="page-number" href="/page/3/">3</a><a class="page-number" href="/page/4/">4</a><a class="extend next" rel="next" href="/page/2/"><i class="iconfont icon-arrowright"></i></a>
</span>
</nav>
<script>
for (ele of document.getElementById("pagination").getElementsByTagName("a")) {
ele.href += '#board';
}
</script>
</div>
</div>
</div>
</div>
</div>
</main>
<a id="scroll-top-button" href="#" role="button">
<i class="iconfont icon-arrowup" aria-hidden="true"></i>
</a>
<div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
<div class="modal-content">
<div class="modal-header text-center">
<h4 class="modal-title w-100 font-weight-bold">Search</h4>
<button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body mx-3">
<div class="md-form mb-5">
<input type="text" id="local-search-input" class="form-control validate">
<label data-error="x" data-success="v"
for="local-search-input">keyword</label>
</div>
<div class="list-group" id="local-search-result"></div>
</div>
</div>
</div>
</div>
<footer class="mt-5">
<div class="text-center py-3">
<div>
<a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a>
<i class="iconfont icon-love"></i>
<a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener">
<span>Weir's Note</span></a>
</div>
<div>
<!-- 不蒜子统计PV -->
<span id="busuanzi_container_site_pv" style="display: none">
总访问量 <span id="busuanzi_value_site_pv"></span> 次
</span>
<!-- 不蒜子统计UV -->
<span id="busuanzi_container_site_uv" style="display: none">
总访客数 <span id="busuanzi_value_site_uv"></span> 人
</span>
</div>
</div>
</footer>
<!-- SCRIPTS -->
<script src="https://cdn.staticfile.org/jquery/3.4.1/jquery.min.js" ></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/4.4.1/js/bootstrap.min.js" ></script>
<script src="/js/main.js" ></script>
<script src="/js/lazyload.js" ></script>
<script defer src="https://cdn.staticfile.org/clipboard.js/2.0.6/clipboard.min.js" ></script>
<script src="/js/clipboard-use.js" ></script>
<script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>
<!-- Plugins -->
<!-- Baidu Analytics -->
<script defer>
var _hmt = _hmt || [];
(function () {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?16629fdb2f63b0edd20d6ba882477d54";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<!-- Google Analytics -->
<script defer>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-113770326-1', 'auto');
ga('send', 'pageview');
</script>
<script src="https://cdn.staticfile.org/typed.js/2.0.11/typed.min.js" ></script>
<script>
var typed = new Typed('#subtitle', {
strings: [
' ',
"Write the Code. Change the World. ",
],
cursorChar: "_",
typeSpeed: 70,
loop: false,
});
typed.stop();
$(document).ready(function () {
$(".typed-cursor").addClass("h2");
typed.start();
});
</script>
<script src="https://cdn.staticfile.org/anchor-js/4.2.2/anchor.min.js" ></script>
<script>
anchors.options = {
placement: "right",
visible: "hover",
};
var el = "h1,h2,h3,h4,h5,h6".split(",");
var res = [];
for (item of el) {
res.push(".markdown-body > " + item)
}
anchors.add(res.join(", "))
</script>
<script src="/js/local-search.js" ></script>
<script>
var path = "/local-search.xml";
var inputArea = document.querySelector("#local-search-input");
inputArea.onclick = function () {
searchFunc(path, 'local-search-input', 'local-search-result');
this.onclick = null
}
</script>
</body>
</html>