Updated docs to use the Select2 GitHub organization
Documentation will now be at https://select2.github.io
This commit is contained in:
parent
ad94b6faba
commit
ed24a51ea3
@ -60,10 +60,11 @@ module.exports = function (grunt) {
|
|||||||
'gh-pages': {
|
'gh-pages': {
|
||||||
options: {
|
options: {
|
||||||
base: 'docs',
|
base: 'docs',
|
||||||
|
branch: 'master',
|
||||||
clone: 'node_modules/grunt-gh-pages/repo',
|
clone: 'node_modules/grunt-gh-pages/repo',
|
||||||
message: 'Updated docs with master',
|
message: 'Updated docs with master',
|
||||||
push: true,
|
push: true,
|
||||||
repo: 'git@github.com:kevin-brown/select2.git'
|
repo: 'git@github.com:select2/select2.github.io.git'
|
||||||
},
|
},
|
||||||
src: '**'
|
src: '**'
|
||||||
},
|
},
|
||||||
@ -233,5 +234,5 @@ module.exports = function (grunt) {
|
|||||||
|
|
||||||
grunt.registerTask('docs', ['jekyll:serve']);
|
grunt.registerTask('docs', ['jekyll:serve']);
|
||||||
|
|
||||||
grunt.registerTask('release', ['default', 'clean:docs', 'gh-pages']);
|
grunt.registerTask('docs-release', ['default', 'clean:docs', 'gh-pages']);
|
||||||
};
|
};
|
||||||
|
2
dist/js/select2.amd.full.js
vendored
2
dist/js/select2.amd.full.js
vendored
@ -546,12 +546,14 @@ define('select2/results',[
|
|||||||
|
|
||||||
if (isAtTop) {
|
if (isAtTop) {
|
||||||
self.$results.scrollTop(0);
|
self.$results.scrollTop(0);
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
} else if (isAtBottom) {
|
} else if (isAtBottom) {
|
||||||
self.$results.scrollTop(
|
self.$results.scrollTop(
|
||||||
self.$results.get(0).scrollHeight - self.$results.height()
|
self.$results.get(0).scrollHeight - self.$results.height()
|
||||||
);
|
);
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
|
2
dist/js/select2.amd.js
vendored
2
dist/js/select2.amd.js
vendored
@ -546,12 +546,14 @@ define('select2/results',[
|
|||||||
|
|
||||||
if (isAtTop) {
|
if (isAtTop) {
|
||||||
self.$results.scrollTop(0);
|
self.$results.scrollTop(0);
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
} else if (isAtBottom) {
|
} else if (isAtBottom) {
|
||||||
self.$results.scrollTop(
|
self.$results.scrollTop(
|
||||||
self.$results.get(0).scrollHeight - self.$results.height()
|
self.$results.get(0).scrollHeight - self.$results.height()
|
||||||
);
|
);
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
|
2
dist/js/select2.full.js
vendored
2
dist/js/select2.full.js
vendored
@ -10081,12 +10081,14 @@ define('select2/results',[
|
|||||||
|
|
||||||
if (isAtTop) {
|
if (isAtTop) {
|
||||||
self.$results.scrollTop(0);
|
self.$results.scrollTop(0);
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
} else if (isAtBottom) {
|
} else if (isAtBottom) {
|
||||||
self.$results.scrollTop(
|
self.$results.scrollTop(
|
||||||
self.$results.get(0).scrollHeight - self.$results.height()
|
self.$results.get(0).scrollHeight - self.$results.height()
|
||||||
);
|
);
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
|
2
dist/js/select2.js
vendored
2
dist/js/select2.js
vendored
@ -974,12 +974,14 @@ define('select2/results',[
|
|||||||
|
|
||||||
if (isAtTop) {
|
if (isAtTop) {
|
||||||
self.$results.scrollTop(0);
|
self.$results.scrollTop(0);
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
} else if (isAtBottom) {
|
} else if (isAtBottom) {
|
||||||
self.$results.scrollTop(
|
self.$results.scrollTop(
|
||||||
self.$results.get(0).scrollHeight - self.$results.height()
|
self.$results.get(0).scrollHeight - self.$results.height()
|
||||||
);
|
);
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
|
15
docs/README.md
Normal file
15
docs/README.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
Select2 Documentation
|
||||||
|
=====================
|
||||||
|
This repository holds the latest documentation for [Select2][select2].
|
||||||
|
|
||||||
|
The documentation is automatically extracted from the `docs` directory at the
|
||||||
|
[Select2 source repository][select2-source]. This is done periodically by
|
||||||
|
the maintainers of Select2.
|
||||||
|
|
||||||
|
**Pull requests will usually be ignored, documentation fixes should be made in
|
||||||
|
the source repository.** We _may_ accept pull requests if they match the
|
||||||
|
source `docs` directory, but for the most part pull requests will be closed on
|
||||||
|
sight.
|
||||||
|
|
||||||
|
[select2]: https://select2.github.io
|
||||||
|
[select2-source]: https://github.com/select2/select2
|
Loading…
Reference in New Issue
Block a user