class Mkdocs < Formula include Language::Python::Virtualenv desc "Project documentation with Markdown" homepage "https://www.mkdocs.org/" url "https://files.pythonhosted.org/packages/89/10/f619044414b7d8605fdb560dac98c5ffcaeb44ef6fe58f08d24b1595c9a5/mkdocs-1.4.1.tar.gz" sha256 "07ed90be4062e4ef732bbac2623097b9dca35c67b562c38cfd0bfbc7151758c1" license "BSD-2-Clause" bottle do sha256 cellar: :any_skip_relocation, arm64_monterey: "dc54b000a7f27c6a8d2324bccb2688c397afafeab017d6a13a75051ed7dd92e2" sha256 cellar: :any_skip_relocation, arm64_big_sur: "4f938f7935f2dfb7d0c58a58d90b666f2e13e91def8b91b0271b522a073914ec" sha256 cellar: :any_skip_relocation, monterey: "53e720fa5b11fa5dde00271a540356334d5dc5d916bee02962b4db9549932f6f" sha256 cellar: :any_skip_relocation, big_sur: "7499a2e53ef5c47c9693e11b5c8d88778ebfde756453ab799a10ef4ce8b22551" sha256 cellar: :any_skip_relocation, catalina: "9c942a0e78c669f552a5c0ab49f858907ed920a123e13460ab66b0e9447a2507" sha256 cellar: :any_skip_relocation, x86_64_linux: "86141fa381e479cd2fa8d7651b5925808d64b867fbfa4ac323207dce80be8a55" end depends_on "python@3.10" depends_on "pyyaml" depends_on "six" resource "click" do url "https://files.pythonhosted.org/packages/59/87/84326af34517fca8c58418d148f2403df25303e02736832403587318e9e8/click-8.1.3.tar.gz" sha256 "7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e" end resource "ghp-import" do url "https://files.pythonhosted.org/packages/d9/29/d40217cbe2f6b1359e00c6c307bb3fc876ba74068cbab3dde77f03ca0dc4/ghp-import-2.1.0.tar.gz" sha256 "9c535c4c61193c2df8871222567d7fd7e5014d835f97dc7b7439069e2413d343" end resource "Jinja2" do url "https://files.pythonhosted.org/packages/7a/ff/75c28576a1d900e87eb6335b063fab47a8ef3c8b4d88524c4bf78f670cce/Jinja2-3.1.2.tar.gz" sha256 "31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852" end resource "Markdown" do url "https://files.pythonhosted.org/packages/d6/58/79df20de6e67a83f0d0bbfe6c19bb82adf68cdf362885257eb01099f930a/Markdown-3.3.7.tar.gz" sha256 "cbb516f16218e643d8e0a95b309f77eb118cb138d39a4f27851e6a63581db874" end resource "MarkupSafe" do url "https://files.pythonhosted.org/packages/1d/97/2288fe498044284f39ab8950703e88abbac2abbdf65524d576157af70556/MarkupSafe-2.1.1.tar.gz" sha256 "7f91197cc9e48f989d12e4e6fbc46495c446636dfc81b9ccf50bb0ec74b91d4b" end resource "mergedeep" do url "https://files.pythonhosted.org/packages/3a/41/580bb4006e3ed0361b8151a01d324fb03f420815446c7def45d02f74c270/mergedeep-1.3.4.tar.gz" sha256 "0096d52e9dad9939c3d975a774666af186eda617e6ca84df4c94dec30004f2a8" end resource "packaging" do url "https://files.pythonhosted.org/packages/df/9e/d1a7217f69310c1db8fdf8ab396229f55a699ce34a203691794c5d1cad0c/packaging-21.3.tar.gz" sha256 "dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb" end resource "pyparsing" do url "https://files.pythonhosted.org/packages/71/22/207523d16464c40a0310d2d4d8926daffa00ac1f5b1576170a32db749636/pyparsing-3.0.9.tar.gz" sha256 "2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb" end resource "python-dateutil" do url "https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2.8.2.tar.gz" sha256 "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86" end resource "pyyaml_env_tag" do url "https://files.pythonhosted.org/packages/fb/8e/da1c6c58f751b70f8ceb1eb25bc25d524e8f14fe16edcce3f4e3ba08629c/pyyaml_env_tag-0.1.tar.gz" sha256 "70092675bda14fdec33b31ba77e7543de9ddc88f2e5b99160396572d11525bdb" end resource "watchdog" do url "https://files.pythonhosted.org/packages/42/f7/da8e889f8626786eac9454e8d2718fc79359ed517be20cdd50c647167d39/watchdog-2.1.9.tar.gz" sha256 "43ce20ebb36a51f21fa376f76d1d4692452b2527ccd601950d69ed36b9e21609" end def install virtualenv_install_with_resources end test do # build a very simple site that uses the "readthedocs" theme. (testpath/"mkdocs.yml").write <<~EOS site_name: MkLorum nav: - Home: index.md theme: readthedocs EOS mkdir testpath/"docs" (testpath/"docs/index.md").write <<~EOS # A heading And some deeply meaningful prose. EOS system "#{bin}/mkdocs", "build", "--clean" end end