Преглед изворни кода

Updated docs to use the Select2 GitHub organization

Documentation will now be at https://select2.github.io
Kevin Brown пре 10 година
родитељ
комит
ed24a51ea3
6 измењених фајлова са 26 додато и 2 уклоњено
  1. 3 2
      Gruntfile.js
  2. 2 0
      dist/js/select2.amd.full.js
  3. 2 0
      dist/js/select2.amd.js
  4. 2 0
      dist/js/select2.full.js
  5. 2 0
      dist/js/select2.js
  6. 15 0
      docs/README.md

+ 3 - 2
Gruntfile.js

@@ -60,10 +60,11 @@ module.exports = function (grunt) {
     'gh-pages': {
       options: {
         base: 'docs',
+        branch: 'master',
         clone: 'node_modules/grunt-gh-pages/repo',
         message: 'Updated docs with master',
         push: true,
-        repo: '[email protected]:kevin-brown/select2.git'
+        repo: '[email protected]:select2/select2.github.io.git'
       },
       src: '**'
     },
@@ -233,5 +234,5 @@ module.exports = function (grunt) {
 
   grunt.registerTask('docs', ['jekyll:serve']);
 
-  grunt.registerTask('release', ['default', 'clean:docs', 'gh-pages']);
+  grunt.registerTask('docs-release', ['default', 'clean:docs', 'gh-pages']);
 };

+ 2 - 0
dist/js/select2.amd.full.js

@@ -546,12 +546,14 @@ define('select2/results',[
 
         if (isAtTop) {
           self.$results.scrollTop(0);
+
           e.preventDefault();
           e.stopPropagation();
         } else if (isAtBottom) {
           self.$results.scrollTop(
             self.$results.get(0).scrollHeight - self.$results.height()
           );
+
           e.preventDefault();
           e.stopPropagation();
         }

+ 2 - 0
dist/js/select2.amd.js

@@ -546,12 +546,14 @@ define('select2/results',[
 
         if (isAtTop) {
           self.$results.scrollTop(0);
+
           e.preventDefault();
           e.stopPropagation();
         } else if (isAtBottom) {
           self.$results.scrollTop(
             self.$results.get(0).scrollHeight - self.$results.height()
           );
+
           e.preventDefault();
           e.stopPropagation();
         }

+ 2 - 0
dist/js/select2.full.js

@@ -10081,12 +10081,14 @@ define('select2/results',[
 
         if (isAtTop) {
           self.$results.scrollTop(0);
+
           e.preventDefault();
           e.stopPropagation();
         } else if (isAtBottom) {
           self.$results.scrollTop(
             self.$results.get(0).scrollHeight - self.$results.height()
           );
+
           e.preventDefault();
           e.stopPropagation();
         }

+ 2 - 0
dist/js/select2.js

@@ -974,12 +974,14 @@ define('select2/results',[
 
         if (isAtTop) {
           self.$results.scrollTop(0);
+
           e.preventDefault();
           e.stopPropagation();
         } else if (isAtBottom) {
           self.$results.scrollTop(
             self.$results.get(0).scrollHeight - self.$results.height()
           );
+
           e.preventDefault();
           e.stopPropagation();
         }

+ 15 - 0
docs/README.md

@@ -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