From f923cbeb6289dceae889a496744dde3be2d82141 Mon Sep 17 00:00:00 2001
From: Jueun Park <s5616012@mailbox.tu-dresden.de>
Date: Thu, 17 Mar 2022 09:22:06 +0900
Subject: [PATCH] edited .gitlab-ci.yml and index.md

---
 .gitlab-ci.yml      | 11 ++++-------
 pages/docs/index.md |  4 +++-
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cff277a1..dc45ce28 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 9f7cda8e..19e436a3 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
-- 
GitLab