summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authortakahashim <[email protected]>2015-10-09 11:35:55 +0900
committertakahashim <[email protected]>2015-10-09 11:48:51 +0900
commitf377753b16d5c3f9c527999014f3d78e4acf05f1 (patch)
tree4840cad74930cdc81ead08e5af6c280f134092af /Rakefile
parent02a6d866bafc31efa0d583524f38232b848f0e58 (diff)
downloadmruby-f377753b16d5c3f9c527999014f3d78e4acf05f1.tar.gz
mruby-f377753b16d5c3f9c527999014f3d78e4acf05f1.zip
fix `rake doc` error
using mrbdoc
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 3e03b1096..3021bcc8e 100644
--- a/Rakefile
+++ b/Rakefile
@@ -139,5 +139,10 @@ end
desc 'generate document'
task :doc do
- load "#{MRUBY_ROOT}/doc/language/generator.rb"
+ begin
+ sh "mrbdoc"
+ rescue
+ puts "ERROR: To generate documents, you should install yard-mruby gem."
+ puts " $ gem install yard-mruby"
+ end
end