2018-02-05 03:53:02 +08:00
# Contributing to Fork Awesome
2013-06-17 22:56:27 +08:00
2018-02-06 12:41:51 +08:00
Looking to contribute something to Fork Awesome? **Here's how you can help.**
2013-06-17 22:56:27 +08:00
2014-05-27 17:04:18 +08:00
## Requesting new icons
2018-02-06 12:41:51 +08:00
New icons mostly start as requests by the [Fork Awesome community on GitHub ](../../issues ). Want to request a new icon? Here are some things to keep in mind:
2014-05-27 17:04:18 +08:00
2018-02-06 12:41:51 +08:00
1. Please be nice. Fork Awesome is a happy place.
2. Please [search ](../../search?type=Issues ) to see if your icon request already exists. If a request is found, please add a 👍 reaction to that one.
2015-02-14 07:15:18 +08:00
4. Please make requests for single icons, unless you are requesting a couple of strictly related icons (e.g., thumbs-up/thumbs-down).
5. Please and thank you if you include the following:
2014-08-06 17:27:34 +08:00
- Title your [new issue ](../../issues/new?title=Icon%20Request:%20icon- ) `Icon request: icon-name` (e.g., `Icon request: icon-car` ).
2014-05-27 17:04:18 +08:00
- Include a few use cases for your requested icon. How do you plan on using it?
- Attach a single color image or two that represent the idea you're going for.
2014-05-27 17:11:50 +08:00
- Request concrete objects: it's harder to make an icon to represent happiness, it's easier to make a smiley face. ☺
2014-05-27 17:04:18 +08:00
2015-08-18 03:18:24 +08:00
2015-02-24 23:54:13 +08:00
## Suggesting icon keyword addition/removal
2014-05-27 17:04:18 +08:00
2018-02-06 12:41:51 +08:00
Icon filters are maintained by the [Fork Awesome community on GitHub ](../../pulls?q=is%3Apr+label%3Adoc ).
2015-02-24 23:54:13 +08:00
If you feel that an icon
* is missing keyword(s)
* contains invalid keyword(s)
please send a [PR ](https://help.github.com/articles/using-pull-requests/ ) to the `master` branch.
2014-05-27 17:04:18 +08:00
2015-08-18 03:18:24 +08:00
2013-06-17 22:56:27 +08:00
## Reporting issues
2018-02-06 12:41:51 +08:00
We only accept issues that are icon requests, bug reports, or feature requests. Bugs must be isolated and reproducible problems that we can fix within the Fork Awesome core. Please read the following guidelines to ensure you are the paragon of bug reporting.
2013-06-17 22:56:27 +08:00
1. **Search for existing issues.** We get a lot of duplicate issues, and you'd help us out a lot by first checking if someone else has reported the same issue. Moreover, the issue may have already been resolved with a fix available.
2018-02-06 12:41:51 +08:00
2. **Create an isolated and reproducible test case.** Be sure the problem exists in Fork Awesome's code with a [reduced test case ](http://css-tricks.com/reduced-test-cases/ ) that should be included in each bug report.
2013-06-17 22:56:27 +08:00
3. **Include a live example.** Make use of jsFiddle, jsBin, or Codepen to share your isolated test cases.
2018-02-06 12:41:51 +08:00
4. **Share as much information as possible.** Include operating system and version, browser and version, version of Fork Awesome, etc. where appropriate. Also include steps to reproduce the bug.
2013-06-17 22:56:27 +08:00
## Key branches
2018-02-06 12:41:51 +08:00
- `master` is the latest, deployed version
2013-06-17 23:00:27 +08:00
- `gh-pages` is the hosted docs (not to be used for pull requests)
2013-06-17 22:56:27 +08:00
## Notes on the repo
2018-02-06 12:41:51 +08:00
Fork Awesome's CSS, LESS, SCSS, and documentation are all powered by Jekyll templates and built before each commit and release.
2013-06-17 23:00:27 +08:00
- `_config.yml` - much of the site is driven off variables from this file, including Font Awesome and Bootstrap versions
- `src/` - All edits to documentation, LESS, SCSS, and CSS should be made to files and templates in this directory
- `src/icons.yml` - all LESS, SCSS, and CSS icon definitions are driven off this single file
2013-06-17 22:56:27 +08:00
## Pull requests
- Any changes to the docs must be made to the Liquid templates in the `src` directory
2014-02-04 01:40:22 +08:00
- Any changes to the styles must be made to the .less and .scss files in the `src` directory
2013-06-17 22:56:27 +08:00
- If modifying the .less and .scss files, always recompile and commit the compiled files
- Try not to pollute your pull request with unintended changes--keep them simple and small
- Try to share which browsers your code has been tested in before submitting a pull request
## Coding standards: HTML
- Two spaces for indentation, never tabs
- Double quotes only, never single quotes
- Always use proper indentation
- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags)
## Coding standards: CSS
- Adhere to the [Recess CSS property order ](http://markdotto.com/2011/11/29/css-property-order/ )
- Multiple-line approach (one property and value per line)
2017-04-01 07:07:49 +08:00
- Always a space after a property's colon (e.g., `display: block;` and not `display:block;` )
2013-06-17 22:56:27 +08:00
- End all lines with a semi-colon
2014-09-21 23:25:33 +08:00
- For multiple, comma-separated selectors, place each selector on its own line
2013-06-17 23:00:27 +08:00
- Attribute selectors, like `input[type="text"]` should always wrap the attribute's value in double quotes, for consistency and safety (see this [blog post on unquoted attribute values ](http://mathiasbynens.be/notes/unquoted-attribute-values ) that can lead to XSS attacks)
2013-06-17 22:56:27 +08:00
## License
2013-06-17 23:00:27 +08:00
By contributing your code, you agree to license your contribution under the terms of the MIT License:
2013-06-17 22:56:27 +08:00
- http://opensource.org/licenses/mit-license.html
## Thanks
Thanks to Bootstrap for their wonderful CONTRIBUTING.MD doc. It was modified to create this one.