Update build.sh

This commit is contained in:
Anduin Xue 2022-03-11 17:45:16 +08:00 committed by GitHub
parent 0c19f51d7c
commit 90406ba87b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,26 +3,26 @@ set -e
# Requires: Ruby, node, python # Requires: Ruby, node, python
tput setaf 2; echo "Cleaning up..."; tput setaf 0 tput setaf 2; echo "Cleaning up..."; tput sgr0
rm ./node_modules -rf rm ./node_modules -rf
tput setaf 2; echo "Installing markdown lint"; tput setaf 0 tput setaf 2; echo "Installing markdown lint"; tput sgr0
gem install mdl gem install mdl
tput setaf 2; echo "Generating new readme and mkdocs"; tput setaf 0 tput setaf 2; echo "Generating new readme and mkdocs"; tput sgr0
node ./.github/readme-generate.js node ./.github/readme-generate.js
tput setaf 2; echo "Running markdown lint to check issues."; tput setaf 0 tput setaf 2; echo "Running markdown lint to check issues."; tput sgr0
mdl ./dishes ./tips -r ~MD036,~MD024,~MD004,~MD029 mdl ./dishes ./tips -r ~MD036,~MD024,~MD004,~MD029
tput setaf 2; echo "Installing python requirements..."; tput setaf 0 tput setaf 2; echo "Installing python requirements..."; tput sgr0
pip install -r requirements.txt pip install -r requirements.txt
tput setaf 2; echo "Builidng mkdocs and checking links..."; tput setaf 0 tput setaf 2; echo "Builidng mkdocs and checking links..."; tput sgr0
mkdocs build --strict mkdocs build --strict
tput setaf 2; echo "Installing textlint"; tput setaf 0 tput setaf 2; echo "Installing textlint"; tput sgr0
npm install npm install
tput setaf 2; echo "Running textlint..."; tput setaf 0 tput setaf 2; echo "Running textlint..."; tput sgr0
./node_modules/.bin/textlint . --fix ./node_modules/.bin/textlint . --fix