Repository: spark Updated Branches: refs/heads/branch-1.5 88176d1a2 -> fd58ed48d
[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 <[email protected]> Closes #8787 from marmbrus/testsInDocs. (cherry picked from commit e0dc2bc232206d2f4da4278502c1f88babc8b55a) Signed-off-by: Michael Armbrust <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/fd58ed48 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/fd58ed48 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/fd58ed48 Branch: refs/heads/branch-1.5 Commit: fd58ed48d5d10167b7667d2243fbb3d75b93c0fc Parents: 88176d1 Author: Michael Armbrust <[email protected]> Authored: Thu Sep 17 11:05:30 2015 -0700 Committer: Michael Armbrust <[email protected]> Committed: Thu Sep 17 11:05:42 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/fd58ed48/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: [email protected] For additional commands, e-mail: [email protected]
