Skip to content

Commit b186a82

Browse files
committed
chore: move contribution part to index
1 parent d4500ec commit b186a82

File tree

7 files changed

+55
-73
lines changed

7 files changed

+55
-73
lines changed

docs-en/index.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ hide:
66
- toc
77
---
88

9+
<h1 style="display:none;">LeetCode Wiki</h1>
10+
911
<p align="center">
1012
<a href="https://github.com/doocs/leetcode"><img src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/images/leetcode-doocs.png" alt="LeetCode-GitHub-Doocs"></a>
1113
</p>
@@ -34,6 +36,28 @@ This project contains solutions for problems from LeetCode, "Coding Interviews (
3436

3537
<a href="https://github.com/doocs/leetcode/stargazers" target="_blank"><img src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/images/starcharts.svg" alt="Stargazers over time" /></a>
3638

39+
## Our Top Contributors
40+
41+
This project exists thanks to all the people who contribute.
42+
43+
<a href="https://github.com/doocs/leetcode/graphs/contributors" target="_blank"><img src="https://contrib.rocks/image?repo=doocs/leetcode&max=500" /></a>
44+
45+
## Contributions
46+
47+
We're looking for long-term contributors/partners to this repo! Send me [PRs](https://github.com/doocs/leetcode/pulls) if you're interested! See the following:
48+
49+
1. Fork [this repository](https://github.com/doocs/leetcode) to your own GitHub account and then clone it to your local machine.
50+
1. Checkout a new branch.
51+
1. Make some changes to your leetcode repository, then push the changes to your remote GitHub repository.
52+
1. Create a pull request with your changes!
53+
1. See [CONTRIBUTING](https://github.com/doocs/.github/blob/main/CONTRIBUTING.md) or [GitHub Help](https://help.github.com/en) for more details.
54+
55+
<p align="center">
56+
  <a href="https://github.com/doocs/leetcode"><img src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/leetcode@main/images/how-to-contribute.svg" alt="how-to-contribute"></a>
57+
</p>
58+
59+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=149001365&machine=basicLinux32gb&___location=EastUs)
60+
3761
## Backers & Sponsors
3862

3963
Thank you to all our backers and sponsors!
@@ -54,7 +78,3 @@ We welcome everyone to add @yanglbme's personal WeChat (WeChat ID: YLB0109), wit
5478

5579
| <img src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/images/qrcode-for-yanglbme-en.png" width="260px" align="left"/> |
5680
| --------------------------------------------------------------------------------------------------------------------------------- |
57-
58-
## License
59-
60-
This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.

docs-en/intro/contribution.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

docs/index.md

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ hide:
66
- toc
77
---
88

9+
<h1 style="display:none;">LeetCode Wiki</h1>
10+
911
<p align="center">
1012
<a href="https://github.com/doocs/leetcode"><img src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/images/leetcode-doocs.png" alt="LeetCode-GitHub-Doocs"></a>
1113
</p>
@@ -35,6 +37,30 @@ hide:
3537

3638
<a href="https://github.com/doocs/leetcode/stargazers" target="_blank"><img src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/images/starcharts.svg" alt="Stargazers over time" /></a>
3739

40+
## 贡献者
41+
42+
感谢以下所有朋友对本项目的贡献!
43+
44+
<a href="https://github.com/doocs/leetcode/graphs/contributors" target="_blank"><img src="https://contrib.rocks/image?repo=doocs/leetcode&max=500" /></a>
45+
46+
## 加入我们
47+
48+
刷编程题的最大好处就是可以锻炼解决问题的思维能力。相信我,「如何去思考」​ 本身也是一项需要不断学习和练习的技能。非常感谢前微软工程师、现蚂蚁金服技术专家 [@kfstorm](https://github.com/kfstorm) 贡献了本项目的所有 [C# 题解](https://github.com/doocs/leetcode/pull/245)
49+
50+
如果你对本项目感兴趣,并且希望加入我们刷题小分队,欢迎随时提交 [PR](https://github.com/doocs/leetcode/pulls)。请参考如下步骤:
51+
52+
1. 将本项目 fork 到你的个人 GitHub 帐户,然后 clone 到你的本地机器;
53+
1. 进入 leetcode 目录,切换到一个新的分支;
54+
1. 对项目做出一些变更,然后使用 git add、commit、push 等命令将你的本地变更提交到你的远程 GitHub 仓库;
55+
1. 将你的变更以 PR 的形式提交过来,项目的维护人员会在第一时间对你的变更进行 review!
56+
1. 你也可以参考帮助文档 https://help.github.com/cn 了解更多细节。
57+
58+
<p align="center">
59+
  <a href="https://github.com/doocs/leetcode"><img src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/leetcode@main/images/how-to-contribute.svg" alt="how-to-contribute"></a>
60+
</p>
61+
62+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=149001365&machine=basicLinux32gb&___location=SoutheastAsia)
63+
3864
## 赞助者
3965

4066
感谢以下个人、组织对本项目的支持和赞助!
@@ -61,7 +87,3 @@ hide:
6187

6288
| <img src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/images/qrcode-for-yanglbme.png" width="260px" align="left"/> |
6389
| ------------------------------------------------------------------------------------------------------------------------------ |
64-
65-
## 许可证
66-
67-
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">知识共享 版权归属-相同方式共享 4.0 国际 公共许可证</a>

docs/intro/contribution.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

main.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,7 @@ def get_paths(dirs: str, m: int):
172172
nav_sections = f"""
173173
174174
nav:
175-
- 首页:
176-
- 首页: index.md
177-
- 参与贡献: intro/contribution.md
175+
- 首页: index.md
178176
- LeetCode 全解:\n{lc}
179177
- 剑指 Offer:\n{lcof}
180178
- 剑指 Offer(专项突破):\n{lcof2}
@@ -189,9 +187,7 @@ def get_paths(dirs: str, m: int):
189187
en_nav_sections = f"""
190188
191189
nav:
192-
- Home:
193-
- Home: index.md
194-
- Contribution: intro/contribution.md
190+
- Home: index.md
195191
- LeetCode:\n{lc}
196192
- Cracking the Coding Interview:\n{lcci}
197193
- Focused Training: tags.md

mkdocs-en.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ theme:
1313

1414

1515
nav:
16-
- Home:
17-
- Home: index.md
18-
- Contribution: intro/contribution.md
16+
- Home: index.md
1917
- LeetCode:
2018
- 1. Two Sum: lc/1.md
21-
- 2. Add Two Numbers: lc/2.md to K: lc/3007.md
19+
- 2. Add Two Numbers: lc/2.md
2220
- Cracking the Coding Interview:
2321
- 1.1. Is Unique: lcci/1.1.md
2422
- 1.2. Check Permutation: lcci/1.2.md

mkdocs.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ extra:
105105
lang: zh
106106

107107
nav:
108-
- 首页:
109-
- 首页: index.md
110-
- 参与贡献: intro/contribution.md
108+
- 首页: index.md
111109
- LeetCode 全解:
112110
- 1. 两数之和: lc/1.md
113111
- 2. 两数相加: lc/2.md

0 commit comments

Comments
 (0)