File tree Expand file tree Collapse file tree 12 files changed +25
-17
lines changed
Docs/reference/themes/mongodb Expand file tree Collapse file tree 12 files changed +25
-17
lines changed Original file line number Diff line number Diff line change 1
- < link rel ="stylesheet " href ="{{.Site.BaseUrl}}/css /bootstrap-custom .css " type ="text/css " />
1
+ < link rel ="stylesheet " href ="{{.Site.BaseUrl}}/lib /bootstrap.css " type ="text/css " />
2
2
< link rel ="stylesheet " href ="{{.Site.BaseUrl}}/lib/font-awesome/css/font-awesome.min.css " type ="text/css " />
3
- < link rel ="stylesheet " href ="{{.Site.BaseUrl}}/lib/tipsy.css " type ="text/css " />
4
3
< link rel ="stylesheet " href ="{{.Site.BaseUrl}}/css/mongodb-docs.css " type ="text/css " />
5
4
< link rel ="stylesheet " href ="{{.Site.BaseUrl}}/css/overrides.css " type ="text/css " />
6
5
< link rel ="stylesheet " href ="{{.Site.BaseUrl}}/lib/highlight/styles/{{ .Site.Data.mongodb.highlightTheme }} " />
6
+ {{ partial "assets/cssExtras.html" . }}
Original file line number Diff line number Diff line change 8
8
} ;
9
9
</ script >
10
10
< script type ="text/javascript " src ="{{.Site.BaseUrl}}/js/jquery.js "> </ script >
11
- < script type ="text/javascript " src ="{{.Site.BaseUrl}}/js/underscore.js "> </ script >
12
- < script type ="text/javascript " src ="{{.Site.BaseUrl}}/js/doctools.js "> </ script >
13
11
< script type ="text/javascript " src ="{{.Site.BaseUrl}}/lib/bootstrap.js "> </ script >
14
- < script type ="text/javascript " src ="{{.Site.BaseUrl}}/lib/jquery.tipsy.js "> </ script >
15
12
< script type ="text/javascript " src ="{{.Site.BaseUrl}}/js/navbar.js "> </ script >
16
13
< script type ="text/javascript " src ="{{.Site.BaseUrl}}/lib/highlight/highlight.pack.js "> </ script >
17
14
< script type ="text/javascript " src ="{{.Site.BaseUrl}}/js/scripts.js "> </ script >
15
+ {{ partial "assets/javascriptExtras.html" . }}
Original file line number Diff line number Diff line change 1
1
{{ if .IsPage }}
2
- {{ $File := .File }} {{with $File.LogicalName }}
3
- < a class ="edit-link " href ="https://github.com/mongodb/{{ $.Site.Data.mongodb.githubRepo }}/docs/content/ {{ $File.Dir }}{{ $File.LogicalName }} " target ="_blank " title ="Edit {{ $File.Dir }}{{ $File.LogicalName }} on GitHub "> < i class ="fa fa-pencil-square-o "> </ i > </ a >
2
+ {{ $File := .File }} {{with $File.LogicalName }} {{ $srcref := add (add "docs/reference/content/" $File.Dir) $File.LogicalName }}
3
+ < a class ="edit-link " href ="https://github.com/mongodb/{{ $.Site.Data.mongodb.githubRepo }}/blob/ {{ $.Site.Data.mongodb.githubBranch }}/ {{ $srcref }} " target ="_blank " title ="Edit {{ $File.Dir }}{{ $File.LogicalName }} on GitHub "> < i class ="fa fa-pencil-square-o "> </ i > </ a >
4
4
{{end}}
5
5
{{end}}
6
6
{{ $menuItemL6 := $.Scratch.Get "menu.Item.L6"}}
Original file line number Diff line number Diff line change 6
6
</ div >
7
7
<!--logo start-->
8
8
< div class ="logo pull-left ">
9
- < a href ="{{.Site.BaseUrl}} ">
9
+ < a href ="{{ .Site.BaseUrl}}/../ ">
10
10
< img src ="{{.Site.BaseUrl}}/img/logo-mongodb-header.png ", alt ="MongoDB.org " />
11
11
</ a >
12
12
</ div >
Original file line number Diff line number Diff line change 1
1
< div >
2
2
< div class ="nav-items pull-right ">
3
- < a href ="http://try.mongodb.org/ "> Try it Out</ a >
4
- < a href ="http://www.mongodb.org/downloads "> Downloads</ a >
5
- < a href ="http://www.mongodb.org/get-involved "> Community</ a >
6
- < a href ="http://blog.mongodb.org "> Blog</ a >
3
+ < a href ="http://try.mongodb.org/ " data-toggle ="tooltip " data-placement ="bottom " title ="Try MongoDB in the browser "> Try it Out</ a >
4
+ < a href ="http://www.mongodb.org/downloads " data-toggle ="tooltip " data-placement ="bottom " title ="Download MongoDB "> Downloads</ a >
5
+ < a href ="http://www.mongodb.org/get-involved " data-toggle ="tooltip " data-placement ="bottom " title ="Get involved with MongoDB "> Community</ a >
6
+ < a href ="http://docs.mongodb.org " data-toggle ="tooltip " data-placement ="bottom " title ="The MongoDB Documentation "> Docs</ a >
7
+ < a href ="http://blog.mongodb.org " data-toggle ="tooltip " data-placement ="bottom " title ="The MongoDB Blog "> Blog</ a >
7
8
</ div >
8
9
</ div >
Original file line number Diff line number Diff line change 3
3
< div class ="ssidebar nav-collapse ">
4
4
< div class ="ssidebarwrapper ">
5
5
< h3 >
6
- < a class ="index-link " href ="{{.Site.BaseUrl}} "> {{ .Site.Title }}</ a >
7
- {{ with .Site.Data.mongodb.currentVersion }}< a class ="version pull-right " href =""> {{ . }}</ a > {{ end }}
6
+ < a class ="index-link " href ="{{ .Site.BaseUrl}}/../ "> {{ .Site.Title }}</ a > {{ $baseUrl := .Site.BaseUrl}}
7
+ {{ with .Site.Data.mongodb.currentVersion }}< a class ="version pull-right " href ="{{$baseUrl}} "> {{ . }}</ a > {{ end }}
8
8
</ h3 >
9
9
10
10
<!-- sidebar menu start-->
Original file line number Diff line number Diff line change 1
1
< div class ="admonition {{if .Get "class "}}{{.Get "class"}}{{else}}note{{end}}">
2
- < h5 class ="admonition-title "> Note</ h5 >
2
+ < h5 class ="admonition-title "> {{if .Get "class"}}{{.Get "class"}}{{else}} Note{{end}} </ h5 >
3
3
{{ .Inner }}
4
4
</ div >
Original file line number Diff line number Diff line change 1
- https://github.com/mongodb/{{ .Page.Site.Data.mongodb.githubRepo }}/blob/{{ .Page.Site.Data.mongodb.githubBranch }}/src/{{ .Get 0 }}
1
+ https://github.com/mongodb/{{ .Page.Site.Data.mongodb.githubRepo }}/blob/{{ .Page.Site.Data.mongodb.githubBranch }}/{{ if eq (in (.Get 0) " src/") false }}src/{{ end }} {{ .Get 0 }}
You can’t perform that action at this time.
0 commit comments