GithubHelp home page GithubHelp logo

spark-website's Introduction

Generating the website HTML

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

Building the site requires Jekyll 3.3.0 or newer. The easiest way to install jekyll is via a Ruby Gem. This will create a directory called site containing index.html as well as the rest of the compiled directories and files.

To install Jekyll and its required dependencies, execute sudo gem install jekyll rouge. See also https://github.com/apache/spark/blob/master/docs/README.md

You can generate the html website by running 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 jekyll serve which runs the web server on port 4000, then visit the site at http://localhost:4000.

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

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.

spark-website's People

Contributors

srowen avatar rxin avatar andyk avatar hyukjinkwon avatar dongjoon-hyun avatar mengxr avatar gatorsmile avatar cloud-fan avatar marmbrus avatar felixcheung avatar holdenk avatar wangyum avatar tgravescs avatar dbtsai avatar koeninger avatar yhuai avatar stanzhai avatar jerryshao avatar jiangxb1987 avatar sameeragarwal avatar maropu avatar mateiz avatar chrismattmann avatar jkbradley avatar kiszk avatar squito avatar foxish avatar shaneknapp avatar samelamin avatar liyinan926 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.