From 1c6ea12f5fcacd05b60e9e3f1b95157e07ea5477 Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Tue, 16 Jul 2024 21:21:10 +0200 Subject: [PATCH] add experimental mdbook plugins for epub and pdf generation --- Handbook/GNUmakefile | 4 ++++ Handbook/book.toml | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/Handbook/GNUmakefile b/Handbook/GNUmakefile index fdb45e8e..cc0376d3 100644 --- a/Handbook/GNUmakefile +++ b/Handbook/GNUmakefile @@ -227,6 +227,10 @@ install-build-deps: @echo "Installing build dependencies if they have not already been installed..." @cargo install mdbook --vers "^0.4" --locked @cargo install xq --locked + #@cargo install mdbook-linkcheck --locked + @cargo install --git https://github.com/typst/typst typst-cli --locked + @cargo install mdbook-typst --locked + @cargo install mdbook-epub --locked ################################################################################ # Make Targets - mdBook diff --git a/Handbook/book.toml b/Handbook/book.toml index 56543857..fc4b1e24 100644 --- a/Handbook/book.toml +++ b/Handbook/book.toml @@ -84,3 +84,11 @@ limit-results = 128 teaser-word-count = 64 use-boolean-and = true +#[output.linkcheck] + +[output.typst] + +[output.typst.output] +format = "pdf" + +[output.epub]