Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit 650695d

Browse files
travis1111sghung
authored andcommitted
address the review comments (#149)
Signed-off-by: tiaoyuw <[email protected]>
1 parent a43c725 commit 650695d

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

docs/_layouts/docs.html

+14-1
Original file line numberDiff line numberDiff line change
@@ -378,4 +378,17 @@
378378
</div>
379379
{% include footer.html %}
380380
<!-- Main Col END -->
381-
{% include body-end.html %}
381+
{% include body-end.html %}
382+
383+
384+
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.2.0/anchor.min.js"></script>
385+
<script>
386+
$(document).ready(function(){
387+
388+
anchors.options.placement = 'left';
389+
anchors.add('h1');
390+
anchors.add('h2');
391+
anchors.add('h3');
392+
anchors.add('h4');
393+
});
394+
</script>

docs/css/docs.css

+18
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,24 @@
33
margin-right: 0;
44
}
55

6+
7+
8+
:target:before {
9+
content: "";
10+
display: block;
11+
margin-top: -115x;
12+
height: 115px;
13+
width: 1px;
14+
}
15+
16+
17+
.anchorjs-link {
18+
text-decoration: none;
19+
}
20+
*:hover > .anchorjs-link {
21+
text-decoration: none;
22+
}
23+
624
#sidebar-container {
725
min-height: 100vh;
826
padding: 0;

0 commit comments

Comments
 (0)