You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking to contribute something to Select2? **Here's how you can help.**
4
-
5
-
Please take a moment to review this document in order to make the contribution
6
-
process easy and effective for everyone involved.
7
-
8
-
Following these guidelines helps to communicate that you respect the time of
9
-
the developers managing and developing this open source project. In return,
10
-
they should reciprocate that respect in addressing your issue or assessing
11
-
patches and features.
12
-
13
-
Using the issue tracker
14
-
-----------------------
15
-
When [reporting bugs][reporting-bugs] or
16
-
[requesting features][requesting-features], the
17
-
[issue tracker on GitHub][issue-tracker] is the recommended channel to use.
18
-
19
-
The issue tracker **is not** a place for support requests. The
20
-
[mailing list][community] or [IRC channel][community] are better places to
21
-
get help.
22
-
23
-
Reporting bugs with Select2
24
-
---------------------------
25
-
We really appreciate clear bug reports that _consistently_ show an issue
26
-
_within Select2_.
27
-
28
-
The ideal bug report follows these guidelines:
29
-
30
-
1.**Use the [GitHub issue search][issue-search]**— Check if the issue
31
-
has already been reported.
32
-
2.**Check if the issue has been fixed**— Try to reproduce the problem
33
-
using the code in the `master` branch.
34
-
3.**Isolate the problem**— Try to create an
35
-
[isolated test case][isolated-case] that consistently reproduces the problem.
36
-
37
-
Please try to be as detailed as possible in your bug report, especially if an
38
-
isolated test case cannot be made. Some useful questions to include the answer
39
-
to are:
40
-
41
-
- What steps can be used to reproduce the issue?
42
-
- What is the bug and what is the expected outcome?
43
-
- What browser(s) and Operating System have you tested with?
44
-
- Does the bug happen consistently across all tested browsers?
45
-
- What version of jQuery are you using? And what version of Select2?
46
-
- Are you using Select2 with other plugins?
47
-
48
-
All of these questions will help others fix and identify any potential bugs.
1
+
# Guidelines for Getting Help with Select2
2
+
3
+
**Before** you open a new issue, you must **read these guidelines.** If it is evident from your issue that you failed to research your question properly, **your issue may be closed** without being answered.
4
+
5
+
## Troubleshooting
6
+
7
+
There are some common problems that developers may encounter when using working with Select2 for the first time. **If you are new to Select2**, please consult the [common problems](https://select2.org/troubleshooting/common-problems) section of the documentation first.
8
+
9
+
If you don't find what you're looking for there, then please check the the [forums](https://forums.select2.org), [Stack Overflow](https://stackoverflow.com/questions/tagged/jquery-select2) and [existing issues](https://github.com/select2/select2/issues?utf8=%E2%9C%93&q=is%3Aissue), both opened and closed. Your question may have already been asked and answered before!
10
+
11
+
## Asking for Help
12
+
13
+
In general, the Github issue tracker should **only** be used for **bug reports** and **feature requests**. If you're just having trouble getting something to work, you should ask in the [forums](https://forums.select2.org) or on [Stack Overflow](https://stackoverflow.com) instead.
14
+
15
+
### Rules for all community platforms
16
+
17
+
1. Be polite, civil and respectful. Select2 is built and maintained entirely by volunteers.
18
+
2. If you are not conversationally proficient in English, **do not just post a machine translation** (e.g. Google Translate). Post in your native language, so that others who speak your language can help. You may post a machine translation below it for the general community to decipher.
19
+
3. Any code snippets should be formatted using [Markdown code fences](https://learn.userfrosting.com/troubleshooting/getting-help#use-markdown-to-format-blocks-of-code) and properly indented. Poorly formatted code is difficult to read and reflects badly on you as a programmer.
20
+
4. Check what you write for spelling and grammar issues. If you want others to take the time to read your question carefully, you must write your question carefully.
21
+
5. When possible create and link to a [minimal, complete, and verifiable](https://stackoverflow.com/help/mcve) example by cloning our [JSBin template](http://jsbin.com/goqiqolete/edit?html,js,output). Code dumps, zip files, etc are NOT acceptable.
22
+
6. Include relevant screenshots or animations, if possible. Drag your screenshots directly into the forums or issue tracker text box. They will automatically be uploaded and the Markdown to display them will be generated. Avoid third-party image hosts, or links which require extra clicks to view the image (except IRC, where this is unavoidable).
23
+
24
+
### Stack Overflow
25
+
26
+
Tag your question with the `jquery-select2` tag, and optionally with tags relevant to other technologies involved, such as `jquery` or another client-side framework. You should also mention the version of Select2 that you are using.
27
+
28
+
### GitHub Issue Tracker
29
+
30
+
We really appreciate clear bug reports that _consistently_ show an issue _within Select2_. If you are reporting a bug, you **must** follow these steps:
31
+
32
+
1. Make sure that your issue is a bug or feature request. General usage and troubleshooting questions should be directed to the [forums](https://forums.select2.org) or [Stack Overflow](https://stackoverflow.com/questions/tagged/jquery-select2). Issues asking for general support WILL BE CLOSED automatically.
33
+
2. Search the current issues, both open and closed, for a similar issue. If the bug is still present but the relevant issue has been closed, you may ask us to reopen the issue. Duplicate issues will be closed automatically.
34
+
3. Make sure that you are using the latest stable version of Select2 (see the [release history](https://github.com/select2/select2/releases)). Old minor/patch versions will not be supported.
35
+
4. State the steps needed to reproduce the problem.
36
+
5. Report any errors in detail. Vague issues like "it doesn't work when I do this" are not helpful. Show that you have put some effort into identifying the cause of the error. Check your [browser console](https://learn.userfrosting.com/troubleshooting/debugging#client-side-debugging) for any Javascript error messages.
37
+
6. Mention your version of Select2, as well as the browser(s) and operating system(s) in which the problem occurs.
49
38
50
39
Requesting features in Select2
51
40
------------------------------
52
41
Select2 is a large library that carries with it a lot of functionality. Because
53
42
of this, many feature requests will not be implemented in the core library.
54
43
55
-
Before starting work on a major feature for Select2, **contact the
56
-
[community][community] first** or you may risk spending a considerable amount of
44
+
Before starting work on a major feature for Select2, **post to the [forums](https://forums.select2.org) first** or you may risk spending a considerable amount of
57
45
time on something which the project developers are not interested in bringing
58
46
into the project.
59
47
60
-
Contributing changes to Select2
61
-
-------------------------------
48
+
# Contributing to Select2
49
+
62
50
Select2 is made up of multiple submodules that all come together to make the
63
51
standard and extended builds that are available to users. The build system uses
64
52
Node.js to manage and compile the submodules, all of which is done using the
65
53
Grunt build system.
66
54
67
55
### Installing development dependencies
68
56
69
-
Select2 can be built and developed on any system which supports Node.js. The
70
-
preferred Node.js version is 0.10, but 0.12 and later versions can be used
71
-
without any noticeable issues. You can download Node.js at
57
+
Select2 can be built and developed on any system which supports Node.js. You can download Node.js at
72
58
[their website][nodejs].
73
59
74
-
All other required Node.js packages can be installed using [npm][npm], which
75
-
comes bundled alongside Node.js.
60
+
All other required Node.js packages can be installed using [npm][npm], which comes bundled alongside Node.js.
76
61
77
62
```bash
78
63
cd /path/to/select2/repo
79
64
npm install
80
65
```
81
66
82
-
You may need to install libsass on your system if it is not already available
83
-
in order to build the SASS files which generate the CSS for themes and the main
84
-
component.
85
-
86
-
In order to build and serve the documentation, you need to have [Jekyll][jekyll]
87
-
installed on your system.
67
+
You may need to install `libsass` on your system if it is not already available in order to build the SASS files which generate the CSS for themes and the main component.
88
68
89
69
### Building the Select2 component
90
70
@@ -105,17 +85,6 @@ cd /path/to/select2/repo
105
85
grunt minify
106
86
```
107
87
108
-
### Building the documentation
109
-
110
-
Using the Grunt build system, you run Jekyll and serve the documentation
111
-
locally. This will also set up the examples to use the latest version of
112
-
Select2 that has been built.
113
-
114
-
```bash
115
-
cd /path/to/select2/repo
116
-
grunt docs
117
-
```
118
-
119
88
### Running tests
120
89
121
90
Select2 uses the QUnit test system to test individual components.
@@ -125,6 +94,45 @@ cd /path/to/selct2/repo
125
94
grunt test
126
95
```
127
96
97
+
### Setting up the documentation repo
98
+
99
+
The documentation for Select2 is maintained in a [separate repository](https://github.com/select2/docs). Select2.org is built with the flat-file CMS [Grav](http://getgrav.org), using their [RTFM skeleton](https://github.com/getgrav/grav-skeleton-rtfm-site#rtfm-skeleton).
100
+
101
+
The documentation files themselves are written in Markdown, and can be found in the `pages/` subdirectory. You can submit pull requests to the `develop` branch of the repo.
102
+
103
+
If you'd like to set up a local instance of the entire documentation website, you must first have a web server (Nginx, Apache, etc) and PHP installed locally. Then, follow these steps:
104
+
105
+
#### Step 1 - Install Grav
106
+
107
+
This application uses the [Grav](https://learn.getgrav.org/) CMS. This repository does not contain a full Grav installation - rather, it just contains the contents of Grav's `user` directory, which is where all of our content, themes, and assets live. This was done as per the [recommendation on Grav's blog](https://getgrav.org/blog/developing-with-github-part-2), to make it easier to deploy changes to the live server.
108
+
109
+
To install this website on your computer, first [install grav core](https://getgrav.org/downloads) in a project folder called `select2-docs` under your webserver's document root folder. Then, find the `user` folder inside of your project folder. Delete the contents of the `user` folder and clone this repository directly into the user folder.
110
+
111
+
When you're done it might look something like this:
112
+
113
+
```
114
+
htdocs/
115
+
└── select2-docs/
116
+
├── assets/
117
+
├── ...
118
+
├── user/
119
+
├── .git
120
+
├── accounts/
121
+
├── assets/
122
+
├── config/
123
+
└── ...
124
+
└── ...
125
+
126
+
```
127
+
128
+
#### Step 2
129
+
130
+
Grav needs your webserver to be able to write to certain directories. Make sure that `backup/`, `cache/`, `images/`, `logs/`, and `tmp/` are all writeable by the user account under which your webserver runs.
131
+
132
+
#### Step 3
133
+
134
+
Visit the local installation in your browser! For example, [http://localhost/select2-docs](http://localhost/select2-docs).
135
+
128
136
### Submitting a pull request
129
137
130
138
We use GitHub's pull request system for submitting patches. Here are some
@@ -141,9 +149,7 @@ pull request will be familiar with the problem it is fixing.
141
149
4. Run your tests first. If your tests aren't passing, the pull request won't
142
150
be able to be merged. If you're breaking existing tests, make sure that you
143
151
aren't causing any breaking changes.
144
-
5. Only include source changes. While it's not required, only including changes
145
-
from the `src` directory will prevent merge conflicts from occurring. Making
146
-
this happen can be as a simple as not committing changes from the `dist`
152
+
5. Only include source changes (`src/`). Do not make changes directly to files in the `dist`
147
153
directory.
148
154
149
155
By following these steps, you will make it easier for your pull request to be
@@ -178,10 +184,7 @@ a comment on the pull request.
178
184
179
185
### Reviving old tickets
180
186
181
-
If you come across tickets which have not been updated for a while, you are
182
-
encouraged to revive them. While this can be as simple as saying `:+1:`, it is
183
-
best if you can include more information on the issue. Common bugs and feature
184
-
requests are more likely to be fixed, whether it is by the community or the
187
+
If you come across tickets which have not been updated for a while, you are encouraged to revive them. If you do, please include more information in your comment on the issue. Common bugs and feature requests are more likely to be fixed, whether it is by the community or the
185
188
developers, so keeping tickets up to date is encouraged.
186
189
187
190
Licensing
@@ -191,14 +194,10 @@ It should also be made clear that **all code contributed to Select** must be
191
194
licensable under the [MIT license][licensing]. Code that cannot be released
192
195
under this license **cannot be accepted** into the project.
-[ ] I have searched for similar issues in both open and closed tickets and cannot find a duplicate
4
-
-[ ] The issue still exists against the latest `master` branch of Select2
5
-
-[ ] This is not a usage question (Those should be directed to the [community](https://select2.github.io/community.html))
6
-
-[ ] I have attempted to find the simplest possible steps to reproduce the issue
7
-
-[ ] I have included a failing test as a pull request (Optional)
2
+
STOP!
8
3
9
-
## Steps to reproduce the issue
4
+
Before you open an issue:
10
5
11
-
1.
12
-
2.
13
-
3.
6
+
1. Make sure that your issue is a BUG or FEATURE REQUEST. General usage and troubleshooting questions should be directed to the [forums](https://forums.select2.org) or [Stack Overflow](https://stackoverflow.com/questions/tagged/jquery-select2). Issues asking for general support WILL BE CLOSED automatically.
7
+
2. Search the current issues, both open and closed, for a similar issue. If the bug is still present but the relevant issue has been closed, you may ask us to reopen the issue. Duplicate issues will be closed automatically.
8
+
3. Make sure that you are using the latest stable version of Select2 (see the [release history](https://github.com/select2/select2/releases)). Old minor/patch versions will not be supported.
14
9
15
-
## Expected behavior and actual behavior
10
+
If you are CERTAIN that it is appropriate to open a new issue, you must:
16
11
17
-
When I follow those steps, I see...
12
+
1. Create and link to a [minimal, complete, and verifiable](https://stackoverflow.com/help/mcve) example by cloning our [JSBin template](http://jsbin.com/goqiqolete/edit?html,js,output). Code dumps, zip files, etc are NOT acceptable.
13
+
2. Any additional code snippets should be formatted using [Markdown code fences](https://learn.userfrosting.com/troubleshooting/getting-help#use-markdown-to-format-blocks-of-code) and properly indented. Poorly formatted code is difficult to read and reflects badly on you as a programmer.
14
+
3. Include relevant screenshots or animations, if possible. Drag your screenshots directly into this text box. They will automatically be uploaded and the Markdown to display them will be generated. Avoid third-party image hosts, or links which require extra clicks to view the image.
15
+
4. If you are not conversationally proficient in English, do NOT just post a machine translation (e.g. Google Translate) to GitHub. Get help in crafting your question, either via the [forums](https://forums.select2.org) or in [chat](https://webchat.freenode.net/?channels=select2). If all else fails, you may post your bug report or feature request in your native language, with a machine translation below that. We will tag it with `translation-needed` so that others who speak your language can find it.
16
+
5. State the steps needed to reproduce the problem.
17
+
6. Mention your version of Select2, as well as the browser(s) and operating system(s) in which the problem occurs.
18
+
7. Clear out this placeholder text.
18
19
19
-
I was expecting...
20
-
21
-
## Environment
22
-
23
-
Browsers
24
-
25
-
-[ ] Google Chrome
26
-
-[ ] Mozilla Firefox
27
-
-[ ] Internet Explorer
28
-
29
-
Operating System
30
-
31
-
-[ ] Windows
32
-
-[ ] Mac OS X
33
-
-[ ] Linux
34
-
-[ ] Mobile
35
-
36
-
Libraries
37
-
38
-
- jQuery version:
39
-
- Select2 version:
40
-
41
-
## Isolating the problem
42
-
43
-
-[ ] This bug happens [on the examples page](https://select2.github.io/examples.html)
44
-
-[ ] The bug happens consistently across all tested browsers
45
-
-[ ] This bug happens when using Select2 without other plugins
46
-
-[ ] I can reproduce this bug in [a jsbin](https://jsbin.com/)
20
+
Issues that ignore these rules will be closed without further comment!
0 commit comments