1
0
mirror of synced 2024-11-22 13:06:08 +03:00
select2/docs
alexweissman 96f5f724d9 Merge branch 'master' of https://github.com/adw99/select2
Adds information about pagination data
2017-08-31 18:03:22 -04:00
..
_includes Merge branch 'master' of https://github.com/adw99/select2 2017-08-31 18:03:22 -04:00
_layouts Update AnchorJS from v0.3.1 to 1.1.1. 2015-06-11 03:45:31 +02:00
_sass Document DOM events 2016-02-14 16:14:58 -05:00
css Document DOM events 2016-02-14 16:14:58 -05:00
dist Started building the docs site 2014-10-21 21:43:58 -04:00
images Add favicon 2016-05-25 10:25:47 +03:00
vendor Updated Font Awesome to 4.5.0 for docs 2016-02-14 14:34:56 -05:00
.gitignore Started building the docs site 2014-10-21 21:43:58 -04:00
announcements-4.0.html Switched 4.0 announcement to Jekyll highlighting 2016-01-30 18:30:57 -05:00
browserconfig.xml Add favicon 2016-05-25 10:25:47 +03:00
community.html Fix layout. 2015-06-07 01:03:37 +02:00
examples.html Fixed responsive example in documentation 2016-01-03 18:57:49 -05:00
index.html Update version identifiers for 4.0.3 2016-05-26 21:16:06 -04:00
options-old.html Migrate old options to options-old 2015-09-14 19:24:46 -04:00
options.html Rename options-new to options 2015-09-14 19:30:32 -04:00
README.md Update instructions for building docs locally 2017-08-31 14:00:03 -04:00

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