From 135a9eb3829e0705a81ebdfcb5fdbeb6924c3392 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 13 Dec 2023 13:10:06 +0800 Subject: refactor: rename `HydroRollCore` -> `infini` --- docs/CLI/index.md | 6 +++--- docs/Core/index.md | 20 ++++++++++---------- docs/RulePackage/intro.md | 2 +- docs/Standard/Term/check/ability.md | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) (limited to 'docs') diff --git a/docs/CLI/index.md b/docs/CLI/index.md index 3eb9bf48..cef69104 100644 --- a/docs/CLI/index.md +++ b/docs/CLI/index.md @@ -5,7 +5,7 @@ title: CLI Reference ```python exec="1" idprefix="" import argparse import re -from HydroRollCore import Cli +from infini import Cli parser = Cli().parser @@ -26,7 +26,7 @@ def render_parser( ) -> str: """Render the parser help documents as a string.""" result = [f"{'#' * heading_level} {title}\n"] - if parser.description and title != "HydroRollCore": + if parser.description and title != "infini": result.append("> " + parser.description + "\n") for group in sorted( @@ -62,5 +62,5 @@ def render_parser( return "\n".join(result) -print(render_parser(parser, "HydroRollCore")) +print(render_parser(parser, "infini")) ``` \ No newline at end of file diff --git a/docs/Core/index.md b/docs/Core/index.md index 6142664c..dd40757a 100644 --- a/docs/Core/index.md +++ b/docs/Core/index.md @@ -3,17 +3,17 @@ hide: - navigation --- -

HydroRollCore'水系核心

+

infini'水系核心

- - + + - - + +

@@ -24,11 +24,11 @@ hide: 在命令行输入。 ``` shell -git clone https://github.com/HydroRoll-Team/HydroRollCore.git -cd HydroRollCore +git clone https://github.com/HydroRoll-Team/infini.git +cd infini pdm install # 或者使用pip -# pip install HydroRollCore +# pip install infini ``` 2. 创建规则包实例 @@ -42,7 +42,7 @@ echo.> __init__.py 在 `__init__.py` 创建一个 `rule` 实例并继承 `Rule` 基类, 通过编写合适的相关方法与类注册规则包实现规则的自定义。 ``` python -from HydroRollCore import Rule +from infini import Rule class Myrule(Rule): """自设规则包,继承 Rule 基类""" @@ -52,4 +52,4 @@ class Myrule(Rule): ## 📄 License -[MIT](https://github.com/HydroRoll-Team/HydroRollCore/blob/master/LICENSE) © 2023-PRESENT [简律纯](https://github.com/HsiangNianian) +[MIT](https://github.com/HydroRoll-Team/infini/blob/master/LICENSE) © 2023-PRESENT [简律纯](https://github.com/HsiangNianian) diff --git a/docs/RulePackage/intro.md b/docs/RulePackage/intro.md index 8bdd41bb..8c948cb9 100644 --- a/docs/RulePackage/intro.md +++ b/docs/RulePackage/intro.md @@ -16,7 +16,7 @@ title: 概述 pdm install MyRule ``` - 如果你使用`pdm`管理自己的规则包或开启自己的水系骰子,那么非常推荐使用这种方案来集成形如 `HydroRollCore-Rule-The_Pool`这般包名的规则。 + 如果你使用`pdm`管理自己的规则包或开启自己的水系骰子,那么非常推荐使用这种方案来集成形如 `infini-Rule-The_Pool`这般包名的规则。 === "使用`hrc`管理器" diff --git a/docs/Standard/Term/check/ability.md b/docs/Standard/Term/check/ability.md index 64233562..13e3d83a 100644 --- a/docs/Standard/Term/check/ability.md +++ b/docs/Standard/Term/check/ability.md @@ -5,6 +5,6 @@ status: deprecated !!! info 关于这部分内容请[移步正式术语][redirect]: [`check 检定`](/Standard/Term/check/) - [redirect]: https://HydroRollCore.retrofor.space "我为什么会看到此项内容?" + [redirect]: https://infini.retrofor.space "我为什么会看到此项内容?" 这部分其实已经移除。 -- cgit v1.2.3-70-g09d2