mirror of
https://github.com/Anduin2017/HowToCook.git
synced 2025-12-18 03:04:23 +08:00
build script.
This commit is contained in:
25
build.sh
Normal file
25
build.sh
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Requires: Ruby, node, python
|
||||||
|
|
||||||
|
tput setaf 2; echo "Installing markdown lint"; tput setaf 0
|
||||||
|
gem install mdl
|
||||||
|
|
||||||
|
tput setaf 2; echo "Generating new readme and mkdocs"; tput setaf 0
|
||||||
|
node ./.github/readme-generate.js
|
||||||
|
|
||||||
|
tput setaf 2; echo "Running markdown lint to check issues."; tput setaf 0
|
||||||
|
mdl . -r ~MD036,~MD024,~MD004,~MD029
|
||||||
|
|
||||||
|
tput setaf 2; echo "Installing python requirements..."; tput setaf 0
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
tput setaf 2; echo "Builidng mkdocs and checking links..."; tput setaf 0
|
||||||
|
mkdocs build --strict
|
||||||
|
|
||||||
|
tput setaf 2; echo "Installing textlint"; tput setaf 0
|
||||||
|
npm install
|
||||||
|
|
||||||
|
tput setaf 2; echo "Running textlint..."; tput setaf 0
|
||||||
|
./node_modules/.bin/textlint . --fix
|
||||||
Reference in New Issue
Block a user