File tree Expand file tree Collapse file tree 4 files changed +36
-40
lines changed
docs/reference/themes/mongodb Expand file tree Collapse file tree 4 files changed +36
-40
lines changed Original file line number Diff line number Diff line change 1
1
< script type ="text/javascript ">
2
2
var DOCUMENTATION_OPTIONS = {
3
3
URL_ROOT : { { . Site . BaseUrl} } ,
4
- VERSION : { { . Data . mongodb . version } } ,
4
+ VERSION : { { . Site . Data . mongodb . currentVersion } } ,
5
5
COLLAPSE_INDEX : false ,
6
6
FILE_SUFFIX : '.html' ,
7
- HAS_SOURCE : true ,
7
+ HAS_SOURCE : true
8
8
} ;
9
9
</ script >
10
10
< script type ="text/javascript " src ="{{.Site.BaseUrl}}/js/jquery.js "> </ script >
Original file line number Diff line number Diff line change 18
18
{{ $.Scratch.Set "menu.Item.L0" $menuItem }}
19
19
20
20
{{ if $menuItemL1 }}
21
- {{ if eq $menuItemL1.Name $menuItem.Parent }}
21
+ {{ if eq $menuItemL1.Identifier $menuItem.Parent }}
22
22
{{ $.Scratch.Set "menu.Item.L1" $menuItemL1 }}
23
23
{{ if $menuItemL2 }}
24
- {{ if eq $menuItemL2.Name $menuItemL1.Parent }}
24
+ {{ if eq $menuItemL2.Identifier $menuItemL1.Parent }}
25
25
{{ $.Scratch.Set "menu.Item.L2" $menuItemL2 }}
26
26
{{ if $menuItemL3 }}
27
- {{ if eq $menuItemL3.Name $menuItemL2.Parent }}
27
+ {{ if eq $menuItemL3.Identifier $menuItemL2.Parent }}
28
28
{{ $.Scratch.Set "menu.Item.L3" $menuItemL3 }}
29
29
{{ if $menuItemL4 }}
30
- {{ if eq $menuItemL4.Name $menuItemL3.Parent }}
30
+ {{ if eq $menuItemL4.Identifier $menuItemL3.Parent }}
31
31
{{ $.Scratch.Set "menu.Item.L4" $menuItemL4 }}
32
32
{{ if $menuItemL5 }}
33
- {{ if eq $menuItemL5.Name $menuItemL4.Parent }}
33
+ {{ if eq $menuItemL5.Identifier $menuItemL4.Parent }}
34
34
{{ $.Scratch.Set "menu.Item.L5" $menuItemL5 }}
35
35
{{ if $menuItemL6 }}
36
- {{ if eq $menuItemL6.Name $menuItemL5.Parent }}
36
+ {{ if eq $menuItemL6.Identifier $menuItemL5.Parent }}
37
37
{{ $.Scratch.Set "menu.Item.L6" $menuItemL6 }}
38
38
{{end}}
39
39
{{end}}
Original file line number Diff line number Diff line change 1
- {{ $versions := $.Site.Data.mongodb.driverVersions | len | gt 1 }}
2
- {{ if $versions }}
3
- < div class ="option-popup closed ">
4
- < div class ="option-header ">
5
- < i class ="fa fa-gear "> </ i >
6
- < span > OPTIONS</ span >
7
- < i class ="fa fa-angle-up pull-right "> </ i >
8
- </ div >
9
- < div class ="option-body ">
10
- < ul >
11
- <!-- version selector -->
12
- < li >
13
- < label > Version</ label >
14
- < div class ="btn-group btn-group-xs pull-right ">
15
- < button type ="button " class ="btn btn-default dropdown-toggle " data-toggle ="dropdown ">
16
- Select Version < span class ="caret "> </ span >
17
- </ button >
18
- < ul class ="dropdown-menu " role ="menu ">
19
- {{ range $.Site.Data.mongodb.driverVersions }}
20
- < li class ="active ">
21
- < a href ="# " data-path ="manual "> {{.}}</ a >
22
- </ li >
23
- {{ end }}
24
- </ ul >
25
- </ div >
26
- </ li >
1
+ < div class ="option-popup closed hidden " id ="optionsVersionsPopup ">
2
+ < div class ="option-header ">
3
+ < i class ="fa fa-gear "> </ i >
4
+ < span > OPTIONS</ span >
5
+ < i class ="fa fa-angle-up pull-right "> </ i >
6
+ </ div >
7
+ < div class ="option-body ">
8
+ < ul >
9
+ <!-- version selector -->
10
+ < li >
11
+ < label > Version</ label >
12
+ < div class ="btn-group btn-group-xs pull-right ">
13
+ < button type ="button " class ="btn btn-default dropdown-toggle " data-toggle ="dropdown ">
14
+ Select Version < span class ="caret "> </ span >
15
+ </ button >
16
+ < ul class ="dropdown-menu " role ="menu " id ="optionsVersionsMenu ">
17
+ </ ul >
18
+ </ div >
19
+ </ li >
27
20
28
- <!-- format selector -->
21
+ <!-- format selector -->
29
22
30
23
31
- <!-- contribute -->
24
+ <!-- contribute -->
32
25
33
- </ ul >
34
- </ div >
35
- </ div >
36
- {{end }}
26
+ </ ul >
27
+ </ div >
28
+ </ div >
Original file line number Diff line number Diff line change 76
76
text-transform : uppercase;
77
77
}
78
78
79
+ a code {
80
+ color : # 006cbc ;
81
+ }
82
+
79
83
code {
80
84
background-color : # f5f6f7 ;
81
85
color : # 494747 ;
You can’t perform that action at this time.
0 commit comments