aboutsummaryrefslogtreecommitdiff
path: root/docs/README.md
diff options
context:
space:
mode:
authorAndy Konwinski <andyk@berkeley.edu>2012-09-12 19:27:44 -0700
committerAndy Konwinski <andyk@berkeley.edu>2012-09-12 19:27:44 -0700
commit35adccd0088e5f0baa0eb97f8ca21e0d1c1ff71f (patch)
tree704f740ed4d3977b429f648e1efdf12a5a964915 /docs/README.md
parentbf54ad2fe0926ad3f277500ad7280fabb1cd7257 (diff)
downloadspark-35adccd0088e5f0baa0eb97f8ca21e0d1c1ff71f.tar.gz
spark-35adccd0088e5f0baa0eb97f8ca21e0d1c1ff71f.tar.bz2
spark-35adccd0088e5f0baa0eb97f8ca21e0d1c1ff71f.zip
Adds syntax highlighting (via pygments), and some style tweaks to make things
easier to read.
Diffstat (limited to 'docs/README.md')
-rw-r--r--docs/README.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/README.md b/docs/README.md
index e2ae05722f..9f179a437a 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -4,10 +4,25 @@ This readme will walk you through navigating and building the Spark documentatio
Read on to learn more about viewing documentation in plain text (i.e., markdown) or building the documentation yourself that corresponds to whichever version of Spark you currently have checked out of revision control.
+## Generating the Documentation HTML
+
We include the Spark documentation as part of the source (as opposed to using a hosted wiki as the definitive documentation) to enable the documentation to evolve along with the source code and be captured by revision control (currently git). This way the code automatically includes the version of the documentation that is relevant regardless of which version or release you have checked out or downloaded.
In this directory you will find textfiles formatted using Markdown, with an ".md" suffix. You can read those text files directly if you want. Start with index.md.
To make things quite a bit prettier and make the links easier to follow, generate the html version of the documentation based on the src directory by running `jekyll` in the docs directory (You will need to have Jekyll installed, the easiest way to do this is via a Ruby Gem). This will create a directory called _site which will contain index.html as well as the rest of the compiled files. Read more about Jekyll at https://github.com/mojombo/jekyll/wiki.
+## Pygments
+
+We also use pygments (http://pygments.org) for syntax highlighting, so you will also need to install that (it requires Python) by running `sudo easy_install Pygments`.
+
+To mark a block of code in your markdown to be syntax highlighted by jekyll during the compile phase, use the following sytax:
+
+ {% highlight scala %}
+ // Your scala code goes here, you can replace scala with many other
+ // supported languages too.
+ {% endhighlight %}
+
+## Scaladoc
+
You can build just the Spark scaladoc by running `sbt/sbt doc` from the SPARK_PROJECT_ROOT directory.