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'
- '.travis.yml'
- '.gitignore'
- 'docs/**'
- 'README.md'
- 'LICENSE'
pull_request:

View file

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

View file

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

View file

@ -2,13 +2,6 @@
"name": "jekyll-theme-chirpy",
"version": "5.0.2",
"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": {
"type": "git",
"url": "git+https://github.com/cotes2020/jekyll-theme-chirpy.git"

View file

@ -28,9 +28,8 @@ check_status() {
check_init() {
local _has_inited=false
if [[ ! -d docs ]]; then
if [[ ! -d .github ]]; then
_has_inited=true # --no-gh
if [[ ! -d .github ]]; then # using option `--no-gh`
_has_inited=true
else
if [[ -f .github/workflows/$ACTIONS_WORKFLOW ]]; then
# on BSD, the `wc` could contains blank
@ -40,7 +39,6 @@ check_init() {
fi
fi
fi
fi
if $_has_inited; then
echo "Already initialized."
@ -80,7 +78,7 @@ init_files() {
# remove the other fies
rm -f .travis.yml
rm -rf _posts/* docs
rm -rf _posts/*
# save changes
git add -A