spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiangrui Meng (JIRA)" <>
Subject [jira] [Resolved] (SPARK-13018) Replace example code in using include_example
Date Tue, 16 Feb 2016 04:18:18 GMT


Xiangrui Meng resolved SPARK-13018.
       Resolution: Fixed
    Fix Version/s: 2.0.0

Issue resolved by pull request 11126

> Replace example code in using include_example
> ------------------------------------------------------------------------
>                 Key: SPARK-13018
>                 URL:
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Documentation
>            Reporter: Xusen Yin
>            Assignee: Xin Ren
>            Priority: Minor
>              Labels: starter
>             Fix For: 2.0.0
> The example code in the user guide is embedded in the markdown and hence it is not easy
to test. It would be nice to automatically test them. This JIRA is to discuss options to automate
example code testing and see what we can do in Spark 1.6.
> Goal is to move actual example code to spark/examples and test compilation in Jenkins
builds. Then in the markdown, we can reference part of the code to show in the user guide.
This requires adding a Jekyll tag that is similar to,
e.g., called include_example.
> {code}{% include_example scala/org/apache/spark/examples/mllib/PMMLModelExportExample.scala
> Jekyll will find `examples/src/main/scala/org/apache/spark/examples/mllib/PMMLModelExportExample.scala`
and pick code blocks marked "example" and replace code block in 
> {code}{% highlight %}{code}
>  in the markdown. 
> See more sub-tasks in parent ticket:

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message