Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4898267

Browse files
author
Fred Lifton
committed
Merge pull request moby#6567 from JasonGiedymin/add-h3
Add H3 menu entries for leftnav
2 parents ca9d572 + e4742db commit 4898267

3 files changed

Lines changed: 19 additions & 4 deletions

File tree

docs/theme/mkdocs/css/docs.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@
2424
height: 100%;
2525
}
2626

27+
#leftnav h3 {
28+
font-size: 10px;
29+
font-weight: 700;
30+
color: #394d54;
31+
line-height: 1;
32+
margin: 0px 0 10px 0;
33+
padding-left: 20px;
34+
white-space: nowrap;
35+
overflow: hidden;
36+
text-overflow: ellipsis;
37+
}
38+
2739
.content-body {
2840
padding: 0px 0px 0px 20px;
2941
}

docs/theme/mkdocs/css/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ div + .form-inline {
902902
margin-bottom: 22px;
903903
}
904904
#leftnav .nav {
905-
margin: 0;
905+
margin: 0, 0, 20px, 0;
906906
}
907907
#leftnav .nav > li > a {
908908
line-height: 22px;

docs/theme/mkdocs/toc.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
{% for toc_item in toc %}
2-
{% for toc_item in toc_item.children %}
3-
<li class=""><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li>
1+
{% for toc_item in toc %}
2+
{% for toc_h2_item in toc_item.children %}
3+
<li class=""><a href="{{ toc_h2_item.url }}">{{ toc_h2_item.title }}</a></li>
4+
{% for toc_h3_item in toc_h2_item.children %}
5+
<h3><a href="{{ toc_h3_item.url }}">{{ toc_h3_item.title }}</a></h3>
6+
{% endfor %}
47
{% endfor %}
58
{% endfor %}

0 commit comments

Comments
 (0)