From 96366c93d2f37f671eb416a1c6bea859b9bf7428 Mon Sep 17 00:00:00 2001
From: Ghislain Durif <gd.dev@libertymail.net>
Date: Tue, 24 Oct 2023 14:34:10 +0200
Subject: [PATCH] add files to webpage + render directly to 'public' directory

---
 .gitlab-ci.yml | 5 +----
 _quarto.yml    | 6 ++++++
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4deb55b..82efd11 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,10 +13,7 @@ pages:
       Rscript -e "install.packages('openxlsx')"
       #session 4
       Rscript -e "install.packages(c('ghibli', 'nycflights13','viridis','ggrepel'))"
-    - |
-      quarto render
-      mkdir public
-      cp -r _book/* public/
+    - quarto render
   interruptible: true
   artifacts:
     paths:
diff --git a/_quarto.yml b/_quarto.yml
index d0af4c8..6f4cf18 100644
--- a/_quarto.yml
+++ b/_quarto.yml
@@ -1,5 +1,11 @@
 project:
   type: book
+  resources:
+    - "session_2/mpg.csv"
+    - "session_3/gapminder.xlsx"
+    - "session_4/Expression_matrice_pivot_longer_DEGs_GSE86356.csv"
+    - "session_4/EWang_Tibialis_DEGs_GRCH37-87_GSE86356.csv"
+  output-dir: public
 
 book:
   title: "R for beginners"
-- 
GitLab