diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml
index 7ca6161..6947d72 100644
--- a/.github/workflows/doc.yml
+++ b/.github/workflows/doc.yml
@@ -32,8 +32,10 @@ jobs:
         python -m pip install --upgrade pip
         pip install Markdown==3.4.3 rdflib==6.3.2  # Add any other dependencies if needed
 
-    - name: Install Pandoc
+    - name: Install dependencies and Pandoc
       run: |
+        python -m pip install --upgrade pip
+        pip install Markdown==3.4.3 rdflib==6.3.2
         sudo apt-get update
         sudo apt-get install -y pandoc