Skip to content

Commit a4d7b20

Browse files
committed
fix: update workflow and index
1 parent 26f062c commit a4d7b20

File tree

4 files changed

+26
-22
lines changed

4 files changed

+26
-22
lines changed

.github/workflows/sync.yml

+6-18
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,9 @@ jobs:
1616
source-repo: "git@github.com:doocs/leetcode.git"
1717
destination-repo: "git@gitee.com:Doocs/leetcode.git"
1818

19-
- name: Set ssh environment
20-
env:
21-
SSH_PRIVATE_KEY: ${{ secrets.CODING_RSA_PRIVATE_KEY }}
22-
run: |
23-
mkdir -p ~/.ssh/
24-
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
25-
chmod 600 ~/.ssh/id_rsa
26-
ssh-keyscan github.com > ~/.ssh/known_hosts
27-
chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
28-
git config --global user.name "yanglbme"
29-
git config --global user.email "szuyanglb@outlook.com"
30-
31-
- name: Sync to coding.net
32-
run: |
33-
cd /tmp
34-
git clone git@github.com:doocs/leetcode.git leetcode
35-
cd leetcode
36-
git remote add coding git@e.coding.net:doocs/leetcode.git
19+
- name: Build Gitee Pages
20+
uses: yanglbme/gitee-pages-action@master
21+
with:
22+
gitee-username: yanglbme
23+
gitee-password: ${{ secrets.GITEE_PASSWORD }}
24+
gitee-repo: doocs/leetcode

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,29 @@
1212
</p>
1313

1414
## 介绍
15+
1516
本项目包含 [LeetCode](https://leetcode-cn.com/problemset/all/)[《剑指 Offer(第 2 版)》](https://leetcode-cn.com/problemset/lcof/)[《程序员面试金典(第 6 版)》](https://leetcode-cn.com/problemset/lcci/)等题目的相关题解。所有题解均由多种编程语言实现,包括但不限于:Java、Python、C++、JavaScript、C#、Go,日常更新。欢迎 [Star](https://github.com/doocs/leetcode) 关注本项目,获取项目最新动态。
1617

1718
[English Version](/README_EN.md)
1819

1920
## 站点
21+
2022
- Netlify: https://lc.netlify.app
23+
- Gitee Pages: https://doocs.gitee.io/leetcode
2124
- GitHub Pages: https://doocs.github.io/leetcode
22-
- Coding Pages: https://d3jc40.coding-pages.com
2325

2426
## 题解
27+
2528
- [LeetCode](/solution/README.md)
2629
- [LeetCode 《剑指 Offer(第 2 版)》](/lcof/README.md)
2730
- [LeetCode 《程序员面试金典(第 6 版)》](/lcci/README.md)
2831

2932
## 维护者
33+
3034
[Yang Libin](https://github.com/yanglbme): GitHub 技术社区 [@Doocs](https://github.com/doocs) 创建者;[@TheAlgorithms](https://github.com/TheAlgorithms) 组织成员。
3135

3236
## 加入我们
37+
3338
刷编程题的最大好处就是可以锻炼解决问题的思维能力。相信我,「如何去思考」​本身也是一项需要不断学习和练习的技能。非常感谢前微软工程师、现蚂蚁金服技术专家 [@kfstorm](https://github.com/kfstorm) 贡献了本项目的所有 [C# 题解](https://github.com/doocs/leetcode/pull/245)
3439

3540
如果你对本项目感兴趣,并且希望加入我们刷题大军,欢迎随时提交 [PR](https://github.com/doocs/leetcode/pulls)。请参考如下步骤:
@@ -48,9 +53,11 @@
4853
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/doocs/leetcode)
4954

5055
## 贡献者
56+
5157
非常感谢以下所有朋友对本项目的贡献,你们是最可爱的人!
5258

5359
<a href="https://opencollective.com/doocs-leetcode/contributors.svg?width=890&button=true"><img src="https://opencollective.com/doocs-leetcode/contributors.svg?width=1200&button=false" /></a>
5460

5561
## 许可证
62+
5663
<a rel="license" href="https://github.com/doocs/leetcode/blob/master/LICENSE"><img alt="Creative Commons License" style="border-width:0" src="./img/cc-by-sa-88x31.png" /></a><br /><a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">知识共享 版权归属-相同方式共享 4.0 国际 公共许可证</a>

README_EN.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,29 @@
1212
</p>
1313

1414
## Introduction
15+
1516
Complete solutions to [LeetCode](https://leetcode-cn.com/problemset/all/), [LCOF](https://leetcode-cn.com/problemset/lcof/) and [LCCI](https://leetcode-cn.com/problemset/lcci/) problems, updated daily.
1617

1718
[中文文档](/README.md)
1819

1920
## Sites
21+
2022
- Netlify: https://lc.netlify.app
23+
- Gitee Pages: https://doocs.gitee.io/leetcode
2124
- GitHub Pages: https://doocs.github.io/leetcode
22-
- Coding Pages: https://d3jc40.coding-pages.com
2325

2426
## Solutions
27+
2528
- [LeetCode](/solution/README_EN.md)
2629
- [LCOF: *Coding Interviews, 2nd Edition*](/lcof/README_EN.md)
2730
- [LCCI: *Cracking the Coding Interview, 6th Edition*](/lcci/README_EN.md)
2831

2932
## Maintainer
33+
3034
[Yang Libin](https://github.com/yanglbme): Creator of [@Doocs](https://github.com/doocs) technical community; member of [@TheAlgorithms](https://github.com/TheAlgorithms) organization.
3135

3236
## Contributions
37+
3338
I'm 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:
3439

3540
- <kbd>Fork</kbd> [this repository](https://github.com/doocs/leetcode) to your own GitHub account and then <kbd>clone</kbd> it to your local machine.
@@ -46,9 +51,11 @@ You can also contribute to [doocs/leetcode](https://github.com/doocs/leetcode) u
4651
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/doocs/leetcode)
4752

4853
## Contributors
54+
4955
This project exists thanks to all the people who contribute.
5056

5157
<a href="https://opencollective.com/doocs-leetcode/contributors.svg?width=890&button=true"><img src="https://opencollective.com/doocs-leetcode/contributors.svg?width=1200&button=false" /></a>
5258

5359
## License
60+
5461
<a rel="license" href="https://github.com/doocs/leetcode/blob/master/LICENSE"><img alt="Creative Commons License" style="border-width:0" src="./img/cc-by-sa-88x31.png" /></a><br />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>.

index.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@
5151
} else {
5252
url = 'https://github.com/doocs/leetcode/blob/master/' + vm.route.file
5353
}
54-
const edit = en ? 'Edit on GitHub' : '在 GitHub 编辑'
55-
const editHtml = `[:memo: ${edit}](${url})\n`
54+
55+
const github = `[GitHub](${url})`
56+
const gitee = `[Gitee](${url.replace("github", "gitee")})`
57+
const editHtml = en ? `:memo: Edit on ${github} / ${gitee}\n` : `:memo: 在 ${github} / ${gitee} 编辑\n`
5658
return editHtml + html
5759
})
5860

0 commit comments

Comments
 (0)