From ed401b9e20c3446e1799354fa3f6701ea3f360da Mon Sep 17 00:00:00 2001 From: Mike Chong Date: Tue, 28 May 2024 21:45:07 +0000 Subject: [PATCH 1/2] add ".beancount" extension support --- zhang-cli/src/opendal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zhang-cli/src/opendal.rs b/zhang-cli/src/opendal.rs index dadb62b7..af72b86f 100644 --- a/zhang-cli/src/opendal.rs +++ b/zhang-cli/src/opendal.rs @@ -186,7 +186,7 @@ impl OpendalDataSource { .to_string() .as_str() { - "bc" | "bean" => true, + "bc" | "bean" | "beancount" => true, "zhang" => false, _ => unreachable!("not supported data format"), }; From 40396ce2ee0ba24a61828ff8a1bbd240d125917b Mon Sep 17 00:00:00 2001 From: Mike Chong Date: Tue, 28 May 2024 21:46:42 +0000 Subject: [PATCH 2/2] f --- docs/src/content/docs/installation/2-beancount_launch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/content/docs/installation/2-beancount_launch.md b/docs/src/content/docs/installation/2-beancount_launch.md index bff8b2c1..a3b7648d 100644 --- a/docs/src/content/docs/installation/2-beancount_launch.md +++ b/docs/src/content/docs/installation/2-beancount_launch.md @@ -4,7 +4,7 @@ description: This is a page in my Starlight-powered site --- -zhang 自带了 beancount 的处理器,也会在**主文件** `endpoint` 的文件后缀为 `.bc` 或 `.bean` 时,以 **beancount 处理器**启动 +zhang 自带了 beancount 的处理器,也会在**主文件** `endpoint` 的文件后缀为 `.bc`, `.bean` 或 `.beancount` 时,以 **beancount 处理器**启动 zhang 服务端。 因此你需要在启动时指定 endpoint 为 beancount 主文件。