Skip to content

Commit 1ff5e1d

Browse files
committed
theme changes.
1 parent 06d30d3 commit 1ff5e1d

File tree

14 files changed

+107
-50
lines changed

14 files changed

+107
-50
lines changed

Docs/landing/static/versions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"version": "2.0"}, {"version": "1.10"}]

Docs/reference/config.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,5 @@ title = "MongoDB .NET Driver"
44
theme = "mongodb"
55
canonifyurls = false
66

7-
# Example custom menu Item (Useful for linking to API docs)
8-
# [[menu.main]]
9-
# name = "Issues & Help"
10-
# pre = "<i class='fa fa-life-ring'></i>"
11-
# weight = 100
12-
# identifier = "help"
13-
# url = "https://jira.mongodb.org/browse/CSHARP"
7+
[blackfriday]
8+
plainIdAnchors = true

Docs/reference/data/mongodb.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
githubRepo = "mongo-csharp-driver"
22
githubBranch = "master"
3-
apiUrl = "http://api.mongodb.org/csharp/2.0/html"
4-
googleAnalytics = false
53
currentVersion = "2.0"
6-
driverVersions = ["2.0"]
4+
highlightTheme = "idea.css"
5+
apiUrl = "http://api.mongodb.org/csharp/2.0/html"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<link rel="stylesheet" href="{{.Site.BaseUrl}}/lib/bootstrap-toggle/bootstrap-toggle.min.css" type="text/css" />
2+
<link rel="stylesheet" href="{{.Site.BaseUrl}}/css/dn.css" type="text/css" />
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<script type="text/javascript" src="{{.Site.BaseUrl}}/lib/bootstrap-toggle/bootstrap-toggle.min.js"></script>
2+
<script type="text/javascript" src="{{.Site.BaseUrl}}/js/dn.js"></script>

Docs/reference/static/css/dn.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.downloadInfo {
2+
margin-top: -24px;
3+
font-size: 14px;
4+
}

Docs/reference/static/js/dn.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
jQuery(document).ready(function(){
2+
$('.distroPicker').bootstrapToggle();
3+
$('.distroPicker').change(function () {
4+
if ($('.distroPicker').prop('checked')) {
5+
$('.nuget').addClass('hidden');
6+
$('.paket').removeClass('hidden');
7+
} else {
8+
$('.nuget').addClass('hidden');
9+
$('.paket').removeClass('hidden');
10+
}
11+
});
12+
13+
jQuery.getJSON(DOCUMENTATION_OPTIONS.URL_ROOT + "/../versions.json").done(function( data ) {
14+
15+
$.each(data, function( index, value ) {
16+
var versionUrl = "//mongodb.github.io/mongo-csharp-driver/" + value.version;
17+
var liClass = DOCUMENTATION_OPTIONS.VERSION == value.version ? ' class="active"' : '';
18+
jQuery("#optionsVersionsMenu").append('<li'+liClass+'><a href="'+ versionUrl +'" data-path="manual">'+ value.version +'</a></li>');
19+
});
20+
21+
jQuery("#optionsVersionsPopup").removeClass("hidden");
22+
});
23+
});
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*! ========================================================================
2+
* Bootstrap Toggle: bootstrap-toggle.css v2.2.0
3+
* http://www.bootstraptoggle.com
4+
* ========================================================================
5+
* Copyright 2014 Min Hur, The New York Times Company
6+
* Licensed under MIT
7+
* ======================================================================== */
8+
.checkbox label .toggle,.checkbox-inline .toggle{margin-left:-20px;margin-right:5px}
9+
.toggle{position:relative;overflow:hidden}
10+
.toggle input[type=checkbox]{display:none}
11+
.toggle-group{position:absolute;width:200%;top:0;bottom:0;left:0;transition:left .35s;-webkit-transition:left .35s;-moz-user-select:none;-webkit-user-select:none}
12+
.toggle.off .toggle-group{left:-100%}
13+
.toggle-on{position:absolute;top:0;bottom:0;left:0;right:50%;margin:0;border:0;border-radius:0}
14+
.toggle-off{position:absolute;top:0;bottom:0;left:50%;right:0;margin:0;border:0;border-radius:0}
15+
.toggle-handle{position:relative;margin:0 auto;padding-top:0;padding-bottom:0;height:100%;width:0;border-width:0 1px}
16+
.toggle.btn{min-width:59px;min-height:34px}
17+
.toggle-on.btn{padding-right:24px}
18+
.toggle-off.btn{padding-left:24px}
19+
.toggle.btn-lg{min-width:79px;min-height:45px}
20+
.toggle-on.btn-lg{padding-right:31px}
21+
.toggle-off.btn-lg{padding-left:31px}
22+
.toggle-handle.btn-lg{width:40px}
23+
.toggle.btn-sm{min-width:50px;min-height:30px}
24+
.toggle-on.btn-sm{padding-right:20px}
25+
.toggle-off.btn-sm{padding-left:20px}
26+
.toggle.btn-xs{min-width:35px;min-height:22px}
27+
.toggle-on.btn-xs{padding-right:12px}
28+
.toggle-off.btn-xs{padding-left:12px}

Docs/reference/static/lib/bootstrap-toggle/bootstrap-toggle.min.js

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Docs/reference/static/lib/bootstrap-toggle/bootstrap-toggle.min.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)