Browse Source

fix(doc): fix content and header problems (#2056)

* fix(doc): wrong debug env value

Signed-off-by: Jiyong Huang <huangjy@emqx.io>

* fix(doc): fix wrong header

Signed-off-by: Jiyong Huang <huangjy@emqx.io>

---------

Signed-off-by: Jiyong Huang <huangjy@emqx.io>
ngjaying 1 year ago
parent
commit
3a246a4e03

+ 1 - 1
docs/en_US/getting_started/debug_rules.md

@@ -192,7 +192,7 @@ If the status is stopped, you can check the logs to check the detail. If the sta
 as expected, you can check the logs to see if there is any error or even open debug to track the data flow.
 
 Here is [the instruction to check the logs](#check-the-logs). To open debug log, you can set the log level to `debug` in
-the `etc/kuiper.yaml` file or setting environment variable: `KUIPER__BASIC__DEBUG=false`. Then you can check the debug
+the `etc/kuiper.yaml` file or setting environment variable: `KUIPER__BASIC__DEBUG=true`. Then you can check the debug
 log to see the data flow. For example, the below is one line of debug log regarding filter.
 
 ```text

+ 2 - 2
docs/en_US/sqls/functions/aggregate_functions.md

@@ -56,7 +56,7 @@ collect(col)
 
 Returns an array with all columns or the whole record (when the parameter is *) values from the group.
 
-Examples:
+### Examples
 
 * Get an array of column `a` of the current window. Assume the column `a` is of an int type, the result will be
   like: `[{"r1":[32, 45]}]`
@@ -94,7 +94,7 @@ If the parameter is a column,
 the result will be an object containing the union of the keys of all the objects in the column.
 If the column contains only non-object values, the result will be an empty object.
 
-## Examples
+### Examples
 
 Given the following values in the group:
 

+ 1 - 1
docs/zh_CN/getting_started/debug_rules.md

@@ -167,7 +167,7 @@ GET http://{{host}}/rules/rule1/status
 如果状态是停止的,你可以查看日志来检查细节。如果状态是运行的,但指标不符合预期,你可以检查日志,看看是否有任何错误,甚至打开调试来跟踪数据流。
 
 下面是[检查日志的指令](#检查日志)。要打开调试日志,你可以在`etc/kuiper.yaml`文件中设置日志级别为`debug`
-或者设置环境变量:`KUIPER__BASIC__DEBUG=false`。然后你就可以检查调试日志来查看数据流。例如,下面是关于过滤器的调试日志的一行。
+或者设置环境变量:`KUIPER__BASIC__DEBUG=true`。然后你就可以检查调试日志来查看数据流。例如,下面是关于过滤器的调试日志的一行。
 
 ```text
 time="2023-05-31 14:58:43" level=debug msg="filter plan receive &{mockStream map[temperature:%!s(float64=-11.77) ts:%!s(float64=1.684738889251e+12)] %!s(int64=1685516298342) map[fi

+ 2 - 2
docs/zh_CN/sqls/functions/aggregate_functions.md

@@ -55,7 +55,7 @@ collect(col)
 
 返回组中指定的列或整个消息(参数为*时)的值组成的数组。
 
-## 示例
+### 示例
 
 * 获取当前窗口所有消息的列 a 的值组成的数组。假设列 a 的类型为 int, 则结果为: `[{"r1":[32, 45]}]`
 
@@ -86,7 +86,7 @@ merge_agg(col)
 
 如果参数是列,结果将是一个包含列中所有对象的键的联合的对象。如果列只包含非对象值,则结果将是一个空对象。
 
-##
+### 示
 
 假设组中的值如下所示: