Skip to content

Commit

Permalink
chore: add mdbook
Browse files Browse the repository at this point in the history
Closes #7.

Signed-off-by: winston <79978224+nekowinston@users.noreply.github.com>
  • Loading branch information
nekowinston committed Nov 4, 2023
1 parent f9de0d1 commit 965f3f0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Formula/mdbook-catppuccin.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class MdbookCatppuccin < Formula
desc "Soothing pastel theme for mdBook"
homepage "https://github.com/catppuccin/mdBook"
url "https://github.com/catppuccin/mdBook/archive/refs/tags/v2.0.1.tar.gz"
sha256 "75062a0e4561d0b067c8b200ba4fc7eb66df59e15e568de08bcf800ab76c8781"
license "MIT"
head "https://github.com/catppuccin/mdbook.git", branch: "main"

depends_on "rust" => :build

def install
system "cargo", "install", *std_cargo_args
end

test do
(testpath/"book.toml").write("")

system bin/"mdbook-catppuccin", "install"

assert_predicate (testpath/"theme/index.hbs"), :exist?
assert_predicate (testpath/"theme/catppuccin.css"), :exist?
assert_predicate (testpath/"theme/catppuccin-admonish.css"), :exist?
end
end

0 comments on commit 965f3f0

Please sign in to comment.