docs: refactor and update
diff --git a/Earthfile b/Earthfile
index 2b6d89a..0ef8ed3 100644
--- a/Earthfile
+++ b/Earthfile
@@ -157,3 +157,22 @@
   WORKDIR /src
   COPY . /src
   RUN --secret GITHUB_TOKEN go run ./cmd/atmosphere-ci image repo sync ${project}
+
+mkdocs-image:
+  FROM ghcr.io/squidfunk/mkdocs-material:9.5.4
+  RUN pip install \
+    mkdocs-literate-nav
+  SAVE IMAGE mkdocs
+
+mkdocs-serve:
+  LOCALLY
+  WITH DOCKER --load=+mkdocs-image
+    RUN docker run --rm -p 8000:8000 -v ${PWD}:/docs mkdocs
+  END
+
+mkdocs-build:
+  FROM +mkdocs-image
+  COPY . /docs
+  RUN mkdocs build
+  RUN --push --secret GITHUB_TOKEN git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/vexxhost/magnum-cluster-api.git
+  RUN --push mkdocs gh-deploy --force