77b9775a8d
Closes #39276. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
25 lines
659 B
Ruby
25 lines
659 B
Ruby
class Docfx < Formula
|
|
desc "Tools for building and publishing API documentation for .NET projects"
|
|
homepage "https://dotnet.github.io/docfx/"
|
|
url "https://github.com/dotnet/docfx/releases/download/v2.42.1/docfx.zip"
|
|
sha256 "e290c9dba3c439d4b7b50a53b21a0e4fd3b1204687f5fa23387fbbd67ace99c6"
|
|
|
|
bottle :unneeded
|
|
|
|
depends_on "mono"
|
|
|
|
def install
|
|
libexec.install Dir["*"]
|
|
|
|
(bin/"docfx").write <<~EOS
|
|
#!/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
|