Created
January 19, 2017 00:37
-
-
Save steveh/57cee3dd827e954a905ad644942ae9a1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "pathname" | |
root = Pathname.new(".") | |
libs = root.children.select(&:directory?).collect(&:realpath) | |
libs.each do |lib| | |
Dir.chdir(lib.realpath.to_s) do | |
system "yard" | |
end | |
end | |
args = ["yard", "server", "-m"] + libs.collect(&:basename).collect(&:to_s).flat_map { |lib| [lib, "#{lib}/.yardoc"] } | |
exec args.join(" ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment