From 3cf6385d2cbdcbcd8d6e83227ba4dd340a91e8d1 Mon Sep 17 00:00:00 2001 From: Bauke Date: Sun, 30 Oct 2022 20:59:33 +0100 Subject: [PATCH] Add common mdBook tasks. --- Makefile.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Makefile.toml b/Makefile.toml index 999c3e5..19332cb 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -40,3 +40,22 @@ args = [ "--skip-clean", "--target-dir=target/tarpaulin" ] + +[tasks.book] +workspace = false +install_crate = "mdbook" +command = "mdbook" + +[tasks.clean-book] +extend = "book" +args = ["clean", "hooked-book"] + +[tasks.build-book] +extend = "book" +dependencies = ["clean-book"] +args = ["build", "hooked-book"] + +[tasks.serve-book] +extend = "book" +dependencies = ["clean-book"] +args = ["serve", "hooked-book"]