generate the documents with rdoc

## How to generate the documents

$ sudo gem install bundler
$ bundle install
$ rake rdoc
This commit is contained in:
Watson
2012-10-24 22:22:00 +09:00
parent e7801b1981
commit e71276ca21
5 changed files with 43 additions and 1 deletions

2
.gitignore vendored
View File

@@ -15,6 +15,8 @@ doc/.yardoc
doc/*.html
doc/docset
rdoc/
lib/motion/version.rb
pkg/*.pkg

3
Gemfile Normal file
View File

@@ -0,0 +1,3 @@
source :rubygems
gem "rdoc", :github => "Watson1978/rdoc", :branch => "macruby"

18
Gemfile.lock Normal file
View File

@@ -0,0 +1,18 @@
GIT
remote: git://github.com/Watson1978/rdoc.git
revision: 872efa77c63aaafe56755c0d2de3f60286cddf12
branch: macruby
specs:
rdoc (3.12.20121024213649)
json (~> 1.4)
GEM
remote: http://rubygems.org/
specs:
json (1.7.5)
PLATFORMS
ruby
DEPENDENCIES
rdoc!

View File

@@ -166,3 +166,22 @@ task :upload do
AWS::S3::S3Object.store('rubymotion/releases/Latest', PROJECT_VERSION, WEBSITE_BUCKET_NAME)
puts "Done!"
end
desc "Generate Documents with rdoc"
task :rdoc do
require 'fileutils'
OUTPUT_DIR = "rdoc"
TARGETS = %w{
array.c bignum.c class.c compar.c complex.c dir.c encoding.c enum.c
enumerator.c env.c error.c eval.c eval_error.c eval_jump.c eval_safe.c
file.c hash.c io.c kernel.c load.c marshal.c math.c numeric.c object.c
pack.c proc.c process.c random.c range.c rational.c re.c
signal.c sprintf.c string.c struct.c symbol.c thread.c time.c
transcode.c ucnv.c util.c variable.c vm_eval.c vm_method.c
NSArray.m NSDictionary.m NSString.m bridgesupport.cpp gcd.c objc.m
}
files = TARGETS.map{ |x| "vm/#{x}" }.join(" ")
FileUtils.rm_rf OUTPUT_DIR
sh "bundle exec rdoc #{files} --op #{OUTPUT_DIR}"
end

2
vm

Submodule vm updated: deb92332a9...944ef4b009