From 551b0e0893b858afe1a7b0f72794592a3f12f51d Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 28 Jul 2023 17:57:13 +0800 Subject: fix: 调整检定术语和示例 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/Standard/Term/ability.md | 5 +++++ docs/docs/Standard/Term/appriasal.md | 5 ----- docs/docs/Standard/what-is-rule-package.md | 6 +++--- docs/mkdocs.yml | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 docs/docs/Standard/Term/ability.md delete mode 100644 docs/docs/Standard/Term/appriasal.md (limited to 'docs') diff --git a/docs/docs/Standard/Term/ability.md b/docs/docs/Standard/Term/ability.md new file mode 100644 index 00000000..a1e86aa1 --- /dev/null +++ b/docs/docs/Standard/Term/ability.md @@ -0,0 +1,5 @@ +--- +title: ability/check 检定 +--- + +这是一个可选实现但是建议实现的方法。 \ No newline at end of file diff --git a/docs/docs/Standard/Term/appriasal.md b/docs/docs/Standard/Term/appriasal.md deleted file mode 100644 index 3dba1727..00000000 --- a/docs/docs/Standard/Term/appriasal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: 鉴定(/检定) ---- - -这是一个可选实现但是建议实现的方法。 \ No newline at end of file diff --git a/docs/docs/Standard/what-is-rule-package.md b/docs/docs/Standard/what-is-rule-package.md index 009ec951..b7788db5 100644 --- a/docs/docs/Standard/what-is-rule-package.md +++ b/docs/docs/Standard/what-is-rule-package.md @@ -20,15 +20,15 @@ class MyRule(Rule): name = "我的自定义规则包" priority = 0 # 优先级 - def appriasal(self): + def ability(self): """鉴定方法 self.result 是需要鉴定时计算的结果,可以直接使用 - self.appriasal 是Rule类里提供的用于判断鉴定情况的属性 + self.rule.ability 是Rule类里提供的用于判断鉴定情况的属性 """ if self.result < 5 and self.result > 0: - return self.appriasal.success # 返回大成功时骰主自定义的大成功文本 + return self.rule.ability.success # 返回大成功时骰主自定义的大成功文本 else: ... # 其他的鉴定情况 ``` diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index f3223ac2..a4f8bbd0 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -167,7 +167,7 @@ nav: - 为什么要做规则包?: Standard/why-rule-package.md - 什么是通用规则包标准?: Standard/what-is-standard.md - 术语表(草案): - - 鉴定: Standard/Term/appriasal.md + - 检定: Standard/Term/ability.md - ...: # - API Reference: - "API Reference": API/index.md \ No newline at end of file -- cgit v1.2.3-70-g09d2