Thesharing commented on a change in pull request #16935:
URL: https://github.com/apache/flink/pull/16935#discussion_r693971426
##########
File path:
flink-core/src/main/java/org/apache/flink/configuration/RestartStrategyOptions.java
##########
@@ -63,21 +63,21 @@
code("fixeddelay"),
code("fixed-delay"),
link(
-
"{{.Site.BaseURL}}docs/ops/state/task_failure_recovery#fixed-delay-restart-strategy",
+
"{{.Site.BaseURL}}/{{.Site.LanguagePrefix}}/docs/ops/state/task_failure_recovery#fixed-delay-restart-strategy",
Review comment:
Thank you for reviewing, @zentol! `LanguagePrefix` is used here because
we think it's better to let the links in the Chinese version direct to the page
in the Chinese version, rather than the English version. With `LanguagePrefix`
the link will be like
`https://ci.apache.org/projects/flink/flink-docs-master/zh/docs/...`.
I've tried `{{< ref "docs/.." >}}`, but it doesn't works. The error message
is: `unexpected "<" in command`. I'm not sure whether `ref` is available for
the static html or not.
Here's something I found that may be helpful:
https://discourse.gohugo.io/t/using-shortcodes-in-html-content/2960/5
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]