Skip to content

Commit

Permalink
Add code of conduct to website.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anduin2017 committed Mar 6, 2022
1 parent 7627de9 commit 0ce6909
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/readme-generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ nav:
- 进阶知识学习:
{{after}}
- CONTRIBUTING.md
- CODE_OF_CONDUCT.md
`;

async function main() {
Expand Down
4 changes: 2 additions & 2 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Code Of Counduct
# 行为准则

## 这个仓库可以做什么?
## 我们为什么坚持维护这个仓库

有很多朋友问我,为什么要维护这个仓库?为什么坚持精准的菜谱?未来这个仓库打算怎么发展?有没有想流量变现?我想在这里给出我自己的答案,并明确贡献的价值观吧。

Expand Down
5 changes: 4 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ 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

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
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,4 @@ nav:
- 油温判断技巧: ./tips/advanced/油温判断技巧.md

- CONTRIBUTING.md
- CODE_OF_CONDUCT.md

0 comments on commit 0ce6909

Please sign in to comment.