CONTRIBUTING.md 1.46 KB
Newer Older
1
# Guidelines For Contributing
2

3
- Create a new git branch specific to your change, as opposed to making your commits in the master branch.
4
- Don't put multiple fixes/features in the same branch / pull request.
5
- Give a proper description in your pull request of what you're trying to fix.
6
- First line of your commit message should start with present-tense verb, be 50 characters or less, and include the
7
8
relevant issue number(s) if applicable. Example: _Ensure proper PLUGIN_PATH behavior. Refs #428._ If the commit completely
fixes an existing issue or request on the tracker, please use `Fixes #585` or `Fix #585` syntax (so the relevant issue is automatically closed
9
upon PR merge).
10
- Make sure that new features are configurable using a theme variable (eg. `DISPLAY_CHUCKNORRIS_ADVICE`). Should default to
11
12
_False_, so users will not get any surprises when upgrading.
- If you introduce new theme variables, new behaviour or changes from the default Pelican behaviour, make sure you make
13
mention of it in the [README](README.md)
14
- Make sure changes do not break backwards compatibility, especially with regards to settings.
Hilmar Lapp's avatar
Hilmar Lapp committed
15
- Only changes that stand to benefit a majority of users or use cases are suitable for contributing back to the main repository. For tweaks that are likely specific to your site or likings, try using `CUSTOM_CSS`.
16
    - If doing so would require a CSS selector that isn't supported by the theme, create a patch that adds the necessary CSS selector, not the CSS tweak.