diff --git a/.github/readme-generate.js b/.github/readme-generate.js index dd19b62..9258494 100644 --- a/.github/readme-generate.js +++ b/.github/readme-generate.js @@ -175,6 +175,7 @@ nav: - 进阶知识学习: {{after}} - CONTRIBUTING.md + - CODE_OF_CONDUCT.md `; async function main() { diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 245e865..c43be8a 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,6 +1,6 @@ -# Code Of Counduct +# 行为准则 -## 这个仓库可以做什么? +## 我们为什么坚持维护这个仓库 有很多朋友问我,为什么要维护这个仓库?为什么坚持精准的菜谱?未来这个仓库打算怎么发展?有没有想流量变现?我想在这里给出我自己的答案,并明确贡献的价值观吧。 diff --git a/build.sh b/build.sh index 56ddee7..02872bf 100644 --- a/build.sh +++ b/build.sh @@ -3,6 +3,9 @@ set -e # Requires: Ruby, node, python +tput setaf 2; echo "Cleaning up..."; tput setaf 0 +rm ./node_modules -rf + tput setaf 2; echo "Installing markdown lint"; tput setaf 0 gem install mdl @@ -10,7 +13,7 @@ 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 +mdl ./dishes ./tips -r ~MD036,~MD024,~MD004,~MD029 tput setaf 2; echo "Installing python requirements..."; tput setaf 0 pip install -r requirements.txt diff --git a/mkdocs.yml b/mkdocs.yml index 8224990..8b10c27 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -253,3 +253,4 @@ nav: - 油温判断技巧: ./tips/advanced/油温判断技巧.md - CONTRIBUTING.md + - CODE_OF_CONDUCT.md