You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2015/09/17 20:05:34 UTC

spark git commit: [SPARK-10650] Clean before building docs

Repository: spark
Updated Branches:
  refs/heads/master 36d8b278d -> e0dc2bc23


[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 <mi...@databricks.com>

Closes #8787 from marmbrus/testsInDocs.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/e0dc2bc2
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/e0dc2bc2
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/e0dc2bc2

Branch: refs/heads/master
Commit: e0dc2bc232206d2f4da4278502c1f88babc8b55a
Parents: 36d8b27
Author: Michael Armbrust <mi...@databricks.com>
Authored: Thu Sep 17 11:05:30 2015 -0700
Committer: Michael Armbrust <mi...@databricks.com>
Committed: Thu Sep 17 11:05:30 2015 -0700

----------------------------------------------------------------------
 docs/_plugins/copy_api_dirs.rb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/e0dc2bc2/docs/_plugins/copy_api_dirs.rb
----------------------------------------------------------------------
diff --git a/docs/_plugins/copy_api_dirs.rb b/docs/_plugins/copy_api_dirs.rb
index 15ceda1..01718d9 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"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org