aboutsummaryrefslogtreecommitdiff
path: root/docs/_plugins
diff options
context:
space:
mode:
authorMichael Armbrust <michael@databricks.com>2015-09-17 11:05:30 -0700
committerMichael Armbrust <michael@databricks.com>2015-09-17 11:05:30 -0700
commite0dc2bc232206d2f4da4278502c1f88babc8b55a (patch)
tree7acb742f53bb2ffb6d74eb4d58af00c32c768faf /docs/_plugins
parent36d8b278d82e788bf583e8438fac524d0023311d (diff)
downloadspark-e0dc2bc232206d2f4da4278502c1f88babc8b55a.tar.gz
spark-e0dc2bc232206d2f4da4278502c1f88babc8b55a.tar.bz2
spark-e0dc2bc232206d2f4da4278502c1f88babc8b55a.zip
[SPARK-10650] Clean before building docs
The [published docs for 1.5.0](http://spark.apache.org/docs/1.5.0/api/java/org/apache/spark/streaming/) have a bunch of test classes in them. The only way I can reproduce this is to `test:compile` before running `unidoc`. To prevent this from happening again, I've added a clean before doc generation. Author: Michael Armbrust <michael@databricks.com> Closes #8787 from marmbrus/testsInDocs.
Diffstat (limited to 'docs/_plugins')
-rw-r--r--docs/_plugins/copy_api_dirs.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/_plugins/copy_api_dirs.rb b/docs/_plugins/copy_api_dirs.rb
index 15ceda11a8..01718d98df 100644
--- a/docs/_plugins/copy_api_dirs.rb
+++ b/docs/_plugins/copy_api_dirs.rb
@@ -26,12 +26,15 @@ if not (ENV['SKIP_API'] == '1')
curr_dir = pwd
cd("..")
- puts "Running 'build/sbt -Pkinesis-asl compile unidoc' from " + pwd + "; this may take a few minutes..."
- puts `build/sbt -Pkinesis-asl compile unidoc`
+ puts "Running 'build/sbt -Pkinesis-asl clean compile unidoc' from " + pwd + "; this may take a few minutes..."
+ puts `build/sbt -Pkinesis-asl clean compile unidoc`
puts "Moving back into docs dir."
cd("docs")
+ puts "Removing old docs"
+ puts `rm -rf api`
+
# Copy over the unified ScalaDoc for all projects to api/scala.
# This directory will be copied over to _site when `jekyll` command is run.
source = "../target/scala-2.10/unidoc"