Skip to content

Commit

Permalink
rb - remove doc building task since it doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Oct 7, 2015
1 parent 8f9bd55 commit 18e0047
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
29 changes: 0 additions & 29 deletions rake-tasks/crazy_fun/mappings/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ def add_all(fun)
fun.add_mapping "ruby_test", RubyTest.new
fun.add_mapping "ruby_test", AddTestDependencies.new

fun.add_mapping "rubydocs", RubyDocs.new
fun.add_mapping "rubygem", RubyGem.new
end

Expand Down Expand Up @@ -106,34 +105,6 @@ def handle(fun, dir, args)
end
end

class RubyDocs
def handle(fun, dir, args)
files = args[:files] || raise("no :files specified for rubydocs")
output_dir = args[:output_dir] || raise("no :output_dir specified for rubydocs")

# we define a wrapper task to avoid calling require "yard" at parse time
desc 'Generate Ruby API docs'
task "//#{dir}:docs" do |t|
raise "yard is not installed, unable to generate docs" unless have_yard?
task = YARD::Rake::YardocTask.new { |yard|
yard.files = Array(files).map { |glob| Dir[glob] }.flatten
yard.options << "--verbose"
yard.options << "--readme" << args[:readme] if args.has_key?(:readme)
yard.options << "--output-dir" << output_dir
}

Rake::Task[task.name].invoke
end
end

def have_yard?
require 'yard'
true
rescue LoadError
false
end
end # RubyDocs

class RubyGem
def handle(fun, dir, args)
raise "no :gemspec for rubygem" unless args[:gemspec]
Expand Down
9 changes: 0 additions & 9 deletions rb/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@ rubygem(
]
)

rubydocs(
files = [
"rb/lib/**/*.rb",
"CHANGES"
],
readme = "rb/README.md",
output_dir = "docs/api/rb"
)

ruby_library(name = "common",
srcs = [
"lib/selenium/webdriver/common/**/*.rb",
Expand Down

0 comments on commit 18e0047

Please sign in to comment.