diff --git a/pyproject.toml b/pyproject.toml
index 0feecc1fcdc715c676b80e09c1760501d5ce8779..a8838343b59fa79f2b0df864fe3b5da809bdf5c2 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -64,11 +64,10 @@ dependencies = [
 	"pytest",
  ]
  
-[tool.hatch.envs.documentation]
+[tool.hatch.envs.docs]
 dependencies = [
     "mkdocs",
-    "mkdocs-material",
-    "mkdocs-rtd-theme"
+    "mkdocs-material"
 ] 
 
 [tool.hatch.envs.dev]
diff --git a/readthedocs.yml b/readthedocs.yml
index 3b35eef9b9f350cfe1707f6639daf4dac5b1f786..d3b1499dabc956b035aa0f1c656bc2bda2ee8879 100644
--- a/readthedocs.yml
+++ b/readthedocs.yml
@@ -9,6 +9,10 @@ build:
   os: ubuntu-24.04
   tools:
     python: "3.12"
+  command:
+    - pip install hatch               # Manually install hatch
+    - hatch shell docs
+    - mkdocs build     
 
 mkdocs:
   configuration: mkdocs.yml
@@ -17,7 +21,7 @@ mkdocs:
 
 python:
   install:
-    - method: hatch
+    - method: pip
       path: .