klion26 commented on a change in pull request #13225: URL: https://github.com/apache/flink/pull/13225#discussion_r481720837
########## File path: docs/dev/user_defined_functions.zh.md ########## @@ -147,95 +153,78 @@ data.map (new RichMapFunction[String, Int] { </div> -Rich functions provide, in addition to the user-defined function (map, -reduce, etc), four methods: `open`, `close`, `getRuntimeContext`, and -`setRuntimeContext`. These are useful for parameterizing the function -(see [Passing Parameters to Functions]({{ site.baseurl }}/dev/batch/index.html#passing-parameters-to-functions)), -creating and finalizing local state, accessing broadcast variables (see -[Broadcast Variables]({{ site.baseurl }}/dev/batch/index.html#broadcast-variables)), and for accessing runtime -information such as accumulators and counters (see -[Accumulators and Counters](#accumulators--counters)), and information -on iterations (see [Iterations]({{ site.baseurl }}/dev/batch/iterations.html)). +除了用户自定义的功能(map,reduce 等),Rich functions 还提供了四个方法:`open`、`close`、`getRuntimeContext` 和 +`setRuntimeContext`。这些方法对于参数化函数 +(参阅 [给函数传递参数]({{ site.baseurl }}{% link zh/dev/batch/index.html#passing-parameters-to-functions %})), Review comment: 这个链接的修改是有问题的,具体可以参考下上次评论中的链接。 http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/Reminder-Prefer-link-tag-in-documentation-td42362.html 需要把 [CLI]({% site.baseurl %}/ops/cli.html) 的格式换成 [CLI]({% link ops/cli.md %})。 你可以参考 https://github.com/apache/flink/pull/12798/files 这个 PR 的修改。 修改完成之后,建议执行 `./docs/docker/run.sh` 然后执行 `./build_docs.sh -p` 查看是否有错误(现在的修改执行是有错误的),这样执行没有错误之后,可以打开 `localhost:4000` 找到翻译的页面查看具体效果 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org