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.34/docfx.zip" sha256 "2d274dea990569def1e98aa0a9a4998aa608175bc70cdef858fb49511f7c4c7a" 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