2020-01-09 15:24:44 +03:00
|
|
|
# How to Contribute
|
|
|
|
|
2023-03-01 03:23:08 +03:00
|
|
|
:tada: We really appreciate you taking the time to improve this project! :tada:
|
2020-01-09 15:24:44 +03:00
|
|
|
|
2023-03-01 03:23:08 +03:00
|
|
|
To ensure that the blog design is not confusing, this project does not accept
|
|
|
|
suggestions for design changes, such as color scheme, fonts, typography, etc.
|
|
|
|
If your request is about an enhancement, it is recommended to first submit a
|
|
|
|
[Feature Request][pr-issue] issue to discuss whether your idea fits the project.
|
2022-01-04 01:22:49 +03:00
|
|
|
|
2023-03-01 03:23:08 +03:00
|
|
|
Basically, you can follow these steps to complete the contribution.
|
2020-01-09 15:24:44 +03:00
|
|
|
|
2020-07-25 17:26:24 +03:00
|
|
|
1. Fork this project on GitHub and clone it locally.
|
2023-03-01 03:23:08 +03:00
|
|
|
2. Create a new branch from the default branch and give it a descriptive name
|
|
|
|
(format: `feature/<add-new-feat>` or `fix/<fix-a-bug>`).
|
|
|
|
3. After completing development, create a [Conventional Commit][cc] with git.
|
|
|
|
(See also: ["Verify the commits"](#verify-the-commits))
|
|
|
|
4. Create a [Pull Request][gh-pr].
|
2022-01-04 01:22:49 +03:00
|
|
|
|
2023-03-01 03:23:08 +03:00
|
|
|
## Make sure you can pass the CI tests
|
2022-01-04 01:22:49 +03:00
|
|
|
|
2023-03-01 03:23:08 +03:00
|
|
|
This project has [CI][ci] turned on. In order for your [PR][gh-pr] to pass the test,
|
|
|
|
please read the following.
|
2022-01-04 01:22:49 +03:00
|
|
|
|
2023-03-01 03:23:08 +03:00
|
|
|
### Check the core functionality
|
|
|
|
|
2022-01-04 01:22:49 +03:00
|
|
|
```console
|
2023-03-01 03:23:08 +03:00
|
|
|
bash ./tools/test
|
2022-01-04 01:22:49 +03:00
|
|
|
```
|
|
|
|
|
2023-03-01 03:23:08 +03:00
|
|
|
### Check the SASS syntax style
|
2022-01-04 01:22:49 +03:00
|
|
|
|
|
|
|
```console
|
2023-03-01 03:23:08 +03:00
|
|
|
npm test
|
2022-01-04 01:22:49 +03:00
|
|
|
```
|
|
|
|
|
2023-03-01 03:23:08 +03:00
|
|
|
### Verify the commits
|
2022-03-13 11:50:12 +03:00
|
|
|
|
2023-03-01 03:23:08 +03:00
|
|
|
Before you create a git commit, please complete the following setup.
|
2022-03-13 11:50:12 +03:00
|
|
|
|
|
|
|
Install `commitlint` & `husky`:
|
|
|
|
|
|
|
|
```console
|
2023-03-01 03:23:08 +03:00
|
|
|
npm i -g @commitlint/{cli,config-conventional} husky
|
2022-03-13 11:50:12 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
And then enable `husky`:
|
|
|
|
|
|
|
|
```console
|
2023-03-01 03:23:08 +03:00
|
|
|
husky install
|
2022-03-13 11:50:12 +03:00
|
|
|
```
|
|
|
|
|
2023-03-01 03:23:08 +03:00
|
|
|
[pr-issue]: https://github.com/cotes2020/jekyll-theme-chirpy/issues/new?labels=enhancement&template=feature_request.md
|
|
|
|
[gh-pr]: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests
|
|
|
|
[cc]: https://www.conventionalcommits.org/
|
|
|
|
[ci]: https://en.wikipedia.org/wiki/Continuous_integration
|