Skip to content

Commit 695cf2f

Browse files
committed
Updated tutorial and README.
1 parent ef9a45d commit 695cf2f

2 files changed

Lines changed: 54 additions & 21 deletions

File tree

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
![devices-mockup](assets/img/sample/devices-mockup.png)
88

9-
A Jekyll theme with responsive web design that focuses on text presentation. [Live Demo »](https://chirpy.cotes.info)
9+
A Jekyll theme with responsive web design that focuses on text presentation. Hope you like it! [Live Demo »](https://chirpy.cotes.info)
1010

1111
## Features
1212

@@ -23,18 +23,17 @@ A Jekyll theme with responsive web design that focuses on text presentation. [Li
2323

2424
## Quick start
2525

26-
First of all, complete the installation of the following environment dependencies:
26+
Complete the installation of the following environment dependencies:
2727

2828
- [Ruby](https://www.ruby-lang.org/en/downloads/)
2929
- [RubyGem](https://rubygems.org/pages/download)
3030
- [Bundler](https://bundler.io/)
3131
- [Jekyll](https://jekyllrb.com/)
3232
- [Python](https://www.python.org/downloads/)
3333
- [ruamel.yaml](https://pypi.org/project/ruamel.yaml/)
34+
- [fswatch](http://emcrisostomo.github.io/fswatch/getting.html)
3435

35-
Clone the repository locally, but to prevent losing the latest features, consider using **Fork** instead of cloning.
36-
37-
Install the Jekyll plugins:
36+
Next, [**fork**](https://github.com/cotes2020/jekyll-theme-chirpy/fork) this project and rename as `<username>.github.io`, then clone the replicated repository locally. Go to the root directory and install the Jekyll plugins:
3837

3938
```
4039
$ bundle install
@@ -48,7 +47,9 @@ $ bash run.sh
4847

4948
Now, open your favorite brower and visit <http://127.0.0.1:4000>
5049

51-
Please refer to the [documentation](https://chirpy.cotes.info/posts/getting-started/) for more details. Hope you like it.
50+
## Documentation
51+
52+
For more details, please check the [tutorial](https://chirpy.cotes.info/posts/getting-started/). BTW, a copy of the tutorial is also available on the [Wiki](https://github.com/cotes2020/jekyll-theme-chirpy/wiki).
5253

5354

5455
## License

_posts/2019-08-09-getting-started.md

Lines changed: 47 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@
22
title: Getting Started
33
date: 2019-08-09 20:55:00 +0800
44
categories: [Blogging, Tutorial]
5-
tags: [usage]
5+
tags: [getting started]
66
---
77

8+
## Preparation
89

9-
## Basic Environment
10+
First of all, follow the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the installtion of basic environment (Ruby, RubyGem, Bundler and Jekyll). In addition, to use the funny script tools, we also need to install [Python](https://www.python.org/downloads/)(version 3.5 or abover), [ruamel.yaml](https://pypi.org/project/ruamel.yaml/) and [fswatch](http://emcrisostomo.github.io/fswatch/getting.html).
1011

11-
First of all, follow the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the basic environment (Ruby, RubyGem, Bundler and Jekyll) installation.
12+
Next, [fork Chirpy](https://github.com/cotes2020/jekyll-theme-chirpy/fork) and then clone the replicated repository locally.
1213

13-
In addition, the [Python](https://www.python.org/downloads/)(version 3.5 or abover) and [ruamel.yaml](https://pypi.org/project/ruamel.yaml/) are also required.
1414

15+
## Install Jekyll plugins
1516

16-
## Install Jekyll Plugins
17-
18-
In the root direcoty of the project, run the following command:
17+
Go to root directory of the repository and run the following:
1918

2019
```terminal
2120
$ bundle install
@@ -24,6 +23,39 @@ $ bundle install
2423
`bundle` will install all the dependent Jekyll Plugins listed in file `Gemfile` automatically.
2524

2625

26+
## File structure
27+
28+
The main files and related brief introductions are listed below.
29+
30+
```sh
31+
jekyll-theme-chirpy/
32+
├── _data
33+
├── _includes
34+
├── _layouts
35+
├── _posts # posts stay here
36+
├── _scripts
37+
├── assets
38+
├── tabs
39+
│   └── about.md # the ABOUT page
40+
├── .gitignore
41+
├── .travis.yml # remove it
42+
├── 404.html
43+
├── Gemfile
44+
├── LICENSE
45+
├── README.md
46+
├── _config.yml # configuration file
47+
├── build.sh # script tool
48+
├── run.sh # script tool
49+
├── init.sh # script tool
50+
├── pv.sh
51+
├── feed.xml
52+
├── index.html
53+
├── robots.txt
54+
├── search.json
55+
└── sitemap.xml
56+
```
57+
58+
2759
## Configuration
2860

2961
Customize the variables in file `_config.yml` as needed.
@@ -34,26 +66,26 @@ Customize the variables in file `_config.yml` as needed.
3466
The Atom feed url of your site will be:
3567

3668
```
37-
<site_url>/feed.xml
69+
<SITE_URL>/feed.xml
3870
```
3971

40-
The `site_url` was defined by variable `url` in file `_config.yml`.
72+
The `SITE_URL` was defined by variable `url` in file `_config.yml`.
4173

4274

43-
## Run Locally
75+
## Run locally
4476

45-
You may want to preview the site before publishing, so just run the script in the root directory:
77+
You may want to preview the site before publishing, so just run the script tool:
4678

4779
```terminal
4880
$ bash run.sh
4981
```
50-
>**Note**: Because the *Recent Update* required the latest git-log date of posts, make sure the changes of `_posts` have been committed before running this command.
82+
>**Note**: Because the *Recent Update* required the latest git-log date of posts, so make sure the changes of `_posts` have been committed before running this command.
5183
52-
Open the brower and visit [http://127.0.0.1:4000](http://127.0.0.1:4000)
84+
Open a brower and visit <http://127.0.0.1:4000>
5385

5486
## Deploying to GitHub Pages
5587

56-
Before the deployment begins, ensure the `url` in `_config.yml` has been set to `https://<username>.github.io`.
88+
Before the deployment begins, rename your project as `<username>.github.io` and ensure the `url` in `_config.yml` has been set to `https://<username>.github.io`.
5789

5890
### Option 1: Built by GitHub Pages
5991

@@ -76,7 +108,7 @@ It will automatically generates the *Latest Modified Date* and *Categories / Tag
76108
**4**. Visit `https://<username>.github.io` and enjoy.
77109

78110

79-
### Option 2: Build Locally
111+
### Option 2: Build locally
80112

81113
For security reasons, GitHub Pages runs on `safe` mode, which means the third-party Jekyll plugins or custom scripts will not work. If you want to use any another third-party Jekyll plugins, **your have to build locally rather than on GitHub Pages**.
82114

0 commit comments

Comments
 (0)