From 05d309368296365ba5322b88fca64da7e9335c77 Mon Sep 17 00:00:00 2001
From: shandianchengzi <1252402849@qq.com>
Date: Fri, 5 Apr 2024 19:34:51 +0800
Subject: [PATCH 01/12] Update README.md to help Web Developer.
---
README.md | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/README.md b/README.md
index 504a75a..4fb187e 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,13 @@
3. 阅读 [WIKI](https://github.com/hust-open-atom-club/TranslateProject/wiki/) 了解如何开始。
4. 遇到不解之处,请在飞书群内发问。
+对于前端开发者,本仓库基于前端框架 `Astro`,若希望本地运行代码,请:
+
+1. 切换到 `pages` 目录下,依次运行 `npm install`、`npm run dev`;
+2. 如果是 `Windows` 系统,请删除 `pages/src/content/posts` 文件,新建 `pages/src/content/posts/` 文件夹,并将 `sources` 文件夹下的所有内容复制到新建的 `pages/src/content/posts/` 文件夹内。【注意,请不要把这处修改推送到远程仓库中】
+3. 打开 `http://localhost:4321/` 网址即可在本地预览网页内容。
+4. 更多有关 `Astro` 框架的使用说明见 [pages/README.md](./pages/README.md)。
+
## 如何开始
**注意**,请在开始贡献前[签署 CLA](https://cla-assistant.io/hust-open-atom-club/TranslateProject),否则 PR 无法被合并。
From 3efbe9c73ed6878d158427d484800bba92d96dbd Mon Sep 17 00:00:00 2001
From: shandianchengzi <1252402849@qq.com>
Date: Fri, 5 Apr 2024 20:15:46 +0800
Subject: [PATCH 02/12] Posts: add post information below the post.
---
pages/src/content/config.ts | 4 ++++
pages/src/layouts/PostDetails.astro | 30 +++++++++++++++++++++++++++--
2 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/pages/src/content/config.ts b/pages/src/content/config.ts
index 71498b1..66ffd11 100644
--- a/pages/src/content/config.ts
+++ b/pages/src/content/config.ts
@@ -16,6 +16,10 @@ const blog = defineCollection({
[z.date(), z.string(), z.number()]
).default(""),
link: z.string().url().default(""),
+ proofreader: z.string().default(SITE.author),
+ proofread_date: z.union(
+ [z.date(), z.string(), z.number()]
+ ).default(""),
}),
});
diff --git a/pages/src/layouts/PostDetails.astro b/pages/src/layouts/PostDetails.astro
index b10978b..2988fc7 100644
--- a/pages/src/layouts/PostDetails.astro
+++ b/pages/src/layouts/PostDetails.astro
@@ -13,7 +13,7 @@ export interface Props {
const { post } = Astro.props;
-const { title, author } = post.data;
+const { title, author, collected_date, collector, translated_date, translator, link, proofreader, proofread_date } = post.data;
const { Content } = await post.render();
@@ -60,6 +60,32 @@ const layoutProps = {
+
+
@@ -68,7 +94,7 @@ const layoutProps = {
+ >
From bd1719e6f87bd08f0bd707e628db9f7b1b410500 Mon Sep 17 00:00:00 2001
From: Dongliang Mu
Date: Fri, 5 Apr 2024 21:02:28 +0800
Subject: [PATCH 06/12] Fix Github link
---
pages/src/layouts/PostDetails.astro | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/pages/src/layouts/PostDetails.astro b/pages/src/layouts/PostDetails.astro
index 5f6d883..0010361 100644
--- a/pages/src/layouts/PostDetails.astro
+++ b/pages/src/layouts/PostDetails.astro
@@ -65,28 +65,28 @@ const layoutProps = {
{!translated_date ? "原文链接:": "译自:"} {link}
选题:
- {collector}
+ {collector}
{translated_date && (
译者:
- {translator}
+ {translator}
{proofread_date && (
- 校对:{proofreader}
+ 校对:{proofreader}
)}
{published_date && (
- 发布:{publisher}
+ 发布:{publisher}
)}
)}
- 本文{!translated_date && "将"}由 HCTT 翻译团队 原创翻译,华中科技大学开放原子开源俱乐部荣誉推出。
+ 本文{!translated_date && "将"}由 HCTT 翻译团队 原创翻译,华中科技大学开放原子开源俱乐部荣誉推出。
From 7e54d5e41d781da19f595d845a38306690b8febd Mon Sep 17 00:00:00 2001
From: Dongliang Mu
Date: Fri, 5 Apr 2024 21:15:52 +0800
Subject: [PATCH 07/12] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 5fe0cd3..9d3f5c7 100644
--- a/README.md
+++ b/README.md
@@ -10,7 +10,7 @@
新加入的成员,请:
-1. 修改你的飞书群昵称为“译者-您的_Github_ID”。
+1. 修改你的飞书群昵称为“译者-YOUR_GITHUB_ID”。
2. 请在开始贡献前[签署CLA](https://cla-assistant.io/hust-open-atom-club/TranslateProject)。
3. 阅读 [WIKI](https://github.com/hust-open-atom-club/TranslateProject/wiki/) 了解如何开始。
4. 遇到不解之处,请在飞书群内发问。
From ee9854bae7dc5fced97bdfb0a684f9a60b353934 Mon Sep 17 00:00:00 2001
From: shandianchengzi <1252402849@qq.com>
Date: Fri, 5 Apr 2024 21:22:30 +0800
Subject: [PATCH 08/12] About: update by readme.
---
pages/src/pages/about.md | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/pages/src/pages/about.md b/pages/src/pages/about.md
index 24057d6..c2d05a9 100644
--- a/pages/src/pages/about.md
+++ b/pages/src/pages/about.md
@@ -3,14 +3,23 @@ layout: ../layouts/AboutLayout.astro
title: "关于"
---
-**HCTT(HUST openatom Club Translation Team)** 是“华科开放原子开源俱乐部”的翻译团队,学习[“Linux 中国”翻译项目](https://github.com/LCTT/TranslateProject)的模式,负责从国外优秀媒体翻译 Linux(特别是 Linux 内核安全)相关的技术、资讯、杂文等内容。
+**HCTT(HUST openatom Club Translation Team)** 是“华科开放原子开源俱乐部”的翻译团队,学习[“Linux 中国”翻译项目](https://github.com/LCTT/TranslateProject)的运营模式,负责从国外优秀媒体翻译 Linux(特别是 Linux 内核)相关的技术、资讯、杂文等内容。
## 加入我们
+
请首先加入我们的[飞书群](https://applink.feishu.cn/client/chat/chatter/add_by_link?link_token=4e3g0475-2966-40c7-a713-3fcf43893a67),加群时请说明是“志愿者”。
新加入的成员,请:
-1. 修改你的飞书群昵称为“译者-YOUR_GITEE_ID”。
-2. 请在开始贡献前[签署CLA](https://gitee.com/organizations/hust-open-atom-club/cla/hust_open_atom_club_cla)。
-2. 阅读 [WIKI](https://gitee.com/hust-open-atom-club/translate-project/wikis) 了解如何开始。
-3. 遇到不解之处,请在群内发问。
\ No newline at end of file
+1. 修改你的飞书群昵称为“译者-YOUR_GITHUB_ID”。
+2. 请在开始贡献前[签署CLA](https://cla-assistant.io/hust-open-atom-club/TranslateProject)。
+3. 阅读 [WIKI](https://github.com/hust-open-atom-club/TranslateProject/wiki/) 了解如何开始。
+4. 遇到不解之处,请在飞书群内发问。
+
+对于前端开发者,本仓库基于前端框架 `Astro`,若希望本地运行代码,请查看 [pages/README.md](https://github.com/hust-open-atom-club/TranslateProject/blob/master/pages/README.md)。
+
+## 如何开始
+
+**注意**,请在开始贡献前[签署 CLA](https://cla-assistant.io/hust-open-atom-club/TranslateProject),否则 PR 无法被合并。
+
+请阅读 [WIKI](https://github.com/hust-open-atom-club/TranslateProject/wiki/)。如需要协助,请在群内发问。
From 31963c12b59847ce004939787b4242f6199145e4 Mon Sep 17 00:00:00 2001
From: Dongliang Mu
Date: Fri, 5 Apr 2024 21:40:45 +0800
Subject: [PATCH 09/12] The status is incorrect, change it back to proofread
---
sources/general/20240223 linux is a CNA.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sources/general/20240223 linux is a CNA.md b/sources/general/20240223 linux is a CNA.md
index f40b238..4ca5be5 100644
--- a/sources/general/20240223 linux is a CNA.md
+++ b/sources/general/20240223 linux is a CNA.md
@@ -1,5 +1,5 @@
---
-status: published
+status: proofread
title: "Linux is a CNA"
author: Greg Kroah-Hartman
collector: mudongliang
From ab5c80ecc8519d2ccdfbe7c8bb2dad7c67d5e8f1 Mon Sep 17 00:00:00 2001
From: Dongliang Mu
Date: Fri, 5 Apr 2024 21:51:54 +0800
Subject: [PATCH 10/12] Change gitee id to Github
---
sources/general/20240223 linux is a CNA.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sources/general/20240223 linux is a CNA.md b/sources/general/20240223 linux is a CNA.md
index 4ca5be5..74a03e3 100644
--- a/sources/general/20240223 linux is a CNA.md
+++ b/sources/general/20240223 linux is a CNA.md
@@ -4,7 +4,7 @@ title: "Linux is a CNA"
author: Greg Kroah-Hartman
collector: mudongliang
collected_date: 20240223
-translator: sun-yu-777
+translator: AAtomical
translated_date: 20240223
proofreader: mudongliang
proofread_date: 20240310
From efb4b9d501979f5c37b380ac0831c86adda05c9e Mon Sep 17 00:00:00 2001
From: Dongliang Mu
Date: Fri, 5 Apr 2024 21:52:50 +0800
Subject: [PATCH 11/12] change Gitee ID to Github
---
sources/kernel/20240220 linux kernel CVE assignment.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sources/kernel/20240220 linux kernel CVE assignment.md b/sources/kernel/20240220 linux kernel CVE assignment.md
index f34ba80..7ce033e 100644
--- a/sources/kernel/20240220 linux kernel CVE assignment.md
+++ b/sources/kernel/20240220 linux kernel CVE assignment.md
@@ -4,7 +4,7 @@ title: "Linux Kernel CVE Assignment"
author: Greg Kroah-Hartman
collector: mudongliang
collected_date: 20240220
-translator: yanruo
+translator: gitveg
translated_date: 20240221
proofreader: mudongliang
proofread_date: 20240221
From 3d32664f1e9a6cee344bf46cec783a1f9c5e3b11 Mon Sep 17 00:00:00 2001
From: Dongliang Mu
Date: Fri, 5 Apr 2024 21:55:55 +0800
Subject: [PATCH 12/12] Change Gitee ID to Github ID
---
.../kernel/20240227 Undefined Behavior Sanitizer - UBSAN.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sources/kernel/20240227 Undefined Behavior Sanitizer - UBSAN.md b/sources/kernel/20240227 Undefined Behavior Sanitizer - UBSAN.md
index de87312..b704b88 100644
--- a/sources/kernel/20240227 Undefined Behavior Sanitizer - UBSAN.md
+++ b/sources/kernel/20240227 Undefined Behavior Sanitizer - UBSAN.md
@@ -2,11 +2,11 @@
status: published
title: "Undefined Behavior Sanitizer - UBSAN"
author: Linux Kernel Community
-collector: dzm91_hust
+collector: mudongliang
collected_date: 20240227
-translated: dzm91_hust
+translated: mudongliang
translated_date: 20240227
-proofread: hustsjy
+proofread: JingJing1016
proofread_date: 20240302
link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/dev-tools/ubsan.rst
---