Skip to content

Commit e7096ca

Browse files
authored
Merge branch 'main' into editButton
2 parents bbe317b + 3b8b284 commit e7096ca

File tree

36 files changed

+620
-145
lines changed

36 files changed

+620
-145
lines changed

.env.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GITHUB_TOKEN=github_pat_xxxxxxxxxxxxxx

.gitignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,10 @@ next-env.d.ts
4545
.source
4646

4747
# package管理
48-
.package-lock.json
48+
.package-lock.json
49+
50+
# Agents.md
51+
Agents.md
52+
53+
# Environment variables
54+
.env

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# 贡献指南/Contributing Guide
22

3+
4+
5+
36
## ✍️ 添加新文章
47

58
### 步骤1:选择位置

Git/GIT_GUIDE.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
## Git 提交 Guide
2+
#### 1. 将本项目直接fork到自己的账号下,这样就可以直接在自己的账号下进行修改和提交。
3+
![fork1](./fork1.jpg)
4+
![fork2](./fork2.png)
5+
6+
*注意取消勾选仅克隆当前分支*
7+
8+
#### 2. 克隆项目
9+
```
10+
git clone https://github.com/你自己的仓库名/involutionhell.github.io.git
11+
```
12+
修改为自己fork的仓库,改为你的https仓库的git地址
13+
14+
#### 3. 创建自己的分支
15+
列出现有分支
16+
```
17+
git branch -a #用于列出当前Git仓库中所有的分支,包括本地分支和远程分支。
18+
```
19+
![branch-all](./branch-all.png)
20+
21+
##### 3.1 创建功能分支的约定命名
22+
```
23+
git checkout -b feat/your-feature
24+
25+
# 它的作用是创建一个新的分支并立即切换到该分支上。
26+
27+
具体来说,这个命令相当于同时执行了两个操作:
28+
git branch feat/your-feature - 创建名为 feat/your-feature 的新分支
29+
git checkout feat/your-feature - 切换到这个新创建的分支
30+
31+
其中 feat/your-feature 是分支名称,通常遵循约定式命名:
32+
33+
feat/ 前缀表示这是一个功能(feature)分支
34+
后面的 your-feature 通常是对功能的简要描述
35+
```
36+
##### 3.2 创建文档分支的约定命名
37+
```
38+
git checkout -b doc_raven # 自定义一个新的分支
39+
#git checkout -b doc_id 分支名字改为你的uid分支名称
40+
```
41+
#### 4. 提交更改分支
42+
```
43+
git add .
44+
根据你的变动情况
45+
git commit -m "add xxx" # 添加信息记录
46+
or
47+
git commit -m "edit xxx" # 修改信息记录
48+
or
49+
git commit -m "delete xxx" #删除信息记录
50+
```
51+
52+
#### 5. 推送分支到远程仓库
53+
```git push origin doc_raven
54+
```

Git/branch-all.png

53.3 KB
Loading

Git/fork1.jpg

86.3 KB
Loading

Git/fork1.png

93.5 KB
Loading

Git/fork2.png

130 KB
Loading

app/components/Contributors.tsx

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import Image from "next/image";
2+
import Link from "next/link";
3+
4+
interface Contributor {
5+
login: string;
6+
avatar_url: string;
7+
html_url: string;
8+
}
9+
10+
export function Contributors({
11+
contributors,
12+
}: {
13+
contributors: Contributor[];
14+
}) {
15+
if (contributors.length === 0) {
16+
return null;
17+
}
18+
19+
return (
20+
<section aria-labelledby="contributors-heading">
21+
<hr className="border-border/70 !mt-10 !mb-5" />
22+
<h2 id="contributors-heading">贡献者</h2>
23+
<ul className="mt-0 mb-0 flex flex-wrap items-center gap-x-6 gap-y-4 list-none p-0">
24+
{contributors.map((contributor) => (
25+
<li key={contributor.login}>
26+
<Link
27+
href={contributor.html_url}
28+
target="_blank"
29+
rel="noopener noreferrer"
30+
className="inline-flex items-center gap-3 text-base font-medium text-primary transition-colors hover:text-primary/80 no-underline"
31+
>
32+
<Image
33+
src={contributor.avatar_url}
34+
alt={contributor.login}
35+
width={35}
36+
height={35}
37+
className="!m-0 h-10 w-10 rounded-full border border-border/50 object-cover shadow-sm"
38+
/>
39+
<span>{contributor.login}</span>
40+
</Link>
41+
</li>
42+
))}
43+
</ul>
44+
<hr className="!mb-0 !mt-5 border-border/70" />
45+
</section>
46+
);
47+
}

app/components/Hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ export function Hero() {
2020
{
2121
title: "笔试面经",
2222
desc: "可以给我一份工作吗?我什么都可以做!",
23-
href: "/docs/jobs",
23+
href: "/docs/jobs/interview-prep/bq",
2424
},
2525
{
2626
title: "群友分享",
2727
desc: "群友写的捏",
28-
href: "/docs/guide",
28+
href: "/docs/CommunityShare",
2929
},
3030
];
3131

0 commit comments

Comments
 (0)