1 Star 0 Fork 5

有妖气/程序员做饭指南

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.sh 849 Bytes
一键复制 编辑 原始数据 按行查看 历史
Anduin Xue 提交于 2022-03-26 13:50 . Chmod +x build.sh
#!/bin/bash
set -e
# Requires: Ruby, node, python
tput setaf 2; echo "Cleaning up..."; tput sgr0
rm ./node_modules -rf
tput setaf 2; echo "Installing markdown lint"; tput sgr0
gem install mdl
tput setaf 2; echo "Generating new readme and mkdocs"; tput sgr0
node ./.github/readme-generate.js
tput setaf 2; echo "Running markdown lint to check issues."; tput sgr0
mdl ./dishes ./tips -r ~MD036,~MD024,~MD004,~MD029
tput setaf 2; echo "Installing python requirements..."; tput sgr0
pip install -r requirements.txt
tput setaf 2; echo "Builidng mkdocs and checking links..."; tput sgr0
mkdocs build --strict
tput setaf 2; echo "Installing textlint"; tput sgr0
npm install
tput setaf 2; echo "Running textlint..."; tput sgr0
./node_modules/.bin/textlint . --fix
tput setaf 2; echo "Manual rule linting..."; tput sgr0
node .github/manual_lint.js
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/120018425/programmers-cooking-guide.git
git@gitee.com:120018425/programmers-cooking-guide.git
120018425
programmers-cooking-guide
程序员做饭指南
master

搜索帮助