mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-05-17 19:13:31 +08:00
generate the documents with rdoc
## How to generate the documents $ sudo gem install bundler $ bundle install $ rake rdoc
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -15,6 +15,8 @@ doc/.yardoc
|
||||
doc/*.html
|
||||
doc/docset
|
||||
|
||||
rdoc/
|
||||
|
||||
lib/motion/version.rb
|
||||
|
||||
pkg/*.pkg
|
||||
|
||||
3
Gemfile
Normal file
3
Gemfile
Normal file
@@ -0,0 +1,3 @@
|
||||
source :rubygems
|
||||
|
||||
gem "rdoc", :github => "Watson1978/rdoc", :branch => "macruby"
|
||||
18
Gemfile.lock
Normal file
18
Gemfile.lock
Normal 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!
|
||||
19
Rakefile
19
Rakefile
@@ -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
2
vm
Submodule vm updated: deb92332a9...944ef4b009
Reference in New Issue
Block a user