Skip to content

Commit 126ef4f

Browse files
authored
feat: initialize intro page (doocs#2237)
1 parent 116cd77 commit 126ef4f

File tree

7 files changed

+188
-9
lines changed

7 files changed

+188
-9
lines changed

docs-en/index.md

+52-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,52 @@
1-
# LeetCode EN Wiki
1+
<p align="center">
2+
<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>
3+
</p>
4+
5+
<p align="center">
6+
<a href="https://doocs.github.io/#/?id=how-to-join"><img src="https://img.shields.io/badge/organization-join%20us-4051B5?style=flat-square" alt="open-source-organization"></a>
7+
<a href="https://github.com/doocs/leetcode"><img src="https://img.shields.io/badge/langs-Python%20%7C%20Java%20%7C%20C++%20%7C%20Go%20%7C%20TypeScript%20%7C%20Rust%20%7C%20...-red?style=flat-square&color=4051B5" alt="languages"></a>
8+
<a href="https://github.com/doocs/leetcode/blob/main/LICENSE"><img src="https://img.shields.io/github/license/doocs/leetcode?color=4051B5&style=flat-square" alt="LICENSE"></a><br>
9+
<a href="https://opencollective.com/doocs-leetcode/backers/badge.svg" alt="backers on Open Collective"><img src="https://img.shields.io/opencollective/backers/doocs-leetcode?color=4051B5&style=flat-square&logo=open%20collective&logoColor=ffffff" /></a>
10+
<a href="https://github.com/doocs/leetcode/stargazers"><img src="https://img.shields.io/github/stars/doocs/leetcode?color=4051B5&logo=github&style=flat-square" alt="stars"></a>
11+
<a href="https://github.com/doocs/leetcode/network/members"><img src="https://img.shields.io/github/forks/doocs/leetcode?color=4051B5&logo=github&style=flat-square" alt="forks"></a>
12+
<a href="https://opencollective.com/doocs-leetcode/sponsors/badge.svg" alt="Sponsors on Open Collective"><img src="https://img.shields.io/opencollective/sponsors/doocs-leetcode?color=4051B5&style=flat-square&logo=open%20collective&logoColor=ffffff" /></a>
13+
</p>
14+
15+
## Introduction
16+
17+
Welcome to LeetCode Wiki!
18+
19+
This project contains solutions for problems from LeetCode, "Coding Interviews (2nd Edition)", "Coding Interviews (Special Edition)", "Cracking the Coding Interview (6th Edition)", etc. All solutions are implemented in multiple programming languages, including but not limited to: Java, Python, C++, Go, TypeScript, Rust. We are working hard to update, welcome to Star 🌟 and follow [this project](https://github.com/doocs/leetcode) to get the latest updates.
20+
21+
## Stargazers over time
22+
23+
<!-- <a href="https://github.com/doocs/leetcode/stargazers" target="_blank"><img src="https://starchart.cc/doocs/leetcode.svg" alt="Stargazers over time" /></a> -->
24+
25+
<!-- [![Star History Chart](https://api.star-history.com/svg?repos=doocs/leetcode&type=Date)](https://star-history.com/#doocs/leetcode) -->
26+
27+
<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>
28+
29+
## Backers & Sponsors
30+
31+
Thank you to all our backers and sponsors!
32+
33+
<a href="https://opencollective.com/doocs-leetcode/backers.svg?width=890" target="_blank"><img src="https://opencollective.com/doocs-leetcode/backers.svg?width=890"></a>
34+
35+
<a href="https://opencollective.com/doocs-leetcode/sponsors.svg?width=890" target="_blank"><img src="https://opencollective.com/doocs-leetcode/sponsors.svg?width=890"></a>
36+
37+
> "_You help the developer community practice for interviews, and there is nothing better we could ask for._" -- [Alan Yessenbayev](https://opencollective.com/alan-yessenbayev)
38+
39+
## Copyright
40+
41+
The copyright of this project belongs to [Doocs](https://github.com/doocs) community. For commercial reprints, please contact [@yanglbme](mailto:contact@yanglibin.info) for authorization. For non-commercial reprints, please indicate the source.
42+
43+
## Contact Us
44+
45+
We welcome everyone to add @yanglbme's personal WeChat (WeChat ID: YLB0109), with the note "leetcode". In the future, we will create algorithm and technology related discussion groups, where we can learn and share experiences together, and make progress together.
46+
47+
| <img src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/images/qrcode-for-yanglbme-en.png" width="260px" align="left"/> |
48+
| --------------------------------------------------------------------------------------------------------------------------------- |
49+
50+
## License
51+
52+
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

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## Our Top Contributors
2+
3+
This project exists thanks to all the people who contribute.
4+
5+
<a href="https://github.com/doocs/leetcode/graphs/contributors" target="_blank"><img src="https://contrib.rocks/image?repo=doocs/leetcode&max=500" /></a>
6+
7+
## Contributions
8+
9+
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:
10+
11+
1. Fork [this repository](https://github.com/doocs/leetcode) to your own GitHub account and then clone it to your local machine.
12+
1. Checkout a new branch.
13+
1. Make some changes to your leetcode repository, then push the changes to your remote GitHub repository.
14+
1. Create a pull request with your changes!
15+
1. See [CONTRIBUTING](https://github.com/doocs/.github/blob/main/CONTRIBUTING.md) or [GitHub Help](https://help.github.com/en) for more details.
16+
17+
<p align="center">
18+
  <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>
19+
</p>
20+
21+
[![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)

docs/index.md

+59-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,59 @@
1-
# LeetCode Wiki
1+
<p align="center">
2+
<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>
3+
</p>
4+
5+
<p align="center">
6+
<a href="https://doocs.github.io/#/?id=how-to-join"><img src="https://img.shields.io/badge/organization-join%20us-4051B5?style=flat-square" alt="open-source-organization"></a>
7+
<a href="https://github.com/doocs/leetcode"><img src="https://img.shields.io/badge/langs-Python%20%7C%20Java%20%7C%20C++%20%7C%20Go%20%7C%20TypeScript%20%7C%20Rust%20%7C%20...-red?style=flat-square&color=4051B5" alt="languages"></a>
8+
<a href="https://github.com/doocs/leetcode/blob/main/LICENSE"><img src="https://img.shields.io/github/license/doocs/leetcode?color=4051B5&style=flat-square" alt="LICENSE"></a><br>
9+
<a href="https://opencollective.com/doocs-leetcode/backers/badge.svg" alt="backers on Open Collective"><img src="https://img.shields.io/opencollective/backers/doocs-leetcode?color=4051B5&style=flat-square&logo=open%20collective&logoColor=ffffff" /></a>
10+
<a href="https://github.com/doocs/leetcode/stargazers"><img src="https://img.shields.io/github/stars/doocs/leetcode?color=4051B5&logo=github&style=flat-square" alt="stars"></a>
11+
<a href="https://github.com/doocs/leetcode/network/members"><img src="https://img.shields.io/github/forks/doocs/leetcode?color=4051B5&logo=github&style=flat-square" alt="forks"></a>
12+
<a href="https://opencollective.com/doocs-leetcode/sponsors/badge.svg" alt="Sponsors on Open Collective"><img src="https://img.shields.io/opencollective/sponsors/doocs-leetcode?color=4051B5&style=flat-square&logo=open%20collective&logoColor=ffffff" /></a>
13+
</p>
14+
15+
## 介绍
16+
17+
欢迎来到 LeetCode Wiki!
18+
19+
本项目包含 LeetCode、《剑指 Offer(第 2 版)》、《剑指 Offer(专项突击版)》、《程序员面试金典(第 6 版)》等题目的相关题解。所有题解均由多种编程语言实现,包括但不限于:Java、Python、C++、Go、TypeScript、Rust。我们正在全力更新,欢迎 Star 🌟 关注[本项目](https://github.com/doocs/leetcode),获取项目最新动态。
20+
21+
## Stars 趋势
22+
23+
<!-- 使用 https://starchart.cc/ 自动刷新 stars 数据,若有问题,可以使用 GitHub Action: starcharts.yml -->
24+
<!-- <a href="https://github.com/doocs/leetcode/stargazers" target="_blank"><img src="https://starchart.cc/doocs/leetcode.svg" alt="Stargazers over time" /></a> -->
25+
26+
<!-- [![Star History Chart](https://api.star-history.com/svg?repos=doocs/leetcode&type=Date)](https://star-history.com/#doocs/leetcode) -->
27+
28+
<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>
29+
30+
## 赞助者
31+
32+
感谢以下个人、组织对本项目的支持和赞助!
33+
34+
<a href="https://opencollective.com/doocs-leetcode/backers.svg?width=890" target="_blank"><img src="https://opencollective.com/doocs-leetcode/backers.svg?width=890"></a>
35+
36+
<a href="https://opencollective.com/doocs-leetcode/sponsors.svg?width=890" target="_blank"><img src="https://opencollective.com/doocs-leetcode/sponsors.svg?width=890"></a>
37+
38+
> "_You help the developer community practice for interviews, and there is nothing better we could ask for._" -- [Alan Yessenbayev](https://opencollective.com/alan-yessenbayev)
39+
40+
## 推荐者
41+
42+
知名互联网科技博主 [@爱可可-爱生活](https://weibo.com/fly51fly) 微博推荐。
43+
44+
<a href="https://weibo.com/fly51fly" target="_blank"><img src="https://fastly.jsdelivr.net/gh/doocs/leetcode@main/images/recommender-fly51fly.png"></a>
45+
46+
## 版权
47+
48+
本项目著作权归 [GitHub 开源社区 Doocs](https://github.com/doocs) 所有,商业转载请联系 @yanglbme 获得授权,非商业转载请注明出处。
49+
50+
## 联系我们
51+
52+
欢迎各位小伙伴们添加 @yanglbme 的个人微信(微信号:YLB0109),备注 「**leetcode**」。后续我们会创建算法、技术相关的交流群,大家一起交流学习,分享经验,共同进步。
53+
54+
| <img src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/gh/doocs/images/qrcode-for-yanglbme.png" width="260px" align="left"/> |
55+
| ------------------------------------------------------------------------------------------------------------------------------ |
56+
57+
## 许可证
58+
59+
<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">知识共享 版权归属-相同方式共享 4.0 国际 公共许可证</a>

docs/intro/contribution.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## 贡献者
2+
3+
感谢以下所有朋友对本项目的贡献!
4+
5+
<a href="https://github.com/doocs/leetcode/graphs/contributors" target="_blank"><img src="https://contrib.rocks/image?repo=doocs/leetcode&max=500" /></a>
6+
7+
## 加入我们
8+
9+
刷编程题的最大好处就是可以锻炼解决问题的思维能力。相信我,「如何去思考」​ 本身也是一项需要不断学习和练习的技能。非常感谢前微软工程师、现蚂蚁金服技术专家 [@kfstorm](https://github.com/kfstorm) 贡献了本项目的所有 [C# 题解](https://github.com/doocs/leetcode/pull/245)
10+
11+
如果你对本项目感兴趣,并且希望加入我们刷题小分队,欢迎随时提交 [PR](https://github.com/doocs/leetcode/pulls)。请参考如下步骤:
12+
13+
1. 将本项目 fork 到你的个人 GitHub 帐户,然后 clone 到你的本地机器;
14+
1. 进入 leetcode 目录,切换到一个新的分支;
15+
1. 对项目做出一些变更,然后使用 git add、commit、push 等命令将你的本地变更提交到你的远程 GitHub 仓库;
16+
1. 将你的变更以 PR 的形式提交过来,项目的维护人员会在第一时间对你的变更进行 review!
17+
1. 你也可以参考帮助文档 https://help.github.com/cn 了解更多细节。
18+
19+
<p align="center">
20+
  <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>
21+
</p>
22+
23+
[![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)

main.py

+20
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,29 @@ def get_paths(dirs: str, m: int):
176176
if "nav:" in en_config:
177177
en_config = en_config[: en_config.find("nav:")]
178178

179+
"""
180+
nav:
181+
- 首页:
182+
- 首页: index.md
183+
- 参与贡献: intro/contribution.md
184+
- LeetCode 全解:
185+
186+
nav:
187+
- Home:
188+
- Home: index.md
189+
- Contribution: intro/contribution.md
190+
- LeetCode:
191+
"""
192+
179193
config += "\nnav:\n"
180194
en_config += "\nnav:\n"
195+
config += " - 首页:\n"
196+
config += " - 首页: index.md\n"
197+
config += " - 参与贡献: intro/contribution.md\n"
181198
config += " - LeetCode 全解:\n"
199+
en_config += " - Home:\n"
200+
en_config += " - Home: index.md\n"
201+
en_config += " - Contribution: intro/contribution.md\n"
182202
en_config += " - LeetCode:\n"
183203
config += "\n".join(navdata_cn["solution"])
184204
en_config += "\n".join(navdata_en["solution"])

mkdocs-en.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ theme:
99
text: Roboto
1010
code: Roboto Mono
1111

12+
1213
nav:
14+
- Home:
15+
- Home: index.md
16+
- Contribution: intro/contribution.md
1317
- LeetCode:
1418
- 1. Two Sum: lc/1.md
1519
- 2. Add Two Numbers: lc/2.md
@@ -3019,7 +3023,7 @@ nav:
30193023
- 3006. Find Beautiful Indices in the Given Array I: lc/3006.md
30203024
- 3007. Maximum Number That Sum of the Prices Is Less Than or Equal to K: lc/3007.md
30213025
- 3008. Find Beautiful Indices in the Given Array II: lc/3008.md
3022-
- Cracking the Coding Interview, 6th Edition:
3026+
- Cracking the Coding Interview:
30233027
- 1.1. Is Unique: lcci/1.1.md
30243028
- 1.2. Check Permutation: lcci/1.2.md
30253029
- 1.3. String to URL: lcci/1.3.md

mkdocs.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ theme:
3434
- search.share
3535
- search.suggest
3636
- toc.follow
37-
# - toc.integrate
37+
- toc.integrate
3838
icon:
3939
repo: fontawesome/brands/github
4040
language: zh
@@ -91,9 +91,11 @@ extra:
9191
link: /leetcode/
9292
lang: zh
9393

94-
9594
nav:
96-
- LeetCode:
95+
- 首页:
96+
- 首页: index.md
97+
- 参与贡献: intro/contribution.md
98+
- LeetCode 全解:
9799
- 1. 两数之和: lc/1.md
98100
- 2. 两数相加: lc/2.md
99101
- 3. 无重复字符的最长子串: lc/3.md
@@ -3102,7 +3104,7 @@ nav:
31023104
- 3006. 找出数组中的美丽下标 I: lc/3006.md
31033105
- 3007. 价值和小于等于 K 的最大数字: lc/3007.md
31043106
- 3008. 找出数组中的美丽下标 II: lc/3008.md
3105-
- 剑指 Offer(第 2 版):
3107+
- 剑指 Offer:
31063108
- 3. 数组中重复的数字: lcof/3.md
31073109
- 4. 二维数组中的查找: lcof/4.md
31083110
- 5. 替换空格: lcof/5.md
@@ -3178,7 +3180,7 @@ nav:
31783180
- 67. 把字符串转换成整数: lcof/67.md
31793181
- 68.1. 二叉搜索树的最近公共祖先: lcof/68.1.md
31803182
- 68.2. 二叉树的最近公共祖先: lcof/68.2.md
3181-
- 剑指 Offer(专项突击版:
3183+
- 剑指 Offer(专项突破:
31823184
- 1. 整数除法: lcof2/1.md
31833185
- 2. 二进制加法: lcof2/2.md
31843186
- 3. 前 n 个数字二进制中 1 的个数: lcof2/3.md
@@ -3298,7 +3300,7 @@ nav:
32983300
- 117. 相似的字符串: lcof2/117.md
32993301
- 118. 多余的边: lcof2/118.md
33003302
- 119. 最长连续序列: lcof2/119.md
3301-
- 程序员面试金典(第 6 版):
3303+
- 程序员面试金典:
33023304
- 1.1. 判定字符是否唯一: lcci/1.1.md
33033305
- 1.2. 判定是否互为字符重排: lcci/1.2.md
33043306
- 1.3. URL 化: lcci/1.3.md

0 commit comments

Comments
 (0)