Clear references to deleted folder `docs`

This commit is contained in:
Cotes Chung 2022-02-03 23:58:52 +08:00
parent cfe9029cd1
commit b27258899b
5 changed files with 22 additions and 34 deletions

View File

@ -10,7 +10,6 @@ on:
- '!.github/workflows/ci.yml' - '!.github/workflows/ci.yml'
- '.travis.yml' - '.travis.yml'
- '.gitignore' - '.gitignore'
- 'docs/**'
- 'README.md' - 'README.md'
- 'LICENSE' - 'LICENSE'
pull_request: pull_request:

View File

@ -166,7 +166,6 @@ exclude:
- '*.gem' - '*.gem'
- '*.gemspec' - '*.gemspec'
- tools - tools
- docs
- README.md - README.md
- LICENSE - LICENSE
- gulpfile.js - gulpfile.js

View File

@ -44,7 +44,6 @@ The above command will:
1. Removes some files or directories from your repository: 1. Removes some files or directories from your repository:
- `.travis.yml`{: .filepath} - `.travis.yml`{: .filepath}
- files under `_posts`{: .filepath} - files under `_posts`{: .filepath}
- folder `docs`{: .filepath}
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}. 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}.

View File

@ -2,13 +2,6 @@
"name": "jekyll-theme-chirpy", "name": "jekyll-theme-chirpy",
"version": "5.0.2", "version": "5.0.2",
"description": "A minimal, sidebar, responsive web design Jekyll theme that focuses on text presentation.", "description": "A minimal, sidebar, responsive web design Jekyll theme that focuses on text presentation.",
"main": "index.js",
"directories": {
"doc": "docs"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/cotes2020/jekyll-theme-chirpy.git" "url": "git+https://github.com/cotes2020/jekyll-theme-chirpy.git"

View File

@ -28,16 +28,14 @@ check_status() {
check_init() { check_init() {
local _has_inited=false local _has_inited=false
if [[ ! -d docs ]]; then if [[ ! -d .github ]]; then # using option `--no-gh`
if [[ ! -d .github ]]; then _has_inited=true
_has_inited=true # --no-gh else
else if [[ -f .github/workflows/$ACTIONS_WORKFLOW ]]; then
if [[ -f .github/workflows/$ACTIONS_WORKFLOW ]]; then # on BSD, the `wc` could contains blank
# on BSD, the `wc` could contains blank local _count="$(find .github/workflows/ -type f -name "*.yml" | wc -l)"
local _count="$(find .github/workflows/ -type f -name "*.yml" | wc -l)" if [[ ${_count//[[:blank:]]/} == 1 ]]; then
if [[ ${_count//[[:blank:]]/} == 1 ]]; then _has_inited=true
_has_inited=true
fi
fi fi
fi fi
fi fi
@ -80,7 +78,7 @@ init_files() {
# remove the other fies # remove the other fies
rm -f .travis.yml rm -f .travis.yml
rm -rf _posts/* docs rm -rf _posts/*
# save changes # save changes
git add -A git add -A
@ -98,19 +96,19 @@ _no_gh=false
while (($#)); do while (($#)); do
opt="$1" opt="$1"
case $opt in case $opt in
--no-gh) --no-gh)
_no_gh=true _no_gh=true
shift shift
;; ;;
-h | --help) -h | --help)
help help
exit 0 exit 0
;; ;;
*) *)
# unknown option # unknown option
help help
exit 1 exit 1
;; ;;
esac esac
done done