2017-09-04 16:13:22 +00:00
|
|
|
class Docfx < Formula
|
|
|
|
desc "Tools for building and publishing API documentation for .NET projects"
|
|
|
|
homepage "https://dotnet.github.io/docfx/"
|
2018-02-02 10:54:55 +00:00
|
|
|
url "https://github.com/dotnet/docfx/releases/download/v2.31/docfx.zip"
|
|
|
|
sha256 "da496650df2e26bc91e2578624b19edb7fdba0477ef87ad18207efa686a0b0cc"
|
2017-09-04 16:13:22 +00:00
|
|
|
|
|
|
|
bottle :unneeded
|
|
|
|
|
|
|
|
depends_on "mono"
|
|
|
|
|
|
|
|
def install
|
|
|
|
libexec.install Dir["*"]
|
|
|
|
|
2017-10-18 10:10:48 +00:00
|
|
|
(bin/"docfx").write <<~EOS
|
2017-09-04 16:13:22 +00:00
|
|
|
#!/bin/bash
|
|
|
|
mono #{libexec}/docfx.exe "$@"
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"docfx", "init", "-q"
|
|
|
|
assert_predicate testpath/"docfx_project/docfx.json", :exist?,
|
|
|
|
"Failed to generate project"
|
|
|
|
end
|
|
|
|
end
|