From 7f8e80c64513ed9c766bf05a3c13580da022a175 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Fri, 17 May 2024 01:58:51 +0300 Subject: [PATCH] chore(docs): Add just task to deploy the book --- Justfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Justfile b/Justfile index 8b2c4df..b08b238 100644 --- a/Justfile +++ b/Justfile @@ -28,3 +28,24 @@ _default: echo "Checking MSRV ({{msrv}})" cargo +{{msrv}} check -q echo "MSRV is correct" + +# Deploy the book to Github Pages +@deploy: + #!/usr/bin/env bash + mdbook build + cd book + git init . + git checkout -B gh-pages + touch .nojekyll + + git add . + git commit -m "Deploy the book to github pages" + git remote add origin "https://github.com/TheAwiteb/lprs-book" + git push origin gh-pages -f + cd .. + rm -fr book + +# Install book dependencies +@install-book-tools: + cargo install mdbook +