From a156a2b48a95c898eaa59ad6b54c71d6ee20f06d Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 6 Oct 2023 23:39:57 +0000 Subject: Deployed 67d412c to dev with MkDocs 1.5.3 and mike 1.1.2 --- dev/404.html | 2 +- dev/API/index.html | 2 +- dev/CLI/index.html | 2 +- dev/Core/index.html | 4 ++-- dev/RulePackage/Write/prepare/index.html | 2 +- dev/RulePackage/Write/python/index.html | 2 +- dev/RulePackage/Write/write/index.html | 2 +- dev/RulePackage/getStart/attribute/index.html | 2 +- dev/RulePackage/getStart/class/index.html | 2 +- dev/RulePackage/getStart/getDeeper/Module/index.html | 2 +- dev/RulePackage/getStart/getDeeper/Package/index.html | 2 +- dev/RulePackage/getStart/getDeeper/object/index.html | 2 +- dev/RulePackage/getStart/method/index.html | 2 +- dev/RulePackage/intro/index.html | 2 +- dev/Standard/Term/DefaultDice/_counts/index.html | 2 +- dev/Standard/Term/DefaultDice/_sides/index.html | 2 +- dev/Standard/Term/DefaultDice/index.html | 2 +- dev/Standard/Term/PlayerCard/index.html | 2 +- dev/Standard/Term/check/ability/index.html | 2 +- dev/Standard/Term/check/index.html | 2 +- dev/Standard/Term/duration/campaign/index.html | 2 +- dev/Standard/Term/duration/index.html | 2 +- dev/Standard/Term/duration/module/index.html | 2 +- dev/Standard/Term/duration/sene/index.html | 2 +- dev/Standard/Term/scenario/index.html | 2 +- dev/Standard/Term/setting/index.html | 2 +- dev/Standard/what-is-rule-package/index.html | 4 ++-- dev/Standard/what-is-standard/index.html | 2 +- dev/Standard/why-rule-package/index.html | 2 +- dev/blog/2023/10/07/blog-support-just-landed/index.html | 4 ++-- dev/blog/archive/2023/index.html | 2 +- dev/blog/category/rules/index.html | 2 +- dev/blog/index.html | 2 +- dev/changelog/index.html | 2 +- dev/index.html | 2 +- dev/sitemap.xml.gz | Bin 127 -> 127 bytes 36 files changed, 38 insertions(+), 38 deletions(-) (limited to 'dev') diff --git a/dev/404.html b/dev/404.html index a2667409..45ce827c 100644 --- a/dev/404.html +++ b/dev/404.html @@ -1 +1 @@ - HydroRollCore 核心文档 (草案)

404 - Not found

\ No newline at end of file + HydroRollCore 核心文档 (草案)

404 - Not found

\ No newline at end of file diff --git a/dev/API/index.html b/dev/API/index.html index 6c9c00f2..772a1ab9 100644 --- a/dev/API/index.html +++ b/dev/API/index.html @@ -1 +1 @@ - API Reference - HydroRollCore 核心文档 (草案)

API Reference


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + API Reference - HydroRollCore 核心文档 (草案)

API Reference


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/CLI/index.html b/dev/CLI/index.html index fdb0b55a..e883bcf7 100644 --- a/dev/CLI/index.html +++ b/dev/CLI/index.html @@ -1 +1 @@ - CLI Reference - HydroRollCore 核心文档 (草案)
跳转至

CLI Reference⚓︎


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + CLI Reference - HydroRollCore 核心文档 (草案)
跳转至

CLI Reference⚓︎


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Core/index.html b/dev/Core/index.html index f820441c..e6ea31d5 100644 --- a/dev/Core/index.html +++ b/dev/Core/index.html @@ -1,4 +1,4 @@ - 核心概览 - HydroRollCore 核心文档 (草案)
跳转至

HydroRollCore'水系核心

🎁 Getting⚓︎

  1. 安装库

在命令行输入。

1
+ 核心概览 - HydroRollCore 核心文档 (草案)       

HydroRollCore'水系核心

🎁 Getting⚓︎

  1. 安装库

在命令行输入。

1
 2
 3
 4
@@ -17,4 +17,4 @@
 
 class Myrule(Rules):
   """自设规则包,继承 Rules 基类"""
-
  1. 合理修改你的 config.toml 配置文件,完成注册!

📄 License⚓︎

MIT © 2023-PRESENT 简律纯


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file +
  1. 合理修改你的 config.toml 配置文件,完成注册!

📄 License⚓︎

MIT © 2023-PRESENT 简律纯


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/Write/prepare/index.html b/dev/RulePackage/Write/prepare/index.html index ea3d4f32..4c6a351c 100644 --- a/dev/RulePackage/Write/prepare/index.html +++ b/dev/RulePackage/Write/prepare/index.html @@ -1 +1 @@ - 准备规则书 - HydroRollCore 核心文档 (草案)

准备规则书


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + 准备规则书 - HydroRollCore 核心文档 (草案)

准备规则书


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/Write/python/index.html b/dev/RulePackage/Write/python/index.html index 30c6d1a7..9f441707 100644 --- a/dev/RulePackage/Write/python/index.html +++ b/dev/RulePackage/Write/python/index.html @@ -1 +1 @@ - 了解Python - HydroRollCore 核心文档 (草案)

了解Python


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + 了解Python - HydroRollCore 核心文档 (草案)

了解Python


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/Write/write/index.html b/dev/RulePackage/Write/write/index.html index 0349f86e..4e1c7b27 100644 --- a/dev/RulePackage/Write/write/index.html +++ b/dev/RulePackage/Write/write/index.html @@ -1 +1 @@ - 编写规则包 - HydroRollCore 核心文档 (草案)

编写规则包


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + 编写规则包 - HydroRollCore 核心文档 (草案)

编写规则包


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/getStart/attribute/index.html b/dev/RulePackage/getStart/attribute/index.html index e905d417..90ca7df5 100644 --- a/dev/RulePackage/getStart/attribute/index.html +++ b/dev/RulePackage/getStart/attribute/index.html @@ -1 +1 @@ - attribute 属性 - HydroRollCore 核心文档 (草案)

属性

Info

关联到一个对象的值,通常使用点号表达式按名称来引用。 举例来说,如果对象 o 具有属性 a 则可以用 o.a 来引用它。

如果对象允许,将未被定义为 标识符和关键字 的非标识名称用作一个对象的属性也是可以的,例如使用 setattr()。 这样的属性将无法使用点号表达式来访问,而是必须通过 getattr() 来获取。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + attribute 属性 - HydroRollCore 核心文档 (草案)

属性

Info

关联到一个对象的值,通常使用点号表达式按名称来引用。 举例来说,如果对象 o 具有属性 a 则可以用 o.a 来引用它。

如果对象允许,将未被定义为 标识符和关键字 的非标识名称用作一个对象的属性也是可以的,例如使用 setattr()。 这样的属性将无法使用点号表达式来访问,而是必须通过 getattr() 来获取。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/getStart/class/index.html b/dev/RulePackage/getStart/class/index.html index 9b23bfec..62b646ca 100644 --- a/dev/RulePackage/getStart/class/index.html +++ b/dev/RulePackage/getStart/class/index.html @@ -1 +1 @@ - class 类 - HydroRollCore 核心文档 (草案)

Info

用来创建用户定义对象的模板。类定义通常包含对该类的实例进行操作的方法定义。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + class 类 - HydroRollCore 核心文档 (草案)

Info

用来创建用户定义对象的模板。类定义通常包含对该类的实例进行操作的方法定义。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/getStart/getDeeper/Module/index.html b/dev/RulePackage/getStart/getDeeper/Module/index.html index 300971d2..d396f486 100644 --- a/dev/RulePackage/getStart/getDeeper/Module/index.html +++ b/dev/RulePackage/getStart/getDeeper/Module/index.html @@ -1 +1 @@ - Module 模块 - HydroRollCore 核心文档 (草案)

模块

Info

此对象是 Python 代码的一种组织单位。各模块具有独立的命名空间,可包含任意 Python 对象。模块可通过 importing 操作被加载到 Python 中。

另见 package


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + Module 模块 - HydroRollCore 核心文档 (草案)

模块

Info

此对象是 Python 代码的一种组织单位。各模块具有独立的命名空间,可包含任意 Python 对象。模块可通过 importing 操作被加载到 Python 中。

另见 package


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/getStart/getDeeper/Package/index.html b/dev/RulePackage/getStart/getDeeper/Package/index.html index 9a5d28ba..7d3d00a6 100644 --- a/dev/RulePackage/getStart/getDeeper/Package/index.html +++ b/dev/RulePackage/getStart/getDeeper/Package/index.html @@ -1 +1 @@ - Package 包 - HydroRollCore 核心文档 (草案)

Info

一种可包含子模块或递归地包含子包的 Python module。 从技术上说,包是具有 path 属性的 Python 模块。

另参见 regular packagenamespace package


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + Package 包 - HydroRollCore 核心文档 (草案)

Info

一种可包含子模块或递归地包含子包的 Python module。 从技术上说,包是具有 path 属性的 Python 模块。

另参见 regular packagenamespace package


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/getStart/getDeeper/object/index.html b/dev/RulePackage/getStart/getDeeper/object/index.html index 28749299..a6c228da 100644 --- a/dev/RulePackage/getStart/getDeeper/object/index.html +++ b/dev/RulePackage/getStart/getDeeper/object/index.html @@ -1 +1 @@ - object 对象 - HydroRollCore 核心文档 (草案)

对象

Info

任何具有状态(属性或值)以及预定义行为(方法)的数据。object 也是任何 new-style class 的最顶层基类名。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + object 对象 - HydroRollCore 核心文档 (草案)

对象

Info

任何具有状态(属性或值)以及预定义行为(方法)的数据。object 也是任何 new-style class 的最顶层基类名。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/getStart/method/index.html b/dev/RulePackage/getStart/method/index.html index 01f8452a..f9c6f64a 100644 --- a/dev/RulePackage/getStart/method/index.html +++ b/dev/RulePackage/getStart/method/index.html @@ -1 +1 @@ - method 方法 - HydroRollCore 核心文档 (草案)

方法

Info

在类内部定义的函数。如果作为该类的实例的一个属性来调用,方法将会获取实例对象作为其第一个 argument (通常命名为 self)。参见 functionnested scope


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + method 方法 - HydroRollCore 核心文档 (草案)

方法

Info

在类内部定义的函数。如果作为该类的实例的一个属性来调用,方法将会获取实例对象作为其第一个 argument (通常命名为 self)。参见 functionnested scope


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/RulePackage/intro/index.html b/dev/RulePackage/intro/index.html index a7727e5a..d8c2f3b1 100644 --- a/dev/RulePackage/intro/index.html +++ b/dev/RulePackage/intro/index.html @@ -1 +1 @@ - 规则包简介 - HydroRollCore 核心文档 (草案)

简介

Warning

此章节涉及到真正的 Python 规范问题,因此请认真阅读并多加练习,方能写出漂亮的代码。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + 规则包简介 - HydroRollCore 核心文档 (草案)

简介

Warning

此章节涉及到真正的 Python 规范问题,因此请认真阅读并多加练习,方能写出漂亮的代码。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/DefaultDice/_counts/index.html b/dev/Standard/Term/DefaultDice/_counts/index.html index 053fe551..a0cb405d 100644 --- a/dev/Standard/Term/DefaultDice/_counts/index.html +++ b/dev/Standard/Term/DefaultDice/_counts/index.html @@ -1 +1 @@ - _counts 骰子个数 - HydroRollCore 核心文档 (草案)
跳转至

_counts 骰子个数

Tip

这是一个必须的值,根据不同规则书的要求设置相对应的值

属性说明⚓︎

用于规定默认投掷时骰子的个数


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + _counts 骰子个数 - HydroRollCore 核心文档 (草案)
跳转至

_counts 骰子个数

Tip

这是一个必须的值,根据不同规则书的要求设置相对应的值

属性说明⚓︎

用于规定默认投掷时骰子的个数


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/DefaultDice/_sides/index.html b/dev/Standard/Term/DefaultDice/_sides/index.html index 1a2dac3f..1f04cd5d 100644 --- a/dev/Standard/Term/DefaultDice/_sides/index.html +++ b/dev/Standard/Term/DefaultDice/_sides/index.html @@ -1 +1 @@ - _sides 骰子面数 - HydroRollCore 核心文档 (草案)
跳转至

_sides 骰子面数

属性说明⚓︎

用于规定默认投掷时骰子的面数


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + _sides 骰子面数 - HydroRollCore 核心文档 (草案)
跳转至

_sides 骰子面数

属性说明⚓︎

用于规定默认投掷时骰子的面数


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/DefaultDice/index.html b/dev/Standard/Term/DefaultDice/index.html index 99f8b38e..9a810858 100644 --- a/dev/Standard/Term/DefaultDice/index.html +++ b/dev/Standard/Term/DefaultDice/index.html @@ -1 +1 @@ - DefaultDice 默认骰子 - HydroRollCore 核心文档 (草案)
跳转至

DefaultDice 默认骰子

Tip

这是一个必须的类,根据不同规则书的要求设置相对应的值

类说明⚓︎

用于规定默认投掷时骰子的各种属性,例如默认骰子数量,面数


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + DefaultDice 默认骰子 - HydroRollCore 核心文档 (草案)
跳转至

DefaultDice 默认骰子

Tip

这是一个必须的类,根据不同规则书的要求设置相对应的值

类说明⚓︎

用于规定默认投掷时骰子的各种属性,例如默认骰子数量,面数


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/PlayerCard/index.html b/dev/Standard/Term/PlayerCard/index.html index d68c1151..921c1b89 100644 --- a/dev/Standard/Term/PlayerCard/index.html +++ b/dev/Standard/Term/PlayerCard/index.html @@ -1 +1 @@ - PlayerCard 人物卡 - HydroRollCore 核心文档 (草案)
跳转至

PlayerCard 人物卡

Tip

这是一个可选实现但是{建议尽量必须实现}的方法,主要表现在规则书正是检定方法不同而有所不同上。

类说明⚓︎

用于规定人物卡的格式,包括人物属性,属性之间的计算关系等


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + PlayerCard 人物卡 - HydroRollCore 核心文档 (草案)
跳转至

PlayerCard 人物卡

Tip

这是一个可选实现但是{建议尽量必须实现}的方法,主要表现在规则书正是检定方法不同而有所不同上。

类说明⚓︎

用于规定人物卡的格式,包括人物属性,属性之间的计算关系等


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/check/ability/index.html b/dev/Standard/Term/check/ability/index.html index 28c9e656..a3241500 100644 --- a/dev/Standard/Term/check/ability/index.html +++ b/dev/Standard/Term/check/ability/index.html @@ -1 +1 @@ - ability 检定 - HydroRollCore 核心文档 (草案)
\ No newline at end of file + ability 检定 - HydroRollCore 核心文档 (草案)
\ No newline at end of file diff --git a/dev/Standard/Term/check/index.html b/dev/Standard/Term/check/index.html index 52bf0222..b382bcd5 100644 --- a/dev/Standard/Term/check/index.html +++ b/dev/Standard/Term/check/index.html @@ -1 +1 @@ - check 检定 - HydroRollCore 核心文档 (草案)
跳转至

check 检定

Tip

这是一个可选实现但是{建议尽量必须实现}的方法,主要表现在规则书正是检定方法不同而有所不同上。

方法说明⚓︎

使用check或者ability方法, 必须对检定结果设定一个完整的输出判定范围。

检定结果表⚓︎

方法所言,你必须为检定的结果设计一个完整的输出判定范围,因此你需要严格并且合理的分配划分界限,保证所有情况都在允许范围内有一个类似”成功””失败”的输出。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + check 检定 - HydroRollCore 核心文档 (草案)
跳转至

check 检定

Tip

这是一个可选实现但是{建议尽量必须实现}的方法,主要表现在规则书正是检定方法不同而有所不同上。

方法说明⚓︎

使用check或者ability方法, 必须对检定结果设定一个完整的输出判定范围。

检定结果表⚓︎

方法所言,你必须为检定的结果设计一个完整的输出判定范围,因此你需要严格并且合理的分配划分界限,保证所有情况都在允许范围内有一个类似”成功””失败”的输出。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/duration/campaign/index.html b/dev/Standard/Term/duration/campaign/index.html index 1cce6513..55228280 100644 --- a/dev/Standard/Term/duration/campaign/index.html +++ b/dev/Standard/Term/duration/campaign/index.html @@ -1 +1 @@ - campaign 战役 - HydroRollCore 核心文档 (草案)

campaign 战役


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + campaign 战役 - HydroRollCore 核心文档 (草案)

campaign 战役


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/duration/index.html b/dev/Standard/Term/duration/index.html index eb5a6881..8ffe483c 100644 --- a/dev/Standard/Term/duration/index.html +++ b/dev/Standard/Term/duration/index.html @@ -1 +1 @@ - duration (时长) - HydroRollCore 核心文档 (草案)
跳转至

duration (时长)⚓︎


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + duration (时长) - HydroRollCore 核心文档 (草案)
跳转至

duration (时长)⚓︎


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/duration/module/index.html b/dev/Standard/Term/duration/module/index.html index 31b35c70..0946dbb1 100644 --- a/dev/Standard/Term/duration/module/index.html +++ b/dev/Standard/Term/duration/module/index.html @@ -1 +1 @@ - module 模组 - HydroRollCore 核心文档 (草案)

module 模组


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + module 模组 - HydroRollCore 核心文档 (草案)

module 模组


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/duration/sene/index.html b/dev/Standard/Term/duration/sene/index.html index 0e59b086..c7d0181c 100644 --- a/dev/Standard/Term/duration/sene/index.html +++ b/dev/Standard/Term/duration/sene/index.html @@ -1 +1 @@ - sene 场 - HydroRollCore 核心文档 (草案)

sene 场


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + sene 场 - HydroRollCore 核心文档 (草案)

sene 场


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/scenario/index.html b/dev/Standard/Term/scenario/index.html index 6be10853..0f17963d 100644 --- a/dev/Standard/Term/scenario/index.html +++ b/dev/Standard/Term/scenario/index.html @@ -1 +1 @@ - scenario 剧本 - HydroRollCore 核心文档 (草案)

scenario 剧本


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + scenario 剧本 - HydroRollCore 核心文档 (草案)

scenario 剧本


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/Term/setting/index.html b/dev/Standard/Term/setting/index.html index 1dd9ed09..0cd45b2c 100644 --- a/dev/Standard/Term/setting/index.html +++ b/dev/Standard/Term/setting/index.html @@ -1 +1 @@ - setting 背景 - HydroRollCore 核心文档 (草案)

setting 背景


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + setting 背景 - HydroRollCore 核心文档 (草案)

setting 背景


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/what-is-rule-package/index.html b/dev/Standard/what-is-rule-package/index.html index bbe8c5ec..16f619ba 100644 --- a/dev/Standard/what-is-rule-package/index.html +++ b/dev/Standard/what-is-rule-package/index.html @@ -1,4 +1,4 @@ - 什么是规则包? - HydroRollCore 核心文档 (草案)

什么是规则包?

规则包是水系核心用来加载的对象,可以理解为水系核心加载的一个一个规则实例。

规则包更类似于插件的设计,所以规则包也可以是一个Python文件或者一个Python包,但它必须像插件那样继承一个像Plugin这样的类(不然无法读取,我们姑且叫这个类为Rule),以及在Rule的子类里实现一些像handle()或者rule()这样必须实现的方法(也叫函数),而这些必须实现的方法,就是我们要讨论的,一个通用规则包标准就是明确了一个继承自Rule类的子类它本身应该实现什么方法。

举个例子(随便写的,其中一些必须实现的属性或者类名都是不确定的,以后或许会改):

 1
+ 什么是规则包? - HydroRollCore 核心文档 (草案)      

什么是规则包?

规则包是水系核心用来加载的对象,可以理解为水系核心加载的一个一个规则实例。

规则包更类似于插件的设计,所以规则包也可以是一个Python文件或者一个Python包,但它必须像插件那样继承一个像Plugin这样的类(不然无法读取,我们姑且叫这个类为Rule),以及在Rule的子类里实现一些像handle()或者rule()这样必须实现的方法(也叫函数),而这些必须实现的方法,就是我们要讨论的,一个通用规则包标准就是明确了一个继承自Rule类的子类它本身应该实现什么方法。

举个例子(随便写的,其中一些必须实现的属性或者类名都是不确定的,以后或许会改):

 1
  2
  3
  4
@@ -45,4 +45,4 @@
             return self.rule.ability.success # 返回大成功时骰主自定义的大成功文本
         else:
             ... # 其他的检定情况
-

这样就实现了一个水系规则包,当pl使用检定掷骰指令时就会调用check()方法,如果检定结果数值小于5且大于0那么返回大成功。

我们要做的通用规则包标准就是这样一个“到底需要在Rule的子类MyRule里必须实现哪些方法?”的问题。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file +

这样就实现了一个水系规则包,当pl使用检定掷骰指令时就会调用check()方法,如果检定结果数值小于5且大于0那么返回大成功。

我们要做的通用规则包标准就是这样一个“到底需要在Rule的子类MyRule里必须实现哪些方法?”的问题。


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/what-is-standard/index.html b/dev/Standard/what-is-standard/index.html index b6823d84..5c09d035 100644 --- a/dev/Standard/what-is-standard/index.html +++ b/dev/Standard/what-is-standard/index.html @@ -1 +1 @@ - 什么是通用规则包标准? - HydroRollCore 核心文档 (草案)

什么是通用规则包标准?


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + 什么是通用规则包标准? - HydroRollCore 核心文档 (草案)

什么是通用规则包标准?


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/Standard/why-rule-package/index.html b/dev/Standard/why-rule-package/index.html index aa2e0f3e..9f1db3bc 100644 --- a/dev/Standard/why-rule-package/index.html +++ b/dev/Standard/why-rule-package/index.html @@ -1 +1 @@ - 为什么要做规则包? - HydroRollCore 核心文档 (草案)

为什么要做规则包?


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + 为什么要做规则包? - HydroRollCore 核心文档 (草案)

为什么要做规则包?


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/blog/2023/10/07/blog-support-just-landed/index.html b/dev/blog/2023/10/07/blog-support-just-landed/index.html index b454bc4e..80fea630 100644 --- a/dev/blog/2023/10/07/blog-support-just-landed/index.html +++ b/dev/blog/2023/10/07/blog-support-just-landed/index.html @@ -1,5 +1,5 @@ Blog support just landed - HydroRollCore 核心文档 (草案)
跳转至

Blog support just landed⚓︎

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

This article explains how to build a standalone blog with Material for MkDocs. If you want to build a blog alongside your documentation, please refer to the plugin's documentation.

Quick start⚓︎

Creating a standalone blog⚓︎

You can bootstrap a new project using the mkdocs executable:

mkdocs new .
+">Blog support just landed - HydroRollCore 核心文档 (草案)       

Blog support just landed⚓︎

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

This article explains how to build a standalone blog with Material for MkDocs. If you want to build a blog alongside your documentation, please refer to the plugin's documentation.

Quick start⚓︎

Creating a standalone blog⚓︎

You can bootstrap a new project using the mkdocs executable:

mkdocs new .
 

This will create the following structure:

1
 2
 3
@@ -103,4 +103,4 @@
 arcu tincidunt pulvinar. Vestibulum laoreet risus scelerisque porta congue.
 In velit purus, dictum quis neque nec, molestie viverra risus. Nam pellentesque
 tellus id elit ultricies, vel finibus erat cursus.
-
  1. If you mark a post as a draft, a red marker appears next to the post date on index pages. When the site is built, drafts are not included in the output. This behavior can be changed, e.g. for rendering drafts when building deploy previews.

When you spin up the live preview server, you should be greeted by your first post! You'll also realize, that archive and category indexes have been automatically generated for you:

Blog

However, this is just the start. The built-in blog plugin packs a lot of functionality needed in day-to-day blogging. Visit the documentation of the plugin to learn about the following topics:

Additionally, the built-in blog plugin has dozens of configuration options which allow for fine-tuning the output. You can configure post slugs, general behavior and much more.

What's next?⚓︎

Getting basic blogging support out the door was quite a challenge – the built-in blog plugin is probably the biggest release this year and already packs a lot of functionality. However, Material for MkDocs is used in many different contexts, which is why we'd expect to iterate, as always.

Some ideas already proposed by users:

  • Blog series: Authors should be able to create so called blog series and assign posts to a blog series using simple identifiers. For each post that is part of a series, a list with links to all other posts should be included in the post's content.

  • Author indexes: Besides archive and category indexes, authors should be able to create per-author indexes, which list all posts linked to an author. Additionally, a profile should be created for each author and linked from posts.

  • Social share buttons: It should be easy to share blog posts via social media or other ways. For this reason, it should be possible to automatically include social sharing buttons with each post.

What's still missing from the brand new built-in blog plugin? Feel free to share your ideas in the comments. Together, we can build one of the best modern engines for technical blogging!


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file +
  1. If you mark a post as a draft, a red marker appears next to the post date on index pages. When the site is built, drafts are not included in the output. This behavior can be changed, e.g. for rendering drafts when building deploy previews.

When you spin up the live preview server, you should be greeted by your first post! You'll also realize, that archive and category indexes have been automatically generated for you:

Blog

However, this is just the start. The built-in blog plugin packs a lot of functionality needed in day-to-day blogging. Visit the documentation of the plugin to learn about the following topics:

Additionally, the built-in blog plugin has dozens of configuration options which allow for fine-tuning the output. You can configure post slugs, general behavior and much more.

What's next?⚓︎

Getting basic blogging support out the door was quite a challenge – the built-in blog plugin is probably the biggest release this year and already packs a lot of functionality. However, Material for MkDocs is used in many different contexts, which is why we'd expect to iterate, as always.

Some ideas already proposed by users:

  • Blog series: Authors should be able to create so called blog series and assign posts to a blog series using simple identifiers. For each post that is part of a series, a list with links to all other posts should be included in the post's content.

  • Author indexes: Besides archive and category indexes, authors should be able to create per-author indexes, which list all posts linked to an author. Additionally, a profile should be created for each author and linked from posts.

  • Social share buttons: It should be easy to share blog posts via social media or other ways. For this reason, it should be possible to automatically include social sharing buttons with each post.

What's still missing from the brand new built-in blog plugin? Feel free to share your ideas in the comments. Together, we can build one of the best modern engines for technical blogging!


最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/blog/archive/2023/index.html b/dev/blog/archive/2023/index.html index e132334f..b7694681 100644 --- a/dev/blog/archive/2023/index.html +++ b/dev/blog/archive/2023/index.html @@ -1 +1 @@ - 2023 - HydroRollCore 核心文档 (草案)
跳转至

2023⚓︎

Blog support just landed

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

\ No newline at end of file + 2023 - HydroRollCore 核心文档 (草案)
跳转至

2023⚓︎

Blog support just landed

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

\ No newline at end of file diff --git a/dev/blog/category/rules/index.html b/dev/blog/category/rules/index.html index a952fee6..30820c33 100644 --- a/dev/blog/category/rules/index.html +++ b/dev/blog/category/rules/index.html @@ -1 +1 @@ - Rules - HydroRollCore 核心文档 (草案)
跳转至

Rules⚓︎

Blog support just landed

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

\ No newline at end of file + Rules - HydroRollCore 核心文档 (草案)
跳转至

Rules⚓︎

Blog support just landed

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

\ No newline at end of file diff --git a/dev/blog/index.html b/dev/blog/index.html index c061114d..5c7c561a 100644 --- a/dev/blog/index.html +++ b/dev/blog/index.html @@ -1 +1 @@ - Blog - HydroRollCore 核心文档 (草案)
跳转至

Blog⚓︎

Blog support just landed

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

\ No newline at end of file + Blog - HydroRollCore 核心文档 (草案)
跳转至

Blog⚓︎

Blog support just landed

Hey there! You're looking at our new blog, built with the brand new built-in blog plugin. With this plugin, you can easily build a blog alongside your documentation or standalone.

Proper support for blogging, as requested by many users over the past few years, was something that was desperately missing from Material for MkDocs' feature set. While everybody agreed that blogging support was a blind spot, it was not obvious whether MkDocs could be extended in a way to allow for blogging as we know it from Jekyll and friends. The built-in blog plugin proves that it is, after all, possible to build a blogging engine on top of MkDocs, in order to create a technical blog alongside your documentation, or as the main thing.

\ No newline at end of file diff --git a/dev/changelog/index.html b/dev/changelog/index.html index ad769014..e35535a5 100644 --- a/dev/changelog/index.html +++ b/dev/changelog/index.html @@ -1 +1 @@ - Changelog - HydroRollCore 核心文档 (草案)
跳转至

Changelog

0.1.2 (2023-10-07)⚓︎

同步版本所做的测试。

0.1.1 (2023-10-07)⚓︎

BUG FIX⚓︎

  • CLI: 添加命令行参数解析。

0.1.0-rc1 (2023-10-07)⚓︎

CHORE⚓︎

  • README: 更新主页介绍的安装指南。

0.1.0 (2023-10-07)⚓︎

Features⚓︎

  • CLI 添加两个命令行名称 HydroRollCoreHRC

0.0.1 (2023-07-04)⚓︎

Features⚓︎

  • init: 添加命令行参数解析。
  • Rule: 添加 Rule 基类,实现读取指定文件夹下的 python 脚本或 python 包

BREAKING CHANGE⚓︎

  • HydroRollCore: 添加命令行Path。

最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file + Changelog - HydroRollCore 核心文档 (草案)
跳转至

Changelog

0.1.2 (2023-10-07)⚓︎

同步版本所做的测试。

0.1.1 (2023-10-07)⚓︎

BUG FIX⚓︎

  • CLI: 添加命令行参数解析。

0.1.0-rc1 (2023-10-07)⚓︎

CHORE⚓︎

  • README: 更新主页介绍的安装指南。

0.1.0 (2023-10-07)⚓︎

Features⚓︎

  • CLI 添加两个命令行名称 HydroRollCoreHRC

0.0.1 (2023-07-04)⚓︎

Features⚓︎

  • init: 添加命令行参数解析。
  • Rule: 添加 Rule 基类,实现读取指定文件夹下的 python 脚本或 python 包

BREAKING CHANGE⚓︎

  • HydroRollCore: 添加命令行Path。

最后更新: 2023-10-07
创建日期: 2023-10-07
\ No newline at end of file diff --git a/dev/index.html b/dev/index.html index b3d470d5..fa723028 100644 --- a/dev/index.html +++ b/dev/index.html @@ -1 +1 @@ - 水系核心 - HydroRollCore 核心文档 (草案)

水系核心

一个基于通用规则包标准的规则包加载器。.

快速开始 查看标准
\ No newline at end of file + 水系核心 - HydroRollCore 核心文档 (草案)

水系核心

一个基于通用规则包标准的规则包加载器。.

快速开始 查看标准
\ No newline at end of file diff --git a/dev/sitemap.xml.gz b/dev/sitemap.xml.gz index 8effb253..822bc3af 100644 Binary files a/dev/sitemap.xml.gz and b/dev/sitemap.xml.gz differ -- cgit v1.2.3-70-g09d2