diff options
Diffstat (limited to 'doc/language/mrbdoc/mrbdoc.rb')
| -rwxr-xr-x | doc/language/mrbdoc/mrbdoc.rb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/language/mrbdoc/mrbdoc.rb b/doc/language/mrbdoc/mrbdoc.rb new file mode 100755 index 000000000..cd8ae3833 --- /dev/null +++ b/doc/language/mrbdoc/mrbdoc.rb @@ -0,0 +1,22 @@ +#!/usr/bin/env ruby + +$: << File.dirname(__FILE__) + '/lib' + +require 'mrbdoc_analyze' +require 'mrbdoc_docu' + +MRUBY_ROOT = ARGV[0] +DOC_ROOT = ARGV[1] + +raise ArgumentError.new 'mruby root missing!' if MRUBY_ROOT.nil? +raise ArgumentError.new 'doc root missing!' if DOC_ROOT.nil? + +mrbdoc = MRBDoc.new + +mrbdoc.analyze_code MRUBY_ROOT do |progress| + puts progress +end + +mrbdoc.write_documentation DOC_ROOT do |progress| + puts progress +end |
