alexweissman 0bbf614ee3 Clarify usage of processResults (#4706) 7 years ago
..
_includes 0bbf614ee3 Clarify usage of processResults (#4706) 7 years ago
_layouts ebecea1f98 Update AnchorJS from v0.3.1 to 1.1.1. 10 years ago
_sass 37dbe059fc Document DOM events 9 years ago
css 37dbe059fc Document DOM events 9 years ago
dist 4ae3439dbc Started building the docs site 10 years ago
images d34bff5797 Add favicon 9 years ago
vendor 81a4a68b11 Updated Font Awesome to 4.5.0 for docs 9 years ago
.gitignore 4ae3439dbc Started building the docs site 10 years ago
README.md 8534d3e2ef Update instructions for building docs locally 7 years ago
announcements-4.0.html d5a76aab26 Switched 4.0 announcement to Jekyll highlighting 9 years ago
browserconfig.xml d34bff5797 Add favicon 9 years ago
community.html 2c627b4875 Fix layout. 10 years ago
examples.html 63d531a9c0 Fixed responsive example in documentation 9 years ago
index.html 566c7846fb Update version identifiers for 4.0.3 9 years ago
options-old.html 8ac5f1ddf2 Migrate old options to options-old 9 years ago
options.html 2b91ac0a20 Rename options-new to options 9 years ago

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).