You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by mengxr <gi...@git.apache.org> on 2015/11/02 22:56:05 UTC

[GitHub] spark pull request: [SPARK-11336] Add links to example codes

Github user mengxr commented on a diff in the pull request:

    https://github.com/apache/spark/pull/9320#discussion_r43688658
  
    --- Diff: docs/_plugins/include_example.rb ---
    @@ -38,7 +38,15 @@ def render(context)
           code = File.open(@file).read.encode("UTF-8")
           code = select_lines(code)
      
    -      Pygments.highlight(code, :lexer => @lang)
    +      rendered_code = Pygments.highlight(code, :lexer => @lang)
    +
    +      spark_version = site.config['SPARK_VERSION_SHORT']
    +      hint = "<div class=\"hint\">Find the example here: " \
    --- End diff --
    
    * `Find the example here:` -> `Find full example code here:`
    * We don't need a special CSS style to change font size. Use `<div><small>...</small></div>`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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