aboutsummaryrefslogtreecommitdiff
path: root/docs/_plugins
diff options
context:
space:
mode:
authorDongjoon Hyun <dongjoon@apache.org>2016-12-14 21:29:20 -0800
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2016-12-14 21:29:20 -0800
commitec0eae486331c3977505d261676b77a33c334216 (patch)
tree7942c72e790c3a05f63fb8d062b5e06292b7d78f /docs/_plugins
parent5d510c693aca8c3fd3364b4453160bc8585ffc8e (diff)
downloadspark-ec0eae486331c3977505d261676b77a33c334216.tar.gz
spark-ec0eae486331c3977505d261676b77a33c334216.tar.bz2
spark-ec0eae486331c3977505d261676b77a33c334216.zip
[SPARK-18875][SPARKR][DOCS] Fix R API doc generation by adding `DESCRIPTION` file
## What changes were proposed in this pull request? Since Apache Spark 1.4.0, R API document page has a broken link on `DESCRIPTION file` because Jekyll plugin script doesn't copy the file. This PR aims to fix that. - Official Latest Website: http://spark.apache.org/docs/latest/api/R/index.html - Apache Spark 2.1.0-rc2: http://people.apache.org/~pwendell/spark-releases/spark-2.1.0-rc2-docs/api/R/index.html ## How was this patch tested? Manual. ```bash cd docs SKIP_SCALADOC=1 jekyll build ``` Author: Dongjoon Hyun <dongjoon@apache.org> Closes #16292 from dongjoon-hyun/SPARK-18875.
Diffstat (limited to 'docs/_plugins')
-rw-r--r--docs/_plugins/copy_api_dirs.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/_plugins/copy_api_dirs.rb b/docs/_plugins/copy_api_dirs.rb
index f926d67e6b..71e643244e 100644
--- a/docs/_plugins/copy_api_dirs.rb
+++ b/docs/_plugins/copy_api_dirs.rb
@@ -142,4 +142,7 @@ if not (ENV['SKIP_API'] == '1')
puts "cp -r R/pkg/html/. docs/api/R"
cp_r("R/pkg/html/.", "docs/api/R")
+ puts "cp R/pkg/DESCRIPTION docs/api"
+ cp("R/pkg/DESCRIPTION", "docs/api")
+
end