aboutsummaryrefslogtreecommitdiff
path: root/docs/_plugins
diff options
context:
space:
mode:
authorMatei Zaharia <matei@eecs.berkeley.edu>2012-09-25 15:46:18 -0700
committerMatei Zaharia <matei@eecs.berkeley.edu>2012-09-25 15:46:18 -0700
commite47e11720f7f51d720f98ad7dce959ac3ceef731 (patch)
treeb93ebc673b2f0ff2da61f1cc38b4925cfe76310e /docs/_plugins
parent30362a21e7e181c058a4f5979bc85f3b18fb5e70 (diff)
downloadspark-e47e11720f7f51d720f98ad7dce959ac3ceef731.tar.gz
spark-e47e11720f7f51d720f98ad7dce959ac3ceef731.tar.bz2
spark-e47e11720f7f51d720f98ad7dce959ac3ceef731.zip
Documentation updates
Diffstat (limited to 'docs/_plugins')
-rw-r--r--docs/_plugins/copy_api_dirs.rb38
1 files changed, 20 insertions, 18 deletions
diff --git a/docs/_plugins/copy_api_dirs.rb b/docs/_plugins/copy_api_dirs.rb
index 7fb98851cd..e61c105449 100644
--- a/docs/_plugins/copy_api_dirs.rb
+++ b/docs/_plugins/copy_api_dirs.rb
@@ -1,28 +1,30 @@
require 'fileutils'
include FileUtils
-projects = ["core", "examples", "repl", "bagel"]
+if ENV['SKIP_SCALADOC'] != '1'
+ projects = ["core", "examples", "repl", "bagel"]
-puts "Moving to project root and building scaladoc."
-curr_dir = pwd
-cd("..")
+ puts "Moving to project root and building scaladoc."
+ curr_dir = pwd
+ cd("..")
-puts "Running sbt/sbt doc from " + pwd + "; this may take a few minutes..."
-puts `sbt/sbt doc`
+ puts "Running sbt/sbt doc from " + pwd + "; this may take a few minutes..."
+ puts `sbt/sbt doc`
-puts "moving back into docs dir."
-cd("docs")
+ puts "moving back into docs dir."
+ cd("docs")
-# Copy over the scaladoc from each project into the docs directory.
-# This directory will be copied over to _site when `jekyll` command is run.
-projects.each do |project_name|
- source = "../" + project_name + "/target/scala-2.9.2/api"
- dest = "api/" + project_name
+ # Copy over the scaladoc from each project into the docs directory.
+ # This directory will be copied over to _site when `jekyll` command is run.
+ projects.each do |project_name|
+ source = "../" + project_name + "/target/scala-2.9.2/api"
+ dest = "api/" + project_name
- puts "echo making directory " + dest
- mkdir_p dest
+ puts "echo making directory " + dest
+ mkdir_p dest
- # From the rubydoc: cp_r('src', 'dest') makes src/dest, but this doesn't.
- puts "cp -r " + source + "/. " + dest
- cp_r(source + "/.", dest)
+ # From the rubydoc: cp_r('src', 'dest') makes src/dest, but this doesn't.
+ puts "cp -r " + source + "/. " + dest
+ cp_r(source + "/.", dest)
+ end
end