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,9 +28,8 @@ 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
@ -40,7 +39,6 @@ check_init() {
fi fi
fi fi
fi fi
fi
if $_has_inited; then if $_has_inited; then
echo "Already initialized." echo "Already initialized."
@ -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