Skip to content

Commit d0d93d3

Browse files
committed
docs: update readme guideline
1 parent 6e84a53 commit d0d93d3

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

docs-en/index.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,18 @@ We're looking for long-term contributors/partners to this repo! Send me [PRs](ht
5959
1. Create a pull request with your changes!
6060
1. See [CONTRIBUTING](https://github.com/doocs/.github/blob/main/CONTRIBUTING.md) or [GitHub Help](https://help.github.com/en) for more details.
6161

62-
<p align="center">
63-
  <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>
64-
</p>
62+
<div align="center">
63+
64+
```mermaid
65+
graph TD;
66+
A[LeetCode Repo <br> doocs/leetcode.git] -- 1.Fork --> B[Your GitHub Repo <br> yourusername/leetcode.git];
67+
B -- 2.Git Clone --> C[Local Machine];
68+
C -- 3.Create a New Branch & Make Changes --> D[Modify Code Locally];
69+
D -- 4.Commit & Push to Your Repo --> B;
70+
B -- 5.Create a Pull Request --> A;
71+
```
72+
73+
</div>
6574

6675
You can also directly click the button below to edit the code online with GitHub Codespaces, without the need for environment configuration, you can quickly submit a PR.
6776

docs/index.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,18 @@ hide:
6161
1. 将你的变更以 PR 的形式提交过来,项目的维护人员会在第一时间对你的变更进行 review!
6262
1. 你也可以参考帮助文档 https://help.github.com/cn 了解更多细节。
6363

64-
<p align="center">
65-
  <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>
66-
</p>
64+
<div align="center">
65+
66+
```mermaid
67+
graph TD;
68+
A[LeetCode 仓库 <br> doocs/leetcode.git] -- 1.Fork(派生) --> B[你的 GitHub 仓库 <br> yourusername/leetcode.git];
69+
B -- 2.Git 克隆 --> C[本地开发环境];
70+
C -- 3.创建新分支并修改代码 --> D[本地修改后的代码];
71+
D -- 4.提交 & 推送到你的仓库 --> B;
72+
B -- 5.提交 Pull Request(合并请求) --> A;
73+
```
74+
75+
</div>
6776

6877
你也可以直接点击下方按钮,使用 GitHub Codespaces 在线编辑代码,无需配置环境,即可快速提交 PR。
6978

0 commit comments

Comments
 (0)