You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiangrui Meng (JIRA)" <ji...@apache.org> on 2016/03/24 22:26:25 UTC

[jira] [Resolved] (SPARK-13017) Replace example code in mllib-feature-extraction.md using include_example

     [ https://issues.apache.org/jira/browse/SPARK-13017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

Issue resolved by pull request 11142
[https://github.com/apache/spark/pull/11142]

> Replace example code in mllib-feature-extraction.md using include_example
> -------------------------------------------------------------------------
>
>                 Key: SPARK-13017
>                 URL: https://issues.apache.org/jira/browse/SPARK-13017
>             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 https://github.com/jekyll/jekyll/blob/master/lib/jekyll/tags/include.rb, e.g., called include_example.
> {code}{% include_example scala/org/apache/spark/examples/mllib/TFIDFExample.scala %}{code}
> Jekyll will find `examples/src/main/scala/org/apache/spark/examples/mllib/TFIDFExample.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: https://issues.apache.org/jira/browse/SPARK-11337



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org