1 desc 'generate document'
2 task :doc => [:api_doc, :capi_doc] do
6 desc 'generate yard docs'
11 puts "ERROR: To generate yard documentation, you should install yard-mruby gem."
12 puts " $ gem install yard-mruby yard-coderay"
16 desc 'generate doxygen docs'
21 puts "ERROR: To generate C API documents, you need Doxygen."
22 puts " $ sudo apt-get install doxygen"
26 desc 'clean all built docs'
27 task :clean_api_doc do
31 desc 'clean all built docs'
32 task :clean_capi_doc do
36 desc 'clean all built docs'
37 task :clean_doc => [:clean_api_doc, :clean_capi_doc] do
40 desc 'clean all built docs'
41 task :view_api => [:api_doc] do
42 sh 'xdg-open doc/api/index.html'
45 desc 'clean all built docs'
46 task :view_capi => [:capi_doc] do
47 sh 'xdg-open doc/capi/html/index.html'