Sfoglia il codice sorgente

Update docs for latest 4.1.0 changes

This switches the Bootstrap theme recommendation over to the much
newer and much more maintained Bootstrap 4 theme.
Kevin Brown 5 anni fa
parent
commit
4c16579f30

+ 34 - 34
README.md

@@ -1,8 +1,9 @@
 Select2
 =======
 ![Build Status][github-actions-image]
-[![Financial Contributors on Open Collective](https://opencollective.com/select2/all/badge.svg?label=financial+contributors)](https://opencollective.com/select2) [![cdnjs](https://img.shields.io/cdnjs/v/select2.svg)][cdnjs]
+[![Financial Contributors on Open Collective](https://opencollective.com/select2/all/badge.svg?label=financial+contributors)](https://opencollective.com/select2)
 [![jsdelivr](https://data.jsdelivr.com/v1/package/npm/select2/badge)][jsdelivr]
+[![cdnjs](https://img.shields.io/cdnjs/v/select2.svg)][cdnjs]
 
 Select2 is a jQuery-based replacement for select boxes. It supports searching,
 remote data sets, and pagination of results.
@@ -61,7 +62,6 @@ Themes
 - [Bootstrap 3][bootstrap3] - [select2-bootstrap-theme]
 - [Bootstrap 4][bootstrap4] - [select2-bootstrap4-theme]
 - [Flat UI][flat-ui] - [select2-flat-theme]
-- [Metro UI][metro-ui] - [select2-metro]
 
 Missing an integration? Modify this `README` and make a pull request back here to Select2 on GitHub.
 
@@ -89,6 +89,38 @@ Copyright and license
 ---------------------
 The license is available within the repository in the [LICENSE][license] file.
 
+Contributors
+------------
+
+### Code Contributors
+
+This project exists thanks to all the people who contribute. [[Contribute](.github/CONTRIBUTING.md)].
+<a href="https://github.com/select2/select2/graphs/contributors"><img src="https://opencollective.com/select2/contributors.svg?width=890&button=false" /></a>
+
+### Financial Contributors
+
+Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/select2/contribute)]
+
+#### Individuals
+
+<a href="https://opencollective.com/select2"><img src="https://opencollective.com/select2/individuals.svg?width=890"></a>
+
+#### Organizations
+
+Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/select2/contribute)]
+
+<a href="https://opencollective.com/select2/organization/0/website"><img src="https://opencollective.com/select2/organization/0/avatar.svg"></a>
+<a href="https://opencollective.com/select2/organization/1/website"><img src="https://opencollective.com/select2/organization/1/avatar.svg"></a>
+<a href="https://opencollective.com/select2/organization/2/website"><img src="https://opencollective.com/select2/organization/2/avatar.svg"></a>
+<a href="https://opencollective.com/select2/organization/3/website"><img src="https://opencollective.com/select2/organization/3/avatar.svg"></a>
+<a href="https://opencollective.com/select2/organization/4/website"><img src="https://opencollective.com/select2/organization/4/avatar.svg"></a>
+<a href="https://opencollective.com/select2/organization/5/website"><img src="https://opencollective.com/select2/organization/5/avatar.svg"></a>
+<a href="https://opencollective.com/select2/organization/6/website"><img src="https://opencollective.com/select2/organization/6/avatar.svg"></a>
+<a href="https://opencollective.com/select2/organization/7/website"><img src="https://opencollective.com/select2/organization/7/avatar.svg"></a>
+<a href="https://opencollective.com/select2/organization/8/website"><img src="https://opencollective.com/select2/organization/8/avatar.svg"></a>
+<a href="https://opencollective.com/select2/organization/9/website"><img src="https://opencollective.com/select2/organization/9/avatar.svg"></a>
+
+
 [cdnjs]: http://www.cdnjs.com/libraries/select2
 [community]: https://select2.org/getting-help
 [documentation]: https://select2.org
@@ -112,8 +144,6 @@ The license is available within the repository in the [LICENSE][license] file.
 [mdr-angular-select2]: https://github.com/modulr/mdr-angular-select2
 [meteor]: https://www.meteor.com/
 [meteor-select2]: https://github.com/nate-strauser/meteor-select2
-[metro-ui]: http://metroui.org.ua/
-[select2-metro]: http://metroui.org.ua/select2.html
 [ruby-on-rails]: http://rubyonrails.org/
 [select2-bootstrap-theme]: https://github.com/select2/select2-bootstrap-theme
 [select2-bootstrap4-theme]: https://github.com/ttskch/select2-bootstrap4-theme
@@ -125,33 +155,3 @@ The license is available within the repository in the [LICENSE][license] file.
 [wicketstuff-select2]: https://github.com/wicketstuff/core/tree/master/select2-parent
 [yii2]: http://www.yiiframework.com/
 [yii2-widget-select2]: https://github.com/kartik-v/yii2-widget-select2
-
-## Contributors
-
-### Code Contributors
-
-This project exists thanks to all the people who contribute. [[Contribute](.github/CONTRIBUTING.md)].
-<a href="https://github.com/select2/select2/graphs/contributors"><img src="https://opencollective.com/select2/contributors.svg?width=890&button=false" /></a>
-
-### Financial Contributors
-
-Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/select2/contribute)]
-
-#### Individuals
-
-<a href="https://opencollective.com/select2"><img src="https://opencollective.com/select2/individuals.svg?width=890"></a>
-
-#### Organizations
-
-Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/select2/contribute)]
-
-<a href="https://opencollective.com/select2/organization/0/website"><img src="https://opencollective.com/select2/organization/0/avatar.svg"></a>
-<a href="https://opencollective.com/select2/organization/1/website"><img src="https://opencollective.com/select2/organization/1/avatar.svg"></a>
-<a href="https://opencollective.com/select2/organization/2/website"><img src="https://opencollective.com/select2/organization/2/avatar.svg"></a>
-<a href="https://opencollective.com/select2/organization/3/website"><img src="https://opencollective.com/select2/organization/3/avatar.svg"></a>
-<a href="https://opencollective.com/select2/organization/4/website"><img src="https://opencollective.com/select2/organization/4/avatar.svg"></a>
-<a href="https://opencollective.com/select2/organization/5/website"><img src="https://opencollective.com/select2/organization/5/avatar.svg"></a>
-<a href="https://opencollective.com/select2/organization/6/website"><img src="https://opencollective.com/select2/organization/6/avatar.svg"></a>
-<a href="https://opencollective.com/select2/organization/7/website"><img src="https://opencollective.com/select2/organization/7/avatar.svg"></a>
-<a href="https://opencollective.com/select2/organization/8/website"><img src="https://opencollective.com/select2/organization/8/avatar.svg"></a>
-<a href="https://opencollective.com/select2/organization/9/website"><img src="https://opencollective.com/select2/organization/9/avatar.svg"></a>

+ 3 - 8
docs/pages/01.getting-started/03.builds-and-modules/docs.md

@@ -35,7 +35,7 @@ should read over the list below.
         Full (<code>select2.full.js</code> / <code>select2.full.min.js</code>)
       </td>
       <td>
-        You should only use this build if you need the additional features from Select2, like the <a href="{{base_url_absolute}}/upgrading/migrating-from-35">compatibility modules</a> or recommended includes like <a href="https://github.com/jquery/jquery-mousewheel">jquery.mousewheel</a>
+        You should only use this build if you need the recommended includes like <a href="https://github.com/jquery/jquery-mousewheel">jquery.mousewheel</a>
       </td>
     </tr>
   </tbody>
@@ -51,18 +51,13 @@ For most AMD and CommonJS setups, the location of the data files used by Select2
 
 Select2 internally uses AMD and the r.js build tool to build the files located in the `dist` folder. These are built using the files in the `src` folder, so _you can_ just point your modules to the Select2 source and load in `jquery.select2` or `select2/core` when you want to use Select2. The files located in the `dist` folder are also AMD-compatible, so you can point to that file if you want to load in all of the default Select2 modules.
 
-If you are using Select2 in a build environment where preexisting module names are changed during a build step, Select2 may not be able to find optional dependencies or language files. You can manually set the prefixes to use for these files using the `amdBase` and `amdLanguageBase` options.
+If you are using Select2 in a build environment where preexisting module names are changed during a build step, Select2 may not be able to find optional language files. You can manually set the prefixes to use for these files using the `amdLanguageBase` options.
 
 ```
-$.fn.select2.defaults.set('amdBase', 'select2/');
 $.fn.select2.defaults.set('amdLanguageBase', 'select2/i18n/');
 ```
 
-#### `amdBase`
-
-Specifies the base AMD loader path to be used for select2 dependency resolution. This option typically doesn't need to be changed, but is available for situations where module names may change as a result of certain build environments.
-
-#### `amdLanguageBase` 
+#### `amdLanguageBase`
 
 Specifies the base AMD loader language path to be used for select2 language file resolution. This option typically doesn't need to be changed, but is available for situations where module names may change as a result of certain build environments.
 

+ 4 - 6
docs/pages/01.getting-started/chapter.md

@@ -11,7 +11,7 @@ twig_first: true
 
 # Select2
 
-The jQuery replacement for select boxes 
+The jQuery replacement for select boxes
 
 <div class="s2-docs-featurette">
     <a class="button" href="https://forums.select2.org">Forums</a>
@@ -48,7 +48,7 @@ Select2 gives you a customizable select box with support for searching, tagging,
           <h4>Theming</h4>
           <p>
             Fully skinnable, CSS built with Sass and an
-            <a href="https://github.com/select2/select2-bootstrap-theme">optional theme for Bootstrap 3</a>.
+            <a href="https://github.com/ttskch/select2-bootstrap4-theme">optional theme for Bootstrap 4</a>.
           </p>
       </div>
     </div>
@@ -76,9 +76,7 @@ Select2 gives you a customizable select box with support for searching, tagging,
       <div class="size-1-3 size-tablet-1-2">
         <i class="fa fa-html5 fa-4x"></i>
         <h4>Full browser support</h4>
-        <p>Support for both modern and legacy browsers is built-in, even including Internet Explorer 8.</p>
+        <p>Support for both modern and legacy browsers is built-in, even including Internet Explorer 11.</p>
       </div>
     </div>
-</div>
-
->>>>> <p style="text-align: left;">Looking for the documentation for Select2 3.5.3?  That can still be found <a href="http://select2.github.io/select2/">here</a>.</p>
+</div>