alexweissman f13ea6f5ff Merge branch 'docs-for-ajax-results-looks-like' of https://github.com/sedrubal/select2 il y a 7 ans
..
_includes f13ea6f5ff Merge branch 'docs-for-ajax-results-looks-like' of https://github.com/sedrubal/select2 il y a 7 ans
_layouts ebecea1f98 Update AnchorJS from v0.3.1 to 1.1.1. il y a 10 ans
_sass 37dbe059fc Document DOM events il y a 9 ans
css 37dbe059fc Document DOM events il y a 9 ans
dist 4ae3439dbc Started building the docs site il y a 10 ans
images d34bff5797 Add favicon il y a 9 ans
vendor 81a4a68b11 Updated Font Awesome to 4.5.0 for docs il y a 9 ans
.gitignore 4ae3439dbc Started building the docs site il y a 10 ans
README.md 8534d3e2ef Update instructions for building docs locally il y a 7 ans
announcements-4.0.html d5a76aab26 Switched 4.0 announcement to Jekyll highlighting il y a 9 ans
browserconfig.xml d34bff5797 Add favicon il y a 9 ans
community.html 2c627b4875 Fix layout. il y a 10 ans
examples.html 63d531a9c0 Fixed responsive example in documentation il y a 9 ans
index.html 566c7846fb Update version identifiers for 4.0.3 il y a 9 ans
options-old.html 8ac5f1ddf2 Migrate old options to options-old il y a 9 ans
options.html 2b91ac0a20 Rename options-new to options il y a 9 ans

README.md

Select2 Documentation

This repository holds the latest documentation for Select2.

What is this?

The documentation is automatically extracted from the docs directory at the Select2 source repository. This is done periodically by the maintainers of Select2.

How can I fix an issue in these docs?

If you are reading this from the source repository, within the docs directory, then you're already in the right place. You can fork the source repository, commit your changes, and then make a pull request and it will be reviewed.

If you are reading this from the documentation repository, you are in the wrong place. Pull requests made directly to the documentation repository will be ignored and eventually closed, so don't do that.

How can I build these docs manually?

Requirements

Ruby and Jekyll

Jekyll is a static site builder written in Ruby. You will need the latest version of Jekyll installed to build the Select2 documentation.

First, make sure that you have a Ruby environment set up. Then, to install Jekyll:

gem install jekyll bundler

To upgrade Jekyll:

gem update jekyll

npm and Grunt

Select2 uses Grunt, which is an npm package, as a task runner. To run the build task, you will need to first install the latest version of npm and Node.js as well as the Grunt CLI.

Building the docs with Grunt

This assumes that you have already cloned the Select2 repo to your local development environment. In the main Select2 repository, you will first need to install the npm dependencies locally:

npm install

Then, you can build and launch the documentation by running

grunt docs

This will start up the documentation on port 4000 (http://localhost:4000).