Skip to content

Commit 69d9d06

Browse files
committed
Update Docs.
1 parent c3632d2 commit 69d9d06

3 files changed

Lines changed: 39 additions & 44 deletions

File tree

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

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,25 @@ tags: [usage]
1010

1111
First of all, follow the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the basic environment (Ruby, RubyGem, Bundler and Jekyll) installation.
1212

13-
In addition, the [Python](https://www.python.org/downloads/) and [ruamel.yaml](https://pypi.org/project/ruamel.yaml/) are also required.
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.
14+
15+
16+
## Install Jekyll Plugins
17+
18+
In the root direcoty of the project, run the following command:
19+
20+
```terminal
21+
$ bundle install
22+
```
23+
24+
`bundle` will install all the dependent Jekyll Plugins listed in file `Gemfile` automatically.
25+
1426

1527
## Configuration
1628

1729
Customize the variables in file `_config.yml` as needed.
1830

31+
1932
## Atom Feed
2033

2134
The Atom feed url of your site will be:
@@ -26,19 +39,10 @@ The Atom feed url of your site will be:
2639

2740
The `site_url` was defined by variable `url` in file `_config.yml`.
2841

29-
## Install Jekyll Plugins
30-
31-
In the root direcoty of the project, run the following command:
32-
33-
```terminal
34-
$ bundle install
35-
```
36-
37-
`bundle` will install all dependent Jekyll Plugins declared in `Gemfile` that stored in the root automatically.
3842

3943
## Run Locally
4044

41-
You may want to preview the site before publishing. Run the script in the root directory:
45+
You may want to preview the site before publishing, so just run the script in the root directory:
4246

4347
```terminal
4448
$ bash run.sh
@@ -49,47 +53,43 @@ Open the brower and visit [http://127.0.0.1:4000](http://127.0.0.1:4000)
4953

5054
## Deploying to GitHub Pages
5155

52-
### Option 1: Local Build
56+
Before the deployment begins, ensure the `url` in `_config.yml` has been set to `https://<username>.github.io`.
5357

54-
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**.
58+
### Option 1: Built by GitHub Pages
5559

56-
**1**. On GitHub website, create a brand new repository with name `<username>.github.io`, then clone it locally.
60+
By deploying your site in this way, you can push the source code to GitHub repository directly.
5761

58-
**2**. Build your site by:
62+
> **Note**: If you want to add any third-party Jekyll plugins or custom scripts to your project, please refer to [*Option 2: Build locally*](#option-2-build-locally).
63+
64+
**1**. Rename your repository as `<username>.github.io`.
65+
66+
**2**. Commit the changes of your repository, then run the initialization script:
5967

6068
```console
61-
$ bash build.sh -d /path/to/<username>.github.io/
69+
$ bash init.sh
6270
```
6371

64-
The build results will be stored in the root directory of `<username>.github.io` and don't forget to push the changes of `<username>.github.io` to branch `master` on GitHub.
72+
It will automatically generates the *Latest Modified Date* and *Categories / Tags* page for the posts.
6573

66-
**3**. Go to GitHub website and enable GitHub Pages service for the new repository `<username>.github.io`.
74+
**3**. Push the changes to `origin/master` then go to GitHub website and enable GitHub Pages service for the repository `<username>.github.io`.
6775

6876
**4**. Visit `https://<username>.github.io` and enjoy.
6977

7078

71-
### Option 2: Built by GitHub Pages
79+
### Option 2: Build Locally
7280

73-
By deploying your site in this way, you can push the source code to GitHub repository directly.
74-
75-
> **Note**: If you want to add any third-party Jekyll plugins or custom scripts to your project, please refer to [*Option 1: Build locally*](#option-1-build-locally).
81+
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**.
7682

77-
**1**. Rename your repository as `<username>.github.io`.
83+
**1**. On GitHub website, create a brand new repository with name `<username>.github.io`, then clone it locally.
7884

79-
**2**. Commit the changes of your repository before running the initialization script:
85+
**2**. Build your site by:
8086

8187
```console
82-
$ bash init.sh
88+
$ bash build.sh -d /path/to/<username>.github.io/
8389
```
8490

85-
It will automatically generates the *Latest Modified Date* and *Categories / Tags* page for the posts.
91+
The build results will be stored in the root directory of `<username>.github.io` and don't forget to push the changes of `<username>.github.io` to branch `master` on GitHub.
8692

87-
**3**. Push the changes to `origin/master` then go to GitHub website and enable GitHub Pages service for the repository `<username>.github.io`.
93+
**3**. Go to GitHub website and enable GitHub Pages service for the new repository `<username>.github.io`.
8894

8995
**4**. Visit `https://<username>.github.io` and enjoy.
90-
91-
## See Also
92-
93-
* [Write a new post]({{ site.baseurl }}/posts/write-a-new-post/)
94-
* [Text and Typography]({{ site.baseurl }}/posts/text-and-typography/)
95-
* [Customize the Favicon]({{ site.baseurl }}/posts/customize-the-favicon/)

_posts/2019-08-11-customize-the-favicon.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,17 @@ Whit a square image (PNG, JPG or GIF) in hand, open the site [*Favicon & App Ico
1212

1313
![upload-image]({{ site.baseurl }}/assets/img/sample/upload-image.png)
1414

15-
Wait a moment for the website to generate icons of various sizes automatically.
15+
Click button <kbd>Create Favicon</kbd> and wait a moment for the website to generate the icons of various sizes automatically.
1616

1717
![download-icons]({{ site.baseurl }}/assets/img/sample/download-icons.png)
1818

19-
Download the generated package and extract the contents to cover all files in folder `assets/img/favicons`, but except the following two:
19+
Download the generated package and extract, then remove the following two of them:
2020

2121
- browserconfig.xml
2222
- manifest.json
23+
24+
Now, copy the rest (`.PNG` and `.ICO`) to cover the original files in folder `assets/img/favicons`.
2325

26+
In the end, rebuild your site so that the icon becomes your custom edition.
2427

2528

26-
At last, rebuild the site so that the icon becomes your custom edition.
27-
28-
## See Also
29-
30-
* [Getting Started]({{ site.baseurl }}/posts/getting-started/)
31-
* [Write a new post]({{ site.baseurl }}/posts/write-a-new-post/)
32-
* [Text and Typography]({{ site.baseurl }}/posts/text-and-typography/)
33-

tabs/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ You can fork this project from the [Homepage](https://github.com/cotes2020/jekyl
2828

2929
## Usage
3030

31-
Follow the [tutorial posts]({{ site.baseurl }}/categories/tutorial/), it will help you build a site quickly.
31+
Follow the [tutorial posts]({{ site.baseurl }}/categories/tutorial/), they will help you build a site quickly.
3232

3333
## License
3434

0 commit comments

Comments
 (0)