Skip to content

apache/spark-website

Folders and files

NameName
Last commit message
Last commit date
Feb 18, 2021
Aug 8, 2024
Mar 11, 2025
Feb 6, 2025
Oct 12, 2021
Apr 2, 2024
Feb 27, 2025
Oct 12, 2021
Feb 27, 2025
Apr 17, 2024
Feb 27, 2025
Nov 15, 2016
Mar 26, 2025
Jan 28, 2025
Oct 12, 2021
Jun 7, 2022
Sep 11, 2013
Jun 1, 2021
Apr 28, 2022
Aug 28, 2024
Aug 28, 2024
Mar 13, 2025
Mar 13, 2025
Jan 19, 2018
Sep 9, 2023
Aug 8, 2024
Oct 12, 2021
Mar 19, 2025
Apr 19, 2023
Jul 13, 2016
Jun 7, 2024
Oct 31, 2024
Jun 11, 2018
Feb 27, 2025
Feb 27, 2025
Apr 19, 2021
Jan 3, 2024
May 19, 2022
Oct 12, 2021
Oct 12, 2021
Oct 12, 2021
Oct 12, 2021
Oct 12, 2021
Sep 19, 2023
Jan 22, 2014
Dec 23, 2019
Aug 11, 2023
Aug 13, 2024
Sep 16, 2016
May 10, 2017
Sep 9, 2023
May 10, 2022
Mar 26, 2025
Oct 12, 2021
Mar 17, 2025

Generating the website HTML

In this directory you will find text files formatted using Markdown, with an .md suffix.

Building the site requires Jekyll Rouge. The easiest way to install the right version of these tools is using Bundler and running bundle install in this directory.

See also https://github.com/apache/spark/blob/master/docs/README.md

A site build will update the directories and files in the site directory with the generated files. Using Jekyll via bundle exec jekyll locks it to the right version. So after this you can generate the html website by running bundle exec jekyll build in this directory. Use the --watch flag to have jekyll recompile your files as you save changes.

In addition to generating the site as HTML from the Markdown files, jekyll can serve the site via a web server. To build the site and run a web server use the command bundle exec jekyll serve which runs the web server on port 4000, then visit the site at http://localhost:4000.

Please make sure you always run bundle exec jekyll build after testing your changes with bundle exec jekyll serve, otherwise you end up with broken links in a few places.

Updating Jekyll version

To update Jekyll or any other gem please follow these steps:

  1. Update the version in the Gemfile
  2. Run bundle update which updates the Gemfile.lock
  3. Commit both files

Docs sub-dir

The docs are not generated as part of the website. They are built separately for each release of Spark from the Spark source repository and then copied to the website under the docs directory. See the instructions for building those in the readme in the Spark project's /docs directory.

Rouge and Pygments

We also use Rouge for syntax highlighting in documentation Markdown pages. Its HTML output is compatible with CSS files designed for Pygments.

To mark a block of code in your Markdown to be syntax highlighted by jekyll during the compile phase, use the following syntax:

{% highlight scala %}
// Your Scala code goes here, you can replace Scala with many other
// supported languages too.
{% endhighlight %}

You probably don't need to install that unless you want to regenerate the Pygments CSS file. It requires Python, and can be installed by running sudo easy_install Pygments.

Merge PR

To merge pull request, use the merge_pr.py script which also squashes the commits.