This is an automated email from the ASF dual-hosted git repository. dongjoon pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/spark-website.git
The following commit(s) were added to refs/heads/asf-site by this push: new c94c6ff3d Add language tab for word count code example c94c6ff3d is described below commit c94c6ff3dba01748958aafff39e408c8c001972f Author: drgnchan <40224023+drgnc...@users.noreply.github.com> AuthorDate: Mon Jan 9 22:45:03 2023 -0800 Add language tab for word count code example <!-- *Make sure that you generate site HTML with `bundle exec jekyll build`, and include the changes to the HTML in your pull request. See README.md for more information.* --> Before <img width="1017" alt="image" src="https://user-images.githubusercontent.com/40224023/211459050-6c824af6-4ed2-46ab-8f94-25e5fd02d979.png"> After <img width="1004" alt="image" src="https://user-images.githubusercontent.com/40224023/211459062-76816b76-7a31-4211-a024-8aecd3f81fa8.png"> Author: drgnchan <40224023+drgnc...@users.noreply.github.com> Closes #431 from drgnchan/asf-site. --- examples.md | 5 +++++ site/examples.html | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/examples.md b/examples.md index 8061ac430..d9362784d 100644 --- a/examples.md +++ b/examples.md @@ -26,6 +26,11 @@ In this page, we will show examples using RDD API as well as examples using high <h3>Word count</h3> <p>In this example, we use a few transformations to build a dataset of (String, Int) pairs called <code>counts</code> and then save it to a file.</p> +<ul class="nav nav-tabs"> + <li class="lang-tab lang-tab-python active"><a href="#">Python</a></li> + <li class="lang-tab lang-tab-scala"><a href="#">Scala</a></li> + <li class="lang-tab lang-tab-java"><a href="#">Java</a></li> +</ul> <div class="tab-content"> <div class="tab-pane tab-pane-python active"> diff --git a/site/examples.html b/site/examples.html index b41f9a095..71cf0c60a 100644 --- a/site/examples.html +++ b/site/examples.html @@ -142,6 +142,12 @@ In this page, we will show examples using RDD API as well as examples using high <h3>Word count</h3> <p>In this example, we use a few transformations to build a dataset of (String, Int) pairs called <code>counts</code> and then save it to a file.</p> +<ul class="nav nav-tabs"> + <li class="lang-tab lang-tab-python active"><a href="#">Python</a></li> + <li class="lang-tab lang-tab-scala"><a href="#">Scala</a></li> + <li class="lang-tab lang-tab-java"><a href="#">Java</a></li> +</ul> + <div class="tab-content"> <div class="tab-pane tab-pane-python active"> <div class="code code-tab"> --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org