Skip to content

Commit 3a6bf2b

Browse files
committed
Use jekyll for docs again
1 parent 3862896 commit 3a6bf2b

36 files changed

+283
-315
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
*-dist.zip
33

44
# Folders to ignore
5-
_gh_pages
5+
docs/_site
66
node_modules

Gruntfile.js

Lines changed: 3 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -11,55 +11,13 @@ module.exports = function(grunt) {
1111
dist: [
1212
'dist',
1313
'*-dist.zip'
14-
],
15-
docs: '_gh_pages/*'
16-
},
17-
less: {
18-
options: {
19-
paths: ['node_modules']
20-
},
21-
docs: {
22-
src: 'docs/assets/less/docs.less',
23-
dest: 'docs/assets/css/docs.css'
24-
}
14+
]
2515
},
2616
copy: {
2717
core: {
2818
expand: true,
2919
src: 'js/**',
3020
dest: 'dist/'
31-
},
32-
assets: {
33-
files: [{
34-
expand: true,
35-
src: 'dist/**',
36-
dest: '_gh_pages/'
37-
}, {
38-
expand: true,
39-
cwd: 'docs',
40-
src: 'assets/**',
41-
dest: '_gh_pages'
42-
}, {
43-
expand: true,
44-
cwd: 'node_modules/bootstrap/dist',
45-
src: '**',
46-
dest: '_gh_pages/vendor/bootstrap'
47-
}, {
48-
expand: true,
49-
cwd: 'node_modules/highlight.js/styles',
50-
src: '*',
51-
dest: '_gh_pages/vendor/highlight.js/css'
52-
}, {
53-
expand: true,
54-
cwd: 'node_modules/jquery/dist',
55-
src: 'jquery.js',
56-
dest: '_gh_pages/vendor/jquery/js'
57-
}, {
58-
expand: true,
59-
cwd: 'node_modules/font-awesome',
60-
src: '{css,fonts}/*',
61-
dest: '_gh_pages/vendor/font-awesome'
62-
}]
6321
}
6422
},
6523
jshint: {
@@ -84,27 +42,14 @@ module.exports = function(grunt) {
8442
},
8543
src: 'js/'
8644
},
87-
grunt: 'Gruntfile.js',
88-
docs: {
89-
options: {
90-
jquery: true,
91-
browser: true,
92-
globals: {
93-
hljs: true
94-
}
95-
},
96-
src: 'docs/assets/js/'
97-
}
45+
grunt: 'Gruntfile.js'
9846
},
9947
jscs: {
10048
options: {
10149
config: 'js/.jscsrc'
10250
},
10351
core: 'js/',
104-
grunt: 'Gruntfile.js',
105-
docs: {
106-
src: 'docs/assets/js/'
107-
}
52+
grunt: 'Gruntfile.js'
10853
},
10954
uglify: {
11055
core: {
@@ -125,18 +70,6 @@ module.exports = function(grunt) {
12570
},
12671
dist: 'dist/**'
12772
},
128-
ejs: {
129-
docs: {
130-
options: {
131-
pkg: '<%= pkg %>',
132-
year: '<%= year %>'
133-
},
134-
expand: true,
135-
cwd: 'docs',
136-
src: 'index.html',
137-
dest: '_gh_pages/'
138-
}
139-
},
14073
compress: {
14174
dist: {
14275
options: {
@@ -164,12 +97,6 @@ module.exports = function(grunt) {
16497
'usebanner'
16598
]);
16699

167-
grunt.registerTask('docs', [
168-
'ejs',
169-
'less',
170-
'copy:assets'
171-
]);
172-
173100
grunt.registerTask('release-zip', [
174101
'compress'
175102
]);

dist/js/bootstrap-checkbox.js

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Bootstrap-checkbox v1.4.0 (https://vsn4ik.github.io/bootstrap-checkbox/)
3-
* Copyright 2013-2017 Vasily A. (https://github.com/vsn4ik)
3+
* Copyright 2013-2018 Vasilii A. (https://github.com/vsn4ik)
44
* Licensed under the MIT license
55
*/
66

@@ -13,15 +13,13 @@
1313
'use strict';
1414

1515
(function(factory) {
16-
if (typeof define == 'function' && define.amd) {
16+
if (typeof define === 'function' && define.amd) {
1717
// AMD. Register as an anonymous module
1818
define(['jquery'], factory);
19-
}
20-
else if (typeof exports == 'object') {
19+
} else if (typeof exports === 'object') {
2120
// Node/CommonJS
2221
module.exports = factory(require('jquery'));
23-
}
24-
else {
22+
} else {
2523
// Browser globals
2624
factory(jQuery);
2725
}
@@ -110,17 +108,15 @@
110108
this.$on.addClass('active');
111109
this.$on.addClass(this.options.onActiveCls);
112110
this.$off.addClass(this.options.offCls);
113-
}
114-
else {
111+
} else {
115112
this.$off.addClass('active');
116113
this.$off.addClass(this.options.offActiveCls);
117114
this.$on.addClass(this.options.onCls);
118115
}
119116

120117
if (this.element.title) {
121118
this.$group.attr('title', this.element.title);
122-
}
123-
else {
119+
} else {
124120
// Attribute title (offTitle, onTitle) on this.$buttons not work (native) if this.element.disabled, fine!
125121
if (this.options.offTitle) {
126122
this.$off.attr('title', this.options.offTitle);
@@ -150,8 +146,7 @@
150146
if (this.options.disabledCursor) {
151147
this.$group.css('cursor', this.options.disabledCursor);
152148
}
153-
}
154-
else {
149+
} else {
155150
this.$group.attr('tabindex', this.element.tabIndex);
156151

157152
if (this.element.autofocus) {
@@ -174,8 +169,7 @@
174169
if (this.element.disabled) {
175170
this.$group.attr('tabindex', this.element.tabIndex);
176171
this.$group.css('cursor', '');
177-
}
178-
else {
172+
} else {
179173
this.$group.removeAttr('tabindex');
180174

181175
if (this.options.disabledCursor) {
@@ -205,13 +199,12 @@
205199
this.$element.trigger('change');
206200
},
207201
keydown: function(event) {
208-
if ($.inArray(event.keyCode, this.options.toggleKeyCodes) != -1) {
202+
if ($.inArray(event.keyCode, this.options.toggleKeyCodes) !== -1) {
209203
// Off vertical scrolling on Spacebar
210204
event.preventDefault();
211205

212206
this.change();
213-
}
214-
else if (event.keyCode == 13) {
207+
} else if (event.keyCode === 13) {
215208
$(this.element.form).trigger('submit');
216209
}
217210
},
@@ -232,7 +225,7 @@
232225
set: function(element, value) {
233226
var data = $.data(element, 'bs.checkbox');
234227

235-
if (data && element.checked != value) {
228+
if (data && element.checked !== value) {
236229
data.change(value);
237230
}
238231

@@ -245,7 +238,7 @@
245238
set: function(element, value) {
246239
var data = $.data(element, 'bs.checkbox');
247240

248-
if (data && element.disabled != value) {
241+
if (data && element.disabled !== value) {
249242
data.toggleDisabled();
250243
}
251244

@@ -265,11 +258,9 @@
265258

266259
if (this instanceof $) {
267260
$elements = this;
268-
}
269-
else if (typeof options == 'string') {
261+
} else if (typeof options === 'string') {
270262
$elements = $(options);
271-
}
272-
else {
263+
} else {
273264
$elements = $(elements);
274265
}
275266

@@ -285,7 +276,7 @@
285276
};
286277

287278
// HTML5 data-*.
288-
// <input data-on-label="43"> --> $('input').data('onLabel') == '43'.
279+
// <input data-on-label="43"> --> $('input').data('onLabel') === '43'.
289280
$.fn.checkboxpicker.defaults = {
290281
baseGroupCls: 'btn-group',
291282
baseCls: 'btn',

dist/js/bootstrap-checkbox.min.js

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

dist/js/i18n/bg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Bootstrap-checkbox v1.4.0 (https://vsn4ik.github.io/bootstrap-checkbox/)
3-
* Copyright 2013-2017 Vasily A. (https://github.com/vsn4ik)
3+
* Copyright 2013-2018 Vasilii A. (https://github.com/vsn4ik)
44
* Licensed under the MIT license
55
*/
66

dist/js/i18n/bg.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Bootstrap-checkbox v1.4.0 (https://vsn4ik.github.io/bootstrap-checkbox/)
3-
* Copyright 2013-2017 Vasily A. (https://github.com/vsn4ik)
3+
* Copyright 2013-2018 Vasilii A. (https://github.com/vsn4ik)
44
* Licensed under the MIT license
55
*/
66

dist/js/i18n/es.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Bootstrap-checkbox v1.4.0 (https://vsn4ik.github.io/bootstrap-checkbox/)
3-
* Copyright 2013-2017 Vasily A. (https://github.com/vsn4ik)
3+
* Copyright 2013-2018 Vasilii A. (https://github.com/vsn4ik)
44
* Licensed under the MIT license
55
*/
66

dist/js/i18n/es.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Bootstrap-checkbox v1.4.0 (https://vsn4ik.github.io/bootstrap-checkbox/)
3-
* Copyright 2013-2017 Vasily A. (https://github.com/vsn4ik)
3+
* Copyright 2013-2018 Vasilii A. (https://github.com/vsn4ik)
44
* Licensed under the MIT license
55
*/
66

dist/js/i18n/pl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Bootstrap-checkbox v1.4.0 (https://vsn4ik.github.io/bootstrap-checkbox/)
3-
* Copyright 2013-2017 Vasily A. (https://github.com/vsn4ik)
3+
* Copyright 2013-2018 Vasilii A. (https://github.com/vsn4ik)
44
* Licensed under the MIT license
55
*/
66

dist/js/i18n/pl.min.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Bootstrap-checkbox v1.4.0 (https://vsn4ik.github.io/bootstrap-checkbox/)
3-
* Copyright 2013-2017 Vasily A. (https://github.com/vsn4ik)
3+
* Copyright 2013-2018 Vasilii A. (https://github.com/vsn4ik)
44
* Licensed under the MIT license
55
*/
66

0 commit comments

Comments
 (0)