From 7faff902913febd3a5b0edc8b8fa20fd5f6cfa87 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Mon, 1 Jan 2024 03:56:09 +0100
Subject: [PATCH] ci(earthly): Add docs command

---
 Earthfile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/Earthfile b/Earthfile
index 4bbff6094..7c5e0b1df 100644
--- a/Earthfile
+++ b/Earthfile
@@ -1,4 +1,4 @@
-VERSION 0.7
+VERSION --wait-block 0.7
 
 # images builds all container images in the Repository
 images:
@@ -43,3 +43,11 @@ enable-autoupdates:
     LOCALLY
     ARG --required node
     RUN kubectl label node "${node}" upgrade.shivering-isles.com/fedora-autoupdate=true
+
+# docs runs a local mdbook instance using koolbox that will listen on localhost:3000
+docs:
+    WAIT
+        BUILD ./images/koolbox+install
+    END
+    LOCALLY
+    RUN koolbox mdbook serve docs
-- 
GitLab