File tree Expand file tree Collapse file tree 10 files changed +88
-24
lines changed Expand file tree Collapse file tree 10 files changed +88
-24
lines changed Original file line number Diff line number Diff line change 17
17
forwardable-extended (2.6.0 )
18
18
htmlcompressor (0.4.0 )
19
19
http_parser.rb (0.6.0 )
20
- i18n (1.8.9 )
20
+ i18n (1.8.10 )
21
21
concurrent-ruby (~> 1.0 )
22
22
jekyll (4.1.1 )
23
23
addressable (~> 2.4 )
63
63
kramdown-parser-gfm (1.1.0 )
64
64
kramdown (~> 2.0 )
65
65
liquid (4.0.3 )
66
- listen (3.5.0 )
66
+ listen (3.5.1 )
67
67
rb-fsevent (~> 0.10 , >= 0.10.3 )
68
68
rb-inotify (~> 0.9 , >= 0.9.10 )
69
69
mercenary (0.4.0 )
Original file line number Diff line number Diff line change
1
+ - name : Section 1
2
+ number : One
3
+ - name : Section 2
4
+ number : Two
5
+ - name : Section 3
6
+ number : Three
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ <h1 class="title">FAQs</h1>
6
6
< div class ="accordion accordion-flush " id ="accordionFlushExample ">
7
7
< div class ="accordion-item ">
8
8
< h2 class ="accordion-header " id ="flush-headingOne ">
9
- < button id ="faq-title " class ="accordion-button collapsed " type ="button " data-bs-toggle ="collapse " data-bs-target ="#flush-collapseOne " aria-expanded ="false " aria-controls ="flush-collapseOne ">
9
+ < button id ="faq-title " class ="accordion-button collapsed " type ="button " data-bs-toggle ="collapse " data-bs-target ="#flush-collapseOne " aria-expanded ="true " aria-controls ="flush-collapseOne ">
10
10
Can I still build Nighthawk myself?
11
11
</ button >
12
12
</ h2 >
Original file line number Diff line number Diff line change 40
40
</ button >
41
41
42
42
< div class ="collapse navbar-collapse " id ="navbarSupportedContent ">
43
-
44
- < ul class ="sidebar ">
45
- < h4 class ="doc-heading "> Documentation</ h4 >
46
- {% for doc in site.docs %}
47
- < li >
48
- < h5 > < a class ="doc-link " href ="{% include relative-src.html src=doc.url %} "> {{ doc.title }}</ a > </ h5 >
49
- </ li >
43
+ < ul class ="sidebar ">
44
+ < div class ="accordion accordion-flush " id ="accordionFlushExample ">
45
+ {% for docs in site.data.docs %}
46
+ < div class ="accordion-item ">
47
+ < h2 class ="accordion-header " id ="flush-heading{{docs.number}} ">
48
+ < button id ="faq-title " class ="accordion-button collapsed " type ="button " data-bs-toggle ="collapse " data-bs-target ="#flush-collapse{{docs.number}} " aria-expanded ="false " aria-controls ="flush-collapse{{docs.number}} ">
49
+ < h4 class ="doc-heading "> {{ docs.name }}</ h4 >
50
+ </ button >
51
+ </ h2 >
52
+ < div id ="flush-collapse{{docs.number}} " class ="accordion-collapse collapse " aria-labelledby ="flush-heading{{docs.number}} " data-bs-parent ="#accordionFlushExample ">
53
+ {% for doc in site.docs %}
54
+ {% if doc.section == docs.name %}
55
+ < li >
56
+ < h5 >
57
+ < a
58
+ class ="doc-link "
59
+ href ="{% include relative-src.html src=doc.url %} "
60
+ > {{ doc.title }}</ a
61
+ >
62
+ </ h5 >
63
+ </ li >
64
+ {% endif %}
65
+ {% endfor %}
66
+ </ div >
67
+ </ div >
50
68
{% endfor %}
51
- </ ul >
69
+ </ div >
70
+ </ ul >
52
71
</ div >
53
72
</ nav >
54
73
</ div >
55
74
< div class ="col-lg-9 container-g ">
75
+ {{ foo }}
56
76
{{content}}
57
77
</ div >
58
78
</ div >
Original file line number Diff line number Diff line change @@ -5972,3 +5972,9 @@ div.globalFooterCard.card-environment {
5972
5972
font-size : 14px ;
5973
5973
}
5974
5974
}
5975
+ .accordion-button {
5976
+ border : 0px !important ;
5977
+ }
5978
+ .accordion-button ::after {
5979
+ margin-left : 10px !important ;
5980
+ }
Original file line number Diff line number Diff line change 1
1
---
2
2
layout : docs
3
3
title : Overview
4
+ section : " Section 1"
4
5
---
5
6
# Nighthawk: architecture and key concepts
6
7
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout : docs
3
+ title : Overview
4
+ section : " Section 2"
5
+ ---
6
+
7
+ Test section 2
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout : docs
3
+ title : Overview
4
+ section : " Section 3"
5
+ ---
6
+
7
+ Test section 3
Original file line number Diff line number Diff line change 1
1
---
2
2
layout : docs
3
- title : Using GetNighthawk
3
+ title : GetNighthawk
4
+ section : " Section 1"
4
5
---
5
6
Test
Original file line number Diff line number Diff line change 93
93
94
94
< div class ="collapse navbar-collapse " id ="navbarSupportedContent ">
95
95
< ul class ="sidebar ">
96
- < h4 class ="doc-heading "> Documentation</ h4 >
97
- {% for doc in site.docs %}
98
- < li >
99
- < h5 >
100
- < a
101
- class ="doc-link "
102
- href ="{% include relative-src.html src=doc.url %} "
103
- > {{ doc.title }}</ a
104
- >
105
- </ h5 >
106
- </ li >
107
- {% endfor %}
96
+
97
+ < div class ="accordion accordion-flush " id ="accordionFlushExample ">
98
+ {% for docs in site.data.docs %}
99
+ < div class ="accordion-item ">
100
+ < h2 class ="accordion-header " id ="flush-heading{{docs.number}} ">
101
+ < button id ="faq-title " class ="accordion-button collapsed " type ="button " data-bs-toggle ="collapse " data-bs-target ="#flush-collapse{{docs.number}} " aria-expanded ="false " aria-controls ="flush-collapse{{docs.number}} ">
102
+ < h4 class ="doc-heading "> {{ docs.name }}</ h4 >
103
+ </ button >
104
+ </ h2 >
105
+ < div id ="flush-collapse{{docs.number}} " class ="accordion-collapse collapse " aria-labelledby ="flush-heading{{docs.number}} " data-bs-parent ="#accordionFlushExample ">
106
+ {% for doc in site.docs %}
107
+ {% if doc.section == docs.name %}
108
+ < li >
109
+ < h5 >
110
+ {% assign foo = docs.name %}
111
+ < a
112
+ class ="doc-link "
113
+ href ={% include relative-src.html src =doc.url %}
114
+ > {{ doc.title }}</ a
115
+ >
116
+ </ h5 >
117
+ </ li >
118
+ {% endif %}
119
+ {% endfor %}
120
+ </ div >
121
+ </ div >
122
+ {% endfor %}
123
+ </ div >
108
124
</ ul >
109
125
</ div >
110
126
</ nav >
You can’t perform that action at this time.
0 commit comments