Skip to content

Commit 2e3dc93

Browse files
committed
Update doc
1 parent a31bfe0 commit 2e3dc93

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/10-如何编写recipe.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
! Contributors : Nul None <[email protected]>
88
! |
99
! Created On : <2024-08-19>
10-
! Last Modified : <2025-08-11>
10+
! Last Modified : <2025-08-17>
1111
! ---------------------------------------------------------- -->
1212

1313
# Write A Recipe Even If You Don't Know C
@@ -52,6 +52,8 @@
5252
- `source`: 该 `target` 所能换的具体的源,由 `mirror` 提供服务,往往一个 `mirror` 会提供许多 `source`
5353
- `recipe`: 是为一个 `target` 定义的具体换源方法,请参考 `src` 目录中的 `recipe` 目录
5454

55+
- `chef DSL`:是 `chef Domain Specific Language` 的简写,这是一组以 `chef_` 开头的函数,用来定义维护者信息、可用源等元信息
56+
5557
- **换源链接**: 指镜像站所提供的某一个具体的换源使用的URL
5658
- **测速链接**: 用来测速的URL,与 "换源链接" 不同,可分为 **精准测速****模糊测速**
5759

@@ -81,7 +83,7 @@
8183

8284
该函数将填充 target 所有的必要信息,包括维护信息、换源信息
8385

84-
7. [设置/修改 "换源 URL" 和 "测速 URL" (how?)](./11-如何设置换源链接与测速链接.md)
86+
7. [设置/修改 "换源链接" 和 "测速链接" (how?)](./11-如何设置换源链接与测速链接.md)
8587

8688
8. 按需实现 `_setsrc()` `_getsrc()` `_resetsrc()`, 可以使用这些函数:
8789

0 commit comments

Comments
 (0)