source: EcnlProtoTool/trunk/mruby-2.1.1/tasks/doc.rake@ 439

Last change on this file since 439 was 439, checked in by coas-nagasima, 4 years ago

mrubyを2.1.1に更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-ruby;charset=UTF-8
File size: 948 bytes
Line 
1desc 'generate document'
2task :doc => [:api_doc, :capi_doc] do
3
4end
5
6desc 'generate yard docs'
7task :api_doc do
8 begin
9 sh "mrbdoc"
10 rescue
11 puts "ERROR: To generate yard documentation, you should install yard-mruby gem."
12 puts " $ gem install yard-mruby yard-coderay"
13 end
14end
15
16desc 'generate doxygen docs'
17task :capi_doc do
18 begin
19 sh "doxygen Doxyfile"
20 rescue
21 puts "ERROR: To generate C API documents, you need Doxygen."
22 puts " $ sudo apt-get install doxygen"
23 end
24end
25
26desc 'clean all built docs'
27task :clean_api_doc do
28 rm_rf 'doc/api'
29end
30
31desc 'clean all built docs'
32task :clean_capi_doc do
33 rm_rf 'doc/capi'
34end
35
36desc 'clean all built docs'
37task :clean_doc => [:clean_api_doc, :clean_capi_doc] do
38end
39
40desc 'clean all built docs'
41task :view_api => [:api_doc] do
42 sh 'xdg-open doc/api/index.html'
43end
44
45desc 'clean all built docs'
46task :view_capi => [:capi_doc] do
47 sh 'xdg-open doc/capi/html/index.html'
48end
Note: See TracBrowser for help on using the repository browser.