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.28.2/docfx.zip" sha256 "e9111fcb104bd5e8262922b6929cf2acb69f0229cfc305cf8da40f8008a5d8d4" 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