mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
add yard documentation as a rake task
This commit is contained in:
parent
d9a11baba4
commit
7f5dd34d23
2 changed files with 10 additions and 0 deletions
1
Gemfile
1
Gemfile
|
@ -4,5 +4,6 @@ group :development do
|
|||
gem "hoe"
|
||||
gem "hoe-gemspec"
|
||||
gem "rake-compiler"
|
||||
gem "yard"
|
||||
end
|
||||
|
||||
|
|
9
Rakefile
9
Rakefile
|
@ -6,6 +6,9 @@ require 'hoe'
|
|||
require 'rake/extensiontask'
|
||||
require 'fileutils'
|
||||
require './lib/opencv/psyched_yaml'
|
||||
require 'yard'
|
||||
require 'yard/rake/yardoc_task'
|
||||
require './yard_extension'
|
||||
|
||||
SO_FILE = 'opencv.so'
|
||||
|
||||
|
@ -87,4 +90,10 @@ task 'gem:precompile' => ['gem'] do
|
|||
FileUtils.rm_rf tmp_dir
|
||||
end
|
||||
|
||||
# yard
|
||||
YARD::Rake::YardocTask.new do |t|
|
||||
t.files = ['lib/**/*.rb', 'ext/**/*.cpp']
|
||||
end
|
||||
|
||||
# vim: syntax=ruby
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue