Skip to content

Commit ed24a51

Browse files
committed
Updated docs to use the Select2 GitHub organization
Documentation will now be at https://select2.github.io
1 parent ad94b6f commit ed24a51

6 files changed

Lines changed: 26 additions & 2 deletions

File tree

Gruntfile.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,11 @@ module.exports = function (grunt) {
6060
'gh-pages': {
6161
options: {
6262
base: 'docs',
63+
branch: 'master',
6364
clone: 'node_modules/grunt-gh-pages/repo',
6465
message: 'Updated docs with master',
6566
push: true,
66-
repo: 'git@github.com:kevin-brown/select2.git'
67+
repo: 'git@github.com:select2/select2.github.io.git'
6768
},
6869
src: '**'
6970
},
@@ -233,5 +234,5 @@ module.exports = function (grunt) {
233234

234235
grunt.registerTask('docs', ['jekyll:serve']);
235236

236-
grunt.registerTask('release', ['default', 'clean:docs', 'gh-pages']);
237+
grunt.registerTask('docs-release', ['default', 'clean:docs', 'gh-pages']);
237238
};

dist/js/select2.amd.full.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,12 +546,14 @@ define('select2/results',[
546546

547547
if (isAtTop) {
548548
self.$results.scrollTop(0);
549+
549550
e.preventDefault();
550551
e.stopPropagation();
551552
} else if (isAtBottom) {
552553
self.$results.scrollTop(
553554
self.$results.get(0).scrollHeight - self.$results.height()
554555
);
556+
555557
e.preventDefault();
556558
e.stopPropagation();
557559
}

dist/js/select2.amd.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,12 +546,14 @@ define('select2/results',[
546546

547547
if (isAtTop) {
548548
self.$results.scrollTop(0);
549+
549550
e.preventDefault();
550551
e.stopPropagation();
551552
} else if (isAtBottom) {
552553
self.$results.scrollTop(
553554
self.$results.get(0).scrollHeight - self.$results.height()
554555
);
556+
555557
e.preventDefault();
556558
e.stopPropagation();
557559
}

dist/js/select2.full.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10081,12 +10081,14 @@ define('select2/results',[
1008110081

1008210082
if (isAtTop) {
1008310083
self.$results.scrollTop(0);
10084+
1008410085
e.preventDefault();
1008510086
e.stopPropagation();
1008610087
} else if (isAtBottom) {
1008710088
self.$results.scrollTop(
1008810089
self.$results.get(0).scrollHeight - self.$results.height()
1008910090
);
10091+
1009010092
e.preventDefault();
1009110093
e.stopPropagation();
1009210094
}

dist/js/select2.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,12 +974,14 @@ define('select2/results',[
974974

975975
if (isAtTop) {
976976
self.$results.scrollTop(0);
977+
977978
e.preventDefault();
978979
e.stopPropagation();
979980
} else if (isAtBottom) {
980981
self.$results.scrollTop(
981982
self.$results.get(0).scrollHeight - self.$results.height()
982983
);
984+
983985
e.preventDefault();
984986
e.stopPropagation();
985987
}

docs/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Select2 Documentation
2+
=====================
3+
This repository holds the latest documentation for [Select2][select2].
4+
5+
The documentation is automatically extracted from the `docs` directory at the
6+
[Select2 source repository][select2-source]. This is done periodically by
7+
the maintainers of Select2.
8+
9+
**Pull requests will usually be ignored, documentation fixes should be made in
10+
the source repository.** We _may_ accept pull requests if they match the
11+
source `docs` directory, but for the most part pull requests will be closed on
12+
sight.
13+
14+
[select2]: https://select2.github.io
15+
[select2-source]: https://github.com/select2/select2

0 commit comments

Comments
 (0)