summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorarngo <[email protected]>2022-02-02 22:17:11 -0500
committerarngo <[email protected]>2022-02-02 22:17:11 -0500
commit4e9a5b19c603184c3340fd96d72edf44b3334bbb (patch)
tree51689392b886e1af92e91206edc3fd3b486d4605 /Rakefile
parent08da136b82adfd4f74973c03da5e4584ac50c03d (diff)
downloadmruby-raylib-4e9a5b19c603184c3340fd96d72edf44b3334bbb.tar.gz
mruby-raylib-4e9a5b19c603184c3340fd96d72edf44b3334bbb.zip
get yarddoc working for mruby c functions
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile21
1 files changed, 16 insertions, 5 deletions
diff --git a/Rakefile b/Rakefile
index ec69262..6993e3b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,9 +1,20 @@
require 'yard'
-task default: [:yard]
+task default: [:api]
+#task default: [:yard]
-YARD::Rake::YardocTask.new do |t|
- t.files = ['./mrblib/*', 'src/*']
- t.options = ['--output-dir', './docs', 'yardoc --markup=markdown|textile|rdoc(default)']
- t.stats_options = ['--list-undoc']
+#YARD::Rake::YardocTask.new do |t|
+# t.files = ['./mrblib/*', 'src/*']
+# t.options = ['--output-dir', './docs', 'yardoc --markup=markdown|textile|rdoc(default)', '--plugin mruby']
+# t.stats_options = ['--list-undoc']
+#end
+#
+desc 'generate yard docs'
+task :api do
+ begin
+ sh "mrbdoc"
+ rescue
+ puts "ERROR: To generate yard documentation, you should install yard-mruby gem."
+ puts " $ gem install yard-mruby yard-coderay"
+ end
end