Skip to content

Commit b272588

Browse files
committed
Clear references to deleted folder docs
1 parent cfe9029 commit b272588

File tree

5 files changed

+22
-34
lines changed

5 files changed

+22
-34
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
- '!.github/workflows/ci.yml'
1111
- '.travis.yml'
1212
- '.gitignore'
13-
- 'docs/**'
1413
- 'README.md'
1514
- 'LICENSE'
1615
pull_request:

_config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ exclude:
166166
- '*.gem'
167167
- '*.gemspec'
168168
- tools
169-
- docs
170169
- README.md
171170
- LICENSE
172171
- gulpfile.js

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ The above command will:
4444
1. Removes some files or directories from your repository:
4545
- `.travis.yml`{: .filepath}
4646
- files under `_posts`{: .filepath}
47-
- folder `docs`{: .filepath}
4847

4948
2. If the option `--no-gh` is provided, the directory `.github`{: .filepath} will be deleted. Otherwise, set up the GitHub Action workflow by removing the extension `.hook`{: .filepath} of `.github/workflows/pages-deploy.yml.hook`{: .filepath}, and then remove the other files and directories in the folder `.github`{: .filepath}.
5049

package.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
"name": "jekyll-theme-chirpy",
33
"version": "5.0.2",
44
"description": "A minimal, sidebar, responsive web design Jekyll theme that focuses on text presentation.",
5-
"main": "index.js",
6-
"directories": {
7-
"doc": "docs"
8-
},
9-
"scripts": {
10-
"test": "echo \"Error: no test specified\" && exit 1"
11-
},
125
"repository": {
136
"type": "git",
147
"url": "git+https://github.com/cotes2020/jekyll-theme-chirpy.git"

tools/init.sh

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,14 @@ check_status() {
2828
check_init() {
2929
local _has_inited=false
3030

31-
if [[ ! -d docs ]]; then
32-
if [[ ! -d .github ]]; then
33-
_has_inited=true # --no-gh
34-
else
35-
if [[ -f .github/workflows/$ACTIONS_WORKFLOW ]]; then
36-
# on BSD, the `wc` could contains blank
37-
local _count="$(find .github/workflows/ -type f -name "*.yml" | wc -l)"
38-
if [[ ${_count//[[:blank:]]/} == 1 ]]; then
39-
_has_inited=true
40-
fi
31+
if [[ ! -d .github ]]; then # using option `--no-gh`
32+
_has_inited=true
33+
else
34+
if [[ -f .github/workflows/$ACTIONS_WORKFLOW ]]; then
35+
# on BSD, the `wc` could contains blank
36+
local _count="$(find .github/workflows/ -type f -name "*.yml" | wc -l)"
37+
if [[ ${_count//[[:blank:]]/} == 1 ]]; then
38+
_has_inited=true
4139
fi
4240
fi
4341
fi
@@ -80,7 +78,7 @@ init_files() {
8078

8179
# remove the other fies
8280
rm -f .travis.yml
83-
rm -rf _posts/* docs
81+
rm -rf _posts/*
8482

8583
# save changes
8684
git add -A
@@ -98,19 +96,19 @@ _no_gh=false
9896
while (($#)); do
9997
opt="$1"
10098
case $opt in
101-
--no-gh)
102-
_no_gh=true
103-
shift
104-
;;
105-
-h | --help)
106-
help
107-
exit 0
108-
;;
109-
*)
110-
# unknown option
111-
help
112-
exit 1
113-
;;
99+
--no-gh)
100+
_no_gh=true
101+
shift
102+
;;
103+
-h | --help)
104+
help
105+
exit 0
106+
;;
107+
*)
108+
# unknown option
109+
help
110+
exit 1
111+
;;
114112
esac
115113
done
116114

0 commit comments

Comments
 (0)