浏览代码

Merge pull request #261 from emqx/docs_build

Fix gitbook docs build errors
jinfahua 5 年之前
父节点
当前提交
079961e6ac
共有 2 个文件被更改,包括 13 次插入0 次删除
  1. 6 0
      docs/en_US/rules/overview.md
  2. 7 0
      docs/zh_CN/rules/overview.md

+ 6 - 0
docs/en_US/rules/overview.md

@@ -73,6 +73,7 @@ Each action can define its own properties. There are several common properties:
 If sendSingle is true, the data template will execute against a record; Otherwise, it will execute against the whole array of records. Typical data templates are:
 
 For example, we have the sink input as 
+
 ```
 []map[string]interface{}{{
     "ab" : "hello1",
@@ -99,16 +100,21 @@ In sendSingle=false mode:
 ```
 "dataTemplate": `{"content":{{json .}}}`,
 ```
+
 - Print out the first record
+
 ```
 "dataTemplate": `{"content":{{json (index . 0)}}}`,
 ```
+
 - Print out the field ab of the first record
 
 ```
 "dataTemplate": `{"content":{{index . 0 "ab"}}}`,
 ```
+
 - Print out field ab of each record in the array to html format
+
 ```
 "dataTemplate": `<div>results</div><ul>{{range .}}<li>{{.ab}}</li>{{end}}</ul>`,
 ```

+ 7 - 0
docs/zh_CN/rules/overview.md

@@ -63,6 +63,7 @@
 If sendSingle is true, the data template will execute against a record; Otherwise, it will execute against the whole array of records. Typical data templates are:
 
 For example, we have the sink input as 
+
 ```
 []map[string]interface{}{{
     "ab" : "hello1",
@@ -77,6 +78,7 @@ In sendSingle=true mode:
 ```
 "dataTemplate": `{"content":{{json .}}}`,
 ```
+
 - Print out the the ab field
 
 ```
@@ -89,16 +91,21 @@ In sendSingle=false mode:
 ```
 "dataTemplate": `{"content":{{json .}}}`,
 ```
+
 - Print out the first record
+
 ```
 "dataTemplate": `{"content":{{json (index . 0)}}}`,
 ```
+
 - Print out the field ab of the first record
 
 ```
 "dataTemplate": `{"content":{{index . 0 "ab"}}}`,
 ```
+
 - Print out field ab of each record in the array to html format
+
 ```
 "dataTemplate": `<div>results</div><ul>{{range .}}<li>{{.ab}}</li>{{end}}</ul>`,
 ```