Skip to content

Commit

Permalink
[hotfix][docs] Fix broken gh_link usage
Browse files Browse the repository at this point in the history
  • Loading branch information
aljoscha committed Feb 24, 2021
1 parent fab2e55 commit 41ad173
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 20 deletions.
3 changes: 1 addition & 2 deletions docs/content.zh/docs/dev/dataset/zip_elements_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ under the License.
# Zipping Elements in a DataSet

In certain algorithms, one may need to assign unique identifiers to data set elements.
This document shows how {% gh_link /flink-java/src/main/java/org/apache/flink/api/java/utils/DataSetUtils.java "DataSetUtils" %} can be used for that purpose.
{{< gh_link file="/flink-java/src/main/java/org/apache/flink/api/java/utils/DataSetUtils.java" name="DataSetUtils" >}}
This document shows how {{< gh_link file="/flink-java/src/main/java/org/apache/flink/api/java/utils/DataSetUtils.java" name="DataSetUtils" >}} can be used for that purpose.

### Zip with a Dense Index

Expand Down
12 changes: 6 additions & 6 deletions docs/content.zh/docs/dev/datastream/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ program consists of the same basic parts:

We will now give an overview of each of those steps, please refer to the
respective sections for more details. Note that all core classes of the Java
DataStream API can be found in {% gh_link
/flink-streaming-java/src/main/java/org/apache/flink/streaming/api
"org.apache.flink.streaming.api" %}.
DataStream API can be found in {{< gh_link
file="/flink-streaming-java/src/main/java/org/apache/flink/streaming/api"
name="org.apache.flink.streaming.api" >}}.

The `StreamExecutionEnvironment` is the basis for all Flink programs. You can
obtain one using these static methods on `StreamExecutionEnvironment`:
Expand Down Expand Up @@ -147,9 +147,9 @@ print()

We will now give an overview of each of those steps, please refer to the
respective sections for more details. Note that all core classes of the Scala
DataStream API can be found in {% gh_link
/flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala
"org.apache.flink.streaming.api.scala" %}.
DataStream API can be found in {{< gh_link
file="/flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala"
name="org.apache.flink.streaming.api.scala" >}}.

The `StreamExecutionEnvironment` is the basis for all Flink programs. You can
obtain one using these static methods on `StreamExecutionEnvironment`:
Expand Down
2 changes: 1 addition & 1 deletion docs/content.zh/docs/dev/table/functions/udfs.md
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ public static class LiteralFunction extends ScalarFunction {
{{< /tabs >}}

For more examples of custom type inference, see also the `flink-examples-table` module with
{% gh_link flink-examples/flink-examples-table/src/main/java/org/apache/flink/table/examples/java/functions/AdvancedFunctionsExample.java "advanced function implementation" %}.
{{< gh_link file="flink-examples/flink-examples-table/src/main/java/org/apache/flink/table/examples/java/functions/AdvancedFunctionsExample.java" name="advanced function implementation" >}}.

### 运行时集成
-------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/content.zh/docs/ops/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ class MyMapper extends RichMapFunction[Long,Long] {
{{< /tab >}}
{{< /tabs >}}

Flink offers a {% gh_link flink-metrics/flink-metrics-dropwizard/src/main/java/org/apache/flink/dropwizard/metrics/DropwizardMeterWrapper.java "Wrapper" %} that allows usage of Codahale/DropWizard meters.
Flink offers a {{< gh_link file="flink-metrics/flink-metrics-dropwizard/src/main/java/org/apache/flink/dropwizard/metrics/DropwizardMeterWrapper.java" name="Wrapper" >}} that allows usage of Codahale/DropWizard meters.
To use this wrapper add the following dependency in your `pom.xml`:
```xml
<dependency>
Expand Down
3 changes: 1 addition & 2 deletions docs/content/docs/dev/dataset/zip_elements_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ under the License.
# Zipping Elements in a DataSet

In certain algorithms, one may need to assign unique identifiers to data set elements.
This document shows how {% gh_link /flink-java/src/main/java/org/apache/flink/api/java/utils/DataSetUtils.java "DataSetUtils" %} can be used for that purpose.
{{< gh_link file="/flink-java/src/main/java/org/apache/flink/api/java/utils/DataSetUtils.java" name="DataSetUtils" >}}
This document shows how {{< gh_link file="/flink-java/src/main/java/org/apache/flink/api/java/utils/DataSetUtils.java" name="DataSetUtils" >}} can be used for that purpose.

### Zip with a Dense Index

Expand Down
13 changes: 6 additions & 7 deletions docs/content/docs/dev/datastream/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,11 @@ program consists of the same basic parts:
{{< tabs "fa68701c-59e8-4509-858e-3e8a123eeacf" >}}
{{< tab "Java" >}}


We will now give an overview of each of those steps, please refer to the
respective sections for more details. Note that all core classes of the Java
DataStream API can be found in {% gh_link
/flink-streaming-java/src/main/java/org/apache/flink/streaming/api
"org.apache.flink.streaming.api" %}.
DataStream API can be found in {{< gh_link
file="/flink-streaming-java/src/main/java/org/apache/flink/streaming/api"
name="org.apache.flink.streaming.api" >}}.

The `StreamExecutionEnvironment` is the basis for all Flink programs. You can
obtain one using these static methods on `StreamExecutionEnvironment`:
Expand Down Expand Up @@ -147,9 +146,9 @@ print()

We will now give an overview of each of those steps, please refer to the
respective sections for more details. Note that all core classes of the Scala
DataStream API can be found in {% gh_link
/flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala
"org.apache.flink.streaming.api.scala" %}.
DataStream API can be found in {{< gh_link
file="/flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala"
name="org.apache.flink.streaming.api.scala" >}}.

The `StreamExecutionEnvironment` is the basis for all Flink programs. You can
obtain one using these static methods on `StreamExecutionEnvironment`:
Expand Down
2 changes: 1 addition & 1 deletion docs/content/docs/ops/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ class MyMapper extends RichMapFunction[Long,Long] {
{{< /tab >}}
{{< /tabs >}}

Flink offers a {% gh_link flink-metrics/flink-metrics-dropwizard/src/main/java/org/apache/flink/dropwizard/metrics/DropwizardMeterWrapper.java "Wrapper" %} that allows usage of Codahale/DropWizard meters.
Flink offers a {{< gh_link file="flink-metrics/flink-metrics-dropwizard/src/main/java/org/apache/flink/dropwizard/metrics/DropwizardMeterWrapper.java" name="Wrapper" >}} that allows usage of Codahale/DropWizard meters.
To use this wrapper add the following dependency in your `pom.xml`:
```xml
<dependency>
Expand Down

0 comments on commit 41ad173

Please sign in to comment.