mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2024-12-27 22:11:30 +08:00
3.6 KiB
3.6 KiB
Contributing to Font Awesome
Looking to contribute something to Font Awesome? Here's how you can help.
Reporting issues
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 Font Awesome core. Please read the following guidelines to ensure you are the paragon of bug reporting.
- 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.
- Create an isolated and reproducible test case. Be sure the problem exists in Font Awesome's code with a reduced test case that should be included in each bug report.
- Include a live example. Make use of jsFiddle, jsBin, or Codepen to share your isolated test cases.
- Share as much information as possible. Include operating system and version, browser and version, version of Font Awesome, etc. where appropriate. Also include steps to reproduce the bug.
Key branches
master
is the latest, deployed version (not to be used for pull requests)gh-pages
is the hosted docs (not to be used for pull requests)*-wip
branches are the official work in progress branches for the next releases. All pull requests should be submitted against the appropriate branch
Notes on the repo
As of v3.2.0, Font Awesome's CSS, LESS, SCSS, and documentation are all powered by Jekyll templates and built before each commit and release.
_config.yml
- much of the site is driven off variables from this file, including Font Awesome and Bootstrap versionssrc/
- All edits to documentation, LESS, SCSS, and CSS should be made to files and templates in this directorysrc/icons.yml
- all LESS, SCSS, and CSS icon definitions are driven off this single file
Pull requests
- Submit all pull requests against the appropriate
*-wip
branch for easier merging - Any changes to the docs must be made to the Liquid templates in the
src
directory - CSS changes must be done in .less and .scss files first, never the compiled files
- 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
- Multiple-line approach (one property and value per line)
- Always a space after a property's colon (.e.g,
display: block;
and notdisplay:block;
) - End all lines with a semi-colon
- For multiple, comma-separated selectors, place each selector on it's own line
- 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 that can lead to XSS attacks)
License
By contributing your code, you agree to license your contribution under the terms of the MIT License:
Thanks
Thanks to Bootstrap for their wonderful CONTRIBUTING.MD doc. It was modified to create this one.