Skip to content

Commit 94fb36b

Browse files
committed
Moved the script tools.
1 parent 0677fba commit 94fb36b

File tree

9 files changed

+237
-209
lines changed

9 files changed

+237
-209
lines changed

Diff for: README.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ jekyll-theme-chirpy/
5555
├── _posts # posts stay here
5656
├── _scripts
5757
│ └── travis # CI stuff, remove it
58-
├── .travis.yml # remove it, too
58+
├── .travis.yml # remove this, too
59+
├── .github # remove
5960
├── assets
6061
├── tabs
6162
│   └── about.md # the ABOUT page
@@ -65,14 +66,10 @@ jekyll-theme-chirpy/
6566
├── LICENSE
6667
├── README.md
6768
├── _config.yml # configuration file
68-
├── build.sh # script tool
69-
├── run.sh # script tool
70-
├── init.sh # script tool
71-
├── pv.sh
69+
├── tools # script tools
7270
├── feed.xml
7371
├── index.html
7472
├── robots.txt
75-
├── search.json
7673
└── sitemap.xml
7774
```
7875

@@ -98,7 +95,7 @@ The `SITE_URL` was defined by variable `url` in file `_config.yml`.
9895
You may want to preview the site before publishing, so just run the script tool:
9996

10097
```terminal
101-
$ bash run.sh
98+
$ bash tools/run.sh
10299
```
103100

104101
>**Note**: The *Recent Update* list requires the latest git-log date of posts, thus make sure the changes in `_posts` have been committed before running this command.
@@ -123,7 +120,7 @@ By deploying your site in this way, you can push the source code to GitHub repos
123120
**2**. Commit the changes of your repository, then run the initialization script:
124121

125122
```console
126-
$ bash init.sh
123+
$ bash tools/init.sh
127124
```
128125

129126
It will automatically generates the *Latest Modified Date* and *Categories / Tags* page for the posts.
@@ -142,7 +139,7 @@ For security reasons, GitHub Pages runs on `safe` mode, which means the third-pa
142139
**2**. Build your site by:
143140

144141
```console
145-
$ bash build.sh -d /path/to/<username>.github.io/
142+
$ bash tools/build.sh -d /path/to/<username>.github.io/
146143
```
147144

148145
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.

Diff for: _config.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
title: Chirpy
1010

11-
description: 'A text-based Jekyll theme.'
11+
description: 'A text-focused Jekyll theme.'
1212

1313
# Replace with your domain, e.g. 'https://username.github.io'
1414
url: 'https://www.example.com'
@@ -56,7 +56,7 @@ disqus:
5656
shortname: 'disqus' # Change to your Disqus shortname. › https://help.disqus.com/en/articles/1717111-what-s-a-shortname
5757
comments: true # boolean type, the global switch for posts comments.
5858

59-
# The year your website was first run.
59+
# The year your website first ran.
6060
first_run: 2019
6161

6262
# boolean type, global switch for ToC in posts.
@@ -154,13 +154,10 @@ compress_html:
154154
envs: []
155155

156156
exclude:
157-
- vendor/ # Avoid Jekyll mistakenly read the vender directory on Travis-CI's VM .
157+
- vendor # Avoid Jekyll mistakenly read the vender directory on Travis-CI's VM .
158158
- Gemfile.lock
159159
- Gemfile
160-
- run.sh
161-
- build.sh
162-
- init.sh
163-
- pv.sh
160+
- tools
164161

165162
sitemap_exclude: # Sitemap will exclude the following items.
166163
- /norobots/

Diff for: _posts/2019-08-09-getting-started.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ jekyll-theme-chirpy/
3535
├── _posts # posts stay here
3636
├── _scripts
3737
│ └── travis # CI stuff, remove it
38-
├── .travis.yml # remove it, too
38+
├── .travis.yml # remove this, too
39+
├── .github # remove
3940
├── assets
4041
├── tabs
4142
│   └── about.md # the ABOUT page
@@ -45,14 +46,10 @@ jekyll-theme-chirpy/
4546
├── LICENSE
4647
├── README.md
4748
├── _config.yml # configuration file
48-
├── build.sh # script tool
49-
├── run.sh # script tool
50-
├── init.sh # script tool
51-
├── pv.sh
49+
├── tools # script tools
5250
├── feed.xml
5351
├── index.html
5452
├── robots.txt
55-
├── search.json
5653
└── sitemap.xml
5754
```
5855

@@ -78,7 +75,7 @@ The `SITE_URL` was defined by variable `url` in file `_config.yml`.
7875
You may want to preview the site before publishing, so just run the script tool:
7976

8077
```terminal
81-
$ bash run.sh
78+
$ bash tools/run.sh
8279
```
8380

8481
>**Note**: The *Recent Update* list requires the latest git-log date of posts, thus make sure the changes in `_posts` have been committed before running this command.
@@ -102,7 +99,7 @@ By deploying your site in this way, you can push the source code to GitHub repos
10299
**2**. Commit the changes of your repository, then run the initialization script:
103100

104101
```console
105-
$ bash init.sh
102+
$ bash tools/init.sh
106103
```
107104

108105
It will automatically generates the *Latest Modified Date* and *Categories / Tags* page for the posts.
@@ -121,7 +118,7 @@ For security reasons, GitHub Pages runs on `safe` mode, which means the third-pa
121118
**2**. Build your site by:
122119

123120
```console
124-
$ bash build.sh -d /path/to/<username>.github.io/
121+
$ bash tools/build.sh -d /path/to/<username>.github.io/
125122
```
126123

127124
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.

Diff for: build.sh

-109
This file was deleted.

Diff for: init.sh

-62
This file was deleted.

0 commit comments

Comments
 (0)