Skip to content

Commit 04ee8cf

Browse files
zhengruifengsrowen
authored andcommitted
[SPARK-19410][DOC] Fix brokens links in ml-pipeline and ml-tuning
## What changes were proposed in this pull request? Fix brokens links in ml-pipeline and ml-tuning `<div data-lang="scala">` -> `<div data-lang="scala" markdown="1">` ## How was this patch tested? manual tests Author: Zheng RuiFeng <[email protected]> Closes #16754 from zhengruifeng/doc_api_fix.
1 parent f1a1f26 commit 04ee8cf

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docs/ml-pipeline.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ This example covers the concepts of `Estimator`, `Transformer`, and `Param`.
206206

207207
<div class="codetabs">
208208

209-
<div data-lang="scala">
209+
<div data-lang="scala" markdown="1">
210210

211211
Refer to the [`Estimator` Scala docs](api/scala/index.html#org.apache.spark.ml.Estimator),
212212
the [`Transformer` Scala docs](api/scala/index.html#org.apache.spark.ml.Transformer) and
@@ -215,7 +215,7 @@ the [`Params` Scala docs](api/scala/index.html#org.apache.spark.ml.param.Params)
215215
{% include_example scala/org/apache/spark/examples/ml/EstimatorTransformerParamExample.scala %}
216216
</div>
217217

218-
<div data-lang="java">
218+
<div data-lang="java" markdown="1">
219219

220220
Refer to the [`Estimator` Java docs](api/java/org/apache/spark/ml/Estimator.html),
221221
the [`Transformer` Java docs](api/java/org/apache/spark/ml/Transformer.html) and
@@ -224,7 +224,7 @@ the [`Params` Java docs](api/java/org/apache/spark/ml/param/Params.html) for det
224224
{% include_example java/org/apache/spark/examples/ml/JavaEstimatorTransformerParamExample.java %}
225225
</div>
226226

227-
<div data-lang="python">
227+
<div data-lang="python" markdown="1">
228228

229229
Refer to the [`Estimator` Python docs](api/python/pyspark.ml.html#pyspark.ml.Estimator),
230230
the [`Transformer` Python docs](api/python/pyspark.ml.html#pyspark.ml.Transformer) and
@@ -241,22 +241,22 @@ This example follows the simple text document `Pipeline` illustrated in the figu
241241

242242
<div class="codetabs">
243243

244-
<div data-lang="scala">
244+
<div data-lang="scala" markdown="1">
245245

246246
Refer to the [`Pipeline` Scala docs](api/scala/index.html#org.apache.spark.ml.Pipeline) for details on the API.
247247

248248
{% include_example scala/org/apache/spark/examples/ml/PipelineExample.scala %}
249249
</div>
250250

251-
<div data-lang="java">
251+
<div data-lang="java" markdown="1">
252252

253253

254254
Refer to the [`Pipeline` Java docs](api/java/org/apache/spark/ml/Pipeline.html) for details on the API.
255255

256256
{% include_example java/org/apache/spark/examples/ml/JavaPipelineExample.java %}
257257
</div>
258258

259-
<div data-lang="python">
259+
<div data-lang="python" markdown="1">
260260

261261
Refer to the [`Pipeline` Python docs](api/python/pyspark.ml.html#pyspark.ml.Pipeline) for more details on the API.
262262

docs/ml-tuning.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,21 @@ However, it is also a well-established method for choosing parameters which is m
7474

7575
<div class="codetabs">
7676

77-
<div data-lang="scala">
77+
<div data-lang="scala" markdown="1">
7878

7979
Refer to the [`CrossValidator` Scala docs](api/scala/index.html#org.apache.spark.ml.tuning.CrossValidator) for details on the API.
8080

8181
{% include_example scala/org/apache/spark/examples/ml/ModelSelectionViaCrossValidationExample.scala %}
8282
</div>
8383

84-
<div data-lang="java">
84+
<div data-lang="java" markdown="1">
8585

8686
Refer to the [`CrossValidator` Java docs](api/java/org/apache/spark/ml/tuning/CrossValidator.html) for details on the API.
8787

8888
{% include_example java/org/apache/spark/examples/ml/JavaModelSelectionViaCrossValidationExample.java %}
8989
</div>
9090

91-
<div data-lang="python">
91+
<div data-lang="python" markdown="1">
9292

9393
Refer to the [`CrossValidator` Python docs](api/python/pyspark.ml.html#pyspark.ml.tuning.CrossValidator) for more details on the API.
9494

@@ -128,7 +128,7 @@ Refer to the [`TrainValidationSplit` Java docs](api/java/org/apache/spark/ml/tun
128128
{% include_example java/org/apache/spark/examples/ml/JavaModelSelectionViaTrainValidationSplitExample.java %}
129129
</div>
130130

131-
<div data-lang="python">
131+
<div data-lang="python" markdown="1">
132132

133133
Refer to the [`TrainValidationSplit` Python docs](api/python/pyspark.ml.html#pyspark.ml.tuning.TrainValidationSplit) for more details on the API.
134134

0 commit comments

Comments
 (0)