42aa1f0b23
Closes #31214. Signed-off-by: Dominyk Tiller <dominyktiller@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.38.1/docfx.zip"
|
|
sha256 "1720d20881bbe4a8a8299f500e26e6fbf063b085d4dd541c8d678624c66049da"
|
|
|
|
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
|