Back to directory
apache avatar

spark-website

Apache Spark Website. Read more below about its uses, features, and usage.

Clone repository

git clone https://github.com/apache/spark-website.git

140

Stars

245

Forks

33

Watchers

Apache-2.0

License

Generating the website HTML

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

Building the site requires Ruby 3, Jekyll, and Rouge. The most reliable way to ensure a compatible environment is to use the official Docker build image from the Apache Spark repository.

If you haven't already, clone the Apache Spark repository. Navigate to the Spark root directory and run the following command to create the builder image:

docker build \
  --tag docs-builder:latest \
  --file dev/spark-test-image/docs/Dockerfile \
  dev/spark-test-image-util/docs/

Once the image is built, navigate to the spark-website root directory, run the script which processes the Markdown files in the Docker container.

.dev/build-docs.sh

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.

Contributors

srowen avatar srowen 137 commits dongjoon-hyun avatar dongjoon-hyun 93 commits HyukjinKwon avatar HyukjinKwon 87 commits rxin avatar rxin 70 commits andyk avatar andyk 42 commits cloud-fan avatar cloud-fan 31 commits yaooqinn avatar yaooqinn 26 commits holdenk avatar holdenk 24 commits gengliangwang avatar gengliangwang 22 commits gatorsmile avatar gatorsmile 17 commits

142 contributors by commits. Profile dekhne ke liye kisi bhi developer par click karein.