Skip to content

Commit 97abd4d

Browse files
committed
Updated mongodb theme
1 parent 387e6c9 commit 97abd4d

File tree

4 files changed

+36
-40
lines changed

4 files changed

+36
-40
lines changed

docs/reference/themes/mongodb/layouts/partials/assets/javascripts.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<script type="text/javascript">
22
var DOCUMENTATION_OPTIONS = {
33
URL_ROOT: {{.Site.BaseUrl}},
4-
VERSION: {{.Data.mongodb.version}},
4+
VERSION: {{.Site.Data.mongodb.currentVersion}},
55
COLLAPSE_INDEX: false,
66
FILE_SUFFIX: '.html',
7-
HAS_SOURCE: true,
7+
HAS_SOURCE: true
88
};
99
</script>
1010
<script type="text/javascript" src="{{.Site.BaseUrl}}/js/jquery.js"></script>

docs/reference/themes/mongodb/layouts/partials/menu/currentItem.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@
1818
{{ $.Scratch.Set "menu.Item.L0" $menuItem }}
1919

2020
{{ if $menuItemL1 }}
21-
{{ if eq $menuItemL1.Name $menuItem.Parent }}
21+
{{ if eq $menuItemL1.Identifier $menuItem.Parent }}
2222
{{ $.Scratch.Set "menu.Item.L1" $menuItemL1 }}
2323
{{ if $menuItemL2 }}
24-
{{ if eq $menuItemL2.Name $menuItemL1.Parent }}
24+
{{ if eq $menuItemL2.Identifier $menuItemL1.Parent }}
2525
{{ $.Scratch.Set "menu.Item.L2" $menuItemL2 }}
2626
{{ if $menuItemL3 }}
27-
{{ if eq $menuItemL3.Name $menuItemL2.Parent }}
27+
{{ if eq $menuItemL3.Identifier $menuItemL2.Parent }}
2828
{{ $.Scratch.Set "menu.Item.L3" $menuItemL3 }}
2929
{{ if $menuItemL4 }}
30-
{{ if eq $menuItemL4.Name $menuItemL3.Parent }}
30+
{{ if eq $menuItemL4.Identifier $menuItemL3.Parent }}
3131
{{ $.Scratch.Set "menu.Item.L4" $menuItemL4 }}
3232
{{ if $menuItemL5 }}
33-
{{ if eq $menuItemL5.Name $menuItemL4.Parent }}
33+
{{ if eq $menuItemL5.Identifier $menuItemL4.Parent }}
3434
{{ $.Scratch.Set "menu.Item.L5" $menuItemL5 }}
3535
{{ if $menuItemL6 }}
36-
{{ if eq $menuItemL6.Name $menuItemL5.Parent }}
36+
{{ if eq $menuItemL6.Identifier $menuItemL5.Parent }}
3737
{{ $.Scratch.Set "menu.Item.L6" $menuItemL6 }}
3838
{{end}}
3939
{{end}}
Lines changed: 24 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,28 @@
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>
2720

28-
<!-- format selector -->
21+
<!-- format selector -->
2922

3023

31-
<!-- contribute -->
24+
<!-- contribute -->
3225

33-
</ul>
34-
</div>
35-
</div>
36-
{{end }}
26+
</ul>
27+
</div>
28+
</div>

docs/reference/themes/mongodb/static/css/overrides.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@
7676
text-transform: uppercase;
7777
}
7878

79+
a code {
80+
color: #006cbc;
81+
}
82+
7983
code {
8084
background-color: #f5f6f7;
8185
color: #494747;

0 commit comments

Comments
 (0)