diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cff277a189d923b957ea9dd43f6853d414b4aaef..dc45ce28d1d1ddf8249f9c8f6f21b03042cb6585 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,10 +13,12 @@ build:
   script:
     - "./gradlew relast"
     - "./gradlew assemble"
+    - "./gradlew generateGrammarDiagrams"
   artifacts:
     paths:
       - "src/gen/java"
       - "src/gen/jastadd"
+      - "src/gen/resources"
 
 test:
   image: openjdk:11
@@ -58,9 +60,6 @@ ragdoc_view:
     - OUTPUT_DIR=$(pwd -P)/pages/docs/ragdoc
     - cd /ragdoc-view/src/ && rm -rf data && ln -s $DATA_DIR
     - /ragdoc-view/build-view.sh --output-path=$OUTPUT_DIR
-  only:
-    - tests/openapi-generator
-    - main
   artifacts:
     paths:
       - "pages/docs/ragdoc"
@@ -74,10 +73,8 @@ pages:
   before_script:
     - pip install -r pages/requirements.txt
   script:
+    - cp -r src/gen/resources/diagrams/ pages/docs/diagrams
     - cd pages && mkdocs build
   artifacts:
     paths:
-      - public/
-  only:
-    - tests/openapi-generator
-    - main
+      - public/
\ No newline at end of file
diff --git a/pages/docs/index.md b/pages/docs/index.md
index 9f7cda8ed5fcaff95eb3e5566a6609dc61696f6b..19e436a3fce9dd0313eeeaf341903c3093b4b2e6 100644
--- a/pages/docs/index.md
+++ b/pages/docs/index.md
@@ -1 +1,3 @@
-Index
\ No newline at end of file
+Index
+
+![](diagrams/grammar/uml.png)
\ No newline at end of file