Selaa lähdekoodia

fix(docs): fix broken link (#2068)

Signed-off-by: Rui-Gan <1171530954@qq.com>
Regina 1 vuosi sitten
vanhempi
commit
e2e16bafa8

+ 1 - 1
docs/en_US/guide/sources/builtin/file.md

@@ -59,7 +59,7 @@ The file source supports monitoring files or folders. If the monitored location
 The supported file types are
 The supported file types are
 
 
 - json: standard JSON array format files,
 - json: standard JSON array format files,
-  see [example](https://github.com/lf-edge/ekuiper/tree/master/internal/topo/source/test/test.json). If the file format is a line-separated JSON string, it needs to be defined in lines format.
+  see [example](https://github.com/lf-edge/ekuiper/tree/master/internal/io/file/test/test.json). If the file format is a line-separated JSON string, it needs to be defined in lines format.
 - csv: comma-separated csv files are supported, as well as custom separators.
 - csv: comma-separated csv files are supported, as well as custom separators.
 - lines: line-separated file. The decoding method of each line can be defined by the format parameter in the stream definition. For example, for a line-separated JSON string, the file type is set to lines and the format is set to json.
 - lines: line-separated file. The decoding method of each line can be defined by the format parameter in the stream definition. For example, for a line-separated JSON string, the file type is set to lines and the format is set to json.
 
 

+ 1 - 1
docs/zh_CN/guide/sources/builtin/file.md

@@ -56,7 +56,7 @@ default:
 
 
 支持的文件类型有:
 支持的文件类型有:
 
 
-- json:标准的JSON数组格式文件。见[例子](https://github.com/lf-edge/ekuiper/tree/master/internal/topo/source/test/test.json)。如果文件格式是一个以行分隔的JSON字符串,它需要以 `lines` 格式定义。
+- json:标准的JSON数组格式文件。见[例子](https://github.com/lf-edge/ekuiper/tree/master/internal/io/file/test/test.json)。如果文件格式是一个以行分隔的JSON字符串,它需要以 `lines` 格式定义。
 - csv:支持逗号分隔的 csv 文件,也支持自定义分隔符。
 - csv:支持逗号分隔的 csv 文件,也支持自定义分隔符。
 - lines:以行分隔的文件。每行的解码方法可以通过流定义中的 `format` 参数来定义。例如,对于一个按行分隔的 JSON 字符串文件,文件类型应设置为 `lines`,格式应设置为 `json`,表示单行的格式为 json。
 - lines:以行分隔的文件。每行的解码方法可以通过流定义中的 `format` 参数来定义。例如,对于一个按行分隔的 JSON 字符串文件,文件类型应设置为 `lines`,格式应设置为 `json`,表示单行的格式为 json。