Skip to content

Commit 09121c1

Browse files
committed
docs: move the development guide to README (#900)
1 parent fe82cea commit 09121c1

File tree

2 files changed

+85
-105
lines changed

2 files changed

+85
-105
lines changed

.github/CONTRIBUTING.md

Lines changed: 27 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,55 @@
11
# How to Contribute
22

3-
We'd like to thank you for sparing time to improve this project! Here are some guidelines for contributing:
3+
:tada: We really appreciate you taking the time to improve this project! :tada:
44

5-
To ensure that the blog design is not confused, 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_](https://github.com/cotes2020/jekyll-theme-chirpy/issues/new?labels=enhancement&template=feature_request.md) issue to discuss whether your idea fits the project.
5+
To ensure that the blog design is not confusing, this project does not accept
6+
suggestions for design changes, such as color scheme, fonts, typography, etc.
7+
If your request is about an enhancement, it is recommended to first submit a
8+
[Feature Request][pr-issue] issue to discuss whether your idea fits the project.
69

7-
## Basic Process
8-
9-
Generally, contribute to the project by:
10+
Basically, you can follow these steps to complete the contribution.
1011

1112
1. Fork this project on GitHub and clone it locally.
12-
2. Create a new branch from the default branch and give it a descriptive name (format: `feature/<add-new-feat>` / `fix/<fix-a-bug>`).
13-
3. After completing the development, submit a new _Pull Request_. Note that the commit message must follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/), otherwise it will fail the PR check.
14-
15-
## Modifying JavaScript
16-
17-
If your contribution involves JavaScript modification, please read the following sections.
18-
19-
### Inline Scripts
20-
21-
If you need to add comments to the inline JavaScript (the code between the HTML tags `<script>` and `</script>`), please use `/* */` instead of two slashes `//`. Because the HTML will be compressed by [jekyll-compress-html](https://github.com/penibelst/jekyll-compress-html) during deployment, but it cannot handle the `//` properly, which will disrupt the structure of the compressed HTML.
22-
23-
### External Scripts
13+
2. Create a new branch from the default branch and give it a descriptive name
14+
(format: `feature/<add-new-feat>` or `fix/<fix-a-bug>`).
15+
3. After completing development, create a [Conventional Commit][cc] with git.
16+
(See also: ["Verify the commits"](#verify-the-commits))
17+
4. Create a [Pull Request][gh-pr].
2418

25-
If you need to add/change/delete the JavaScript in the directory `_javascript/`, setting up [`Node.js`](https://nodejs.org/) and [`npx`](https://www.npmjs.com/package/npx) is a requirement. And then install the development dependencies:
19+
## Make sure you can pass the CI tests
2620

27-
```console
28-
$ npm i
29-
```
30-
31-
During JavaScript development, real-time debugging can be performed through the following commands:
32-
33-
Firstly, start a Jekyll server:
21+
This project has [CI][ci] turned on. In order for your [PR][gh-pr] to pass the test,
22+
please read the following.
3423

24+
### Check the core functionality
25+
3526
```console
36-
$ bash tools/run
27+
bash ./tools/test
3728
```
3829

39-
And then open a new terminal tab and run:
30+
### Check the SASS syntax style
4031

4132
```console
42-
# Type 'Ctrl + C' to stop
43-
$ npx gulp dev
33+
npm test
4434
```
4535

46-
After debugging, run the command `npx gulp` (without any argument) will automatically output the compressed files to the directory `assets/js/dist/`.
47-
48-
## Verify the commit messages
36+
### Verify the commits
4937

50-
If you want to make sure your commits pass the CI check, you can refer to the following steps.
38+
Before you create a git commit, please complete the following setup.
5139

5240
Install `commitlint` & `husky`:
5341

5442
```console
55-
$ npm i -g @commitlint/{cli,config-conventional} husky
43+
npm i -g @commitlint/{cli,config-conventional} husky
5644
```
5745

5846
And then enable `husky`:
5947

6048
```console
61-
$ husky install
49+
husky install
6250
```
6351

64-
---
65-
66-
:tada: Your volunteering will make the open-source world more beautiful, thanks again! :tada:
52+
[pr-issue]: https://github.com/cotes2020/jekyll-theme-chirpy/issues/new?labels=enhancement&template=feature_request.md
53+
[gh-pr]: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests
54+
[cc]: https://www.conventionalcommits.org/
55+
[ci]: https://en.wikipedia.org/wiki/Continuous_integration

README.md

Lines changed: 58 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -2,105 +2,96 @@
22

33
# Chirpy Jekyll Theme
44

5-
A minimal, responsive, and powerful Jekyll theme for presenting professional writing.
5+
A minimal, responsive and feature-rich Jekyll theme for technical writing.
66

77
[![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy?color=brightgreen)](https://rubygems.org/gems/jekyll-theme-chirpy)
88
[![CI](https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml/badge.svg)](https://github.com/cotes2020/jekyll-theme-chirpy/actions/workflows/ci.yml)
99
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/4e556876a3c54d5e8f2d2857c4f43894)](https://www.codacy.com/gh/cotes2020/jekyll-theme-chirpy/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=cotes2020/jekyll-theme-chirpy&amp;utm_campaign=Badge_Grade)
1010
[![GitHub license](https://img.shields.io/github/license/cotes2020/jekyll-theme-chirpy.svg)](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE)
1111
[![996.icu](https://img.shields.io/badge/link-996.icu-%23FF4D5B.svg)](https://996.icu)
1212

13-
[**Live Demo →**](https://cotes2020.github.io/chirpy-demo)
13+
[**Live Demo →**][demo]
1414

15-
[![Devices Mockup](https://chirpy-img.netlify.app/commons/devices-mockup.png)](https://cotes2020.github.io/chirpy-demo)
15+
[![Devices Mockup](https://chirpy-img.netlify.app/commons/devices-mockup.png)][demo]
1616

1717
</div>
1818

1919
## Features
2020

21-
- Dark/Light Theme Mode
22-
- Localized UI language
23-
- Pinned Posts
24-
- Hierarchical Categories
25-
- Trending Tags
26-
- Table of Contents
27-
- Last Modified Date of Posts
28-
- Syntax Highlighting
29-
- Mathematical Expressions
30-
- Mermaid Diagram & Flowchart
31-
- Dark/Light Mode Images
32-
- Embed Videos
33-
- Disqus/Utterances/Giscus Comments
34-
- Search
35-
- Atom Feeds
36-
- Google Analytics
37-
- Page Views Reporting
38-
- SEO & Performance Optimization
39-
40-
## Quick Start
41-
42-
Follow the instructions in the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the installation of the basic environment. [Git](https://git-scm.com/) also needs to be installed.
43-
44-
### Step 1. Creating a New Site
45-
46-
Sign in to GitHub and browse to [**Chirpy Starter**](https://github.com/cotes2020/chirpy-starter/), click the button <kbd>Use this template</kbd> > <kbd>Create a new repository</kbd>, and name the new repository `USERNAME.github.io`, where `USERNAME` represents your GitHub username.
47-
48-
### Step 2. Installing Dependencies
49-
50-
Clone it to your local machine, go to its root directory, and run the following command to install the dependencies.
51-
52-
```console
53-
$ bundle
54-
```
55-
56-
### Step 3. Running Local Server
57-
58-
Run the following command in the root directory of your site:
59-
60-
```console
61-
$ bundle exec jekyll s
62-
```
63-
64-
Or run with Docker:
65-
66-
```console
67-
$ docker run -it --rm \
68-
--volume="$PWD:/srv/jekyll" \
69-
-p 4000:4000 jekyll/jekyll \
70-
jekyll serve
71-
```
72-
73-
After a few seconds, the local service will be published at _<http://127.0.0.1:4000>_.
21+
<details>
22+
<summary>
23+
<i>Click to check out the features</i>
24+
</summary>
25+
<p>
26+
27+
- Dark/Light Theme Mode
28+
- Localized UI language
29+
- Pinned Posts
30+
- Hierarchical Categories
31+
- Trending Tags
32+
- Table of Contents
33+
- Last Modified Date of Posts
34+
- Syntax Highlighting
35+
- Mathematical Expressions
36+
- Mermaid Diagram & Flowchart
37+
- Dark/Light Mode Images
38+
- Embed Videos
39+
- Disqus/Utterances/Giscus Comments
40+
- Search
41+
- Atom Feeds
42+
- Google Analytics
43+
- Page Views Reporting
44+
- SEO & Performance Optimization
45+
46+
</p>
47+
</details>
7448

7549
## Documentation
7650

77-
For more details on usage, please refer to the tutorial on the [demo website](https://cotes2020.github.io/chirpy-demo/) or [wiki](https://github.com/cotes2020/jekyll-theme-chirpy/wiki). Note that the tutorial is based on the [latest release](https://github.com/cotes2020/jekyll-theme-chirpy/releases/latest), and the features of the default branch are usually ahead of the documentation.
51+
To explore usage, development, and upgrade guide of the project, please refer to
52+
the [Wiki][wiki].
7853

7954
## Contributing
8055

81-
Welcome to report bugs, improve code quality or submit a new feature. For more information, see [contributing guidelines](.github/CONTRIBUTING.md).
56+
Welcome to report bugs, help improve the code or submit new features.
57+
For more information, please see the ["Contributing Guidelines"][contribute-guide].
8258

8359
## Credits
8460

85-
This theme is mainly built with [Jekyll](https://jekyllrb.com/) ecosystem, [Bootstrap](https://getbootstrap.com/), [Font Awesome](https://fontawesome.com/) and some other wonderful tools (their copyright information can be found in the relevant files). The avatar and favicon design come from [Clipart Max](https://www.clipartmax.com/middle/m2i8b1m2K9Z5m2K9_ant-clipart-childrens-ant-cute/).
61+
This theme is mainly built with [Jekyll][jekyllrb] ecosystem,
62+
[Bootstrap][bootstrap], [Font Awesome][icons] and some other [wonderful tools][lib].
63+
The avatar and favicon design come from [Clipart Max][image].
8664

87-
:tada: Thanks to all the volunteers who contributed to this project, their GitHub IDs are on [this list](https://github.com/cotes2020/jekyll-theme-chirpy/graphs/contributors). Also, I won't forget those guys who submitted the issues or unmerged PR because they reported bugs, shared ideas, or inspired me to write more readable documentation.
65+
Thanks to all the [contributors][contributors]. Also, folks who submitted issues
66+
or unmerged PRs should not be forgotten. Because they reported bugs, shared ideas,
67+
or inspired me to write more readable documentation.
8868

89-
Last but not least, thank [JetBrains][jb] for providing the OSS development license.
69+
Last but not least, thanks to [JetBrains][jetbrains] for providing the
70+
_Open Source Development_ license.
9071

9172
## Sponsoring
9273

93-
If you like it, please consider sponsoring me. It will help me to maintain this project better and I would be very grateful!
74+
If you would like to sponsor this project, the following options are available.
9475

9576
[![Ko-fi](https://img.shields.io/badge/-Buy%20Me%20a%20Coffee-ff5f5f?logo=ko-fi&logoColor=white)](https://ko-fi.com/coteschung)
96-
[![Wechat Pay](https://img.shields.io/badge/-Tip%20Me%20on%20WeChat-brightgreen?logo=wechat&logoColor=white)][cn-donation]
97-
[![Alipay](https://img.shields.io/badge/-Tip%20Me%20on%20Alipay-blue?logo=alipay&logoColor=white)][cn-donation]
77+
[![Wechat Pay](https://img.shields.io/badge/-Tip%20Me%20on%20WeChat-brightgreen?logo=wechat&logoColor=white)][donation]
78+
[![Alipay](https://img.shields.io/badge/-Tip%20Me%20on%20Alipay-blue?logo=alipay&logoColor=white)][donation]
9879

9980
## License
10081

101-
This work is published under [MIT](https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE) License.
82+
This work is published under [MIT][mit] License.
10283

10384
<!-- ReadMe links -->
10485

105-
[jb]: https://www.jetbrains.com/?from=jekyll-theme-chirpy
106-
[cn-donation]: https://sponsor.cotes.page/
86+
[jekyllrb]: https://jekyllrb.com/
87+
[bootstrap]: https://getbootstrap.com/
88+
[icons]: https://fontawesome.com/
89+
[image]: https://www.clipartmax.com/middle/m2i8b1m2K9Z5m2K9_ant-clipart-childrens-ant-cute/
90+
[demo]: https://cotes2020.github.io/chirpy-demo/
91+
[wiki]: https://github.com/cotes2020/jekyll-theme-chirpy/wiki
92+
[contribute-guide]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/.github/CONTRIBUTING.md
93+
[contributors]: https://github.com/cotes2020/jekyll-theme-chirpy/graphs/contributors
94+
[lib]: https://github.com/cotes2020/chirpy-static-assets
95+
[jetbrains]: https://www.jetbrains.com/?from=jekyll-theme-chirpy
96+
[donation]: https://sponsor.cotes.page/
97+
[mit]: https://github.com/cotes2020/jekyll-theme-chirpy/blob/master/LICENSE

0 commit comments

Comments
 (0)