From 37222bd307cb2d00a1528a05eacff8b80dc41e50 Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Mon, 3 Feb 2020 10:19:54 +0100
Subject: [PATCH] relative symlinks

---
 .ci/deploy.sh | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/.ci/deploy.sh b/.ci/deploy.sh
index f4ec4710..34afa749 100644
--- a/.ci/deploy.sh
+++ b/.ci/deploy.sh
@@ -9,6 +9,12 @@ echo $rootDir
 rm -rf $rootDir/public
 mkdir $rootDir/public
 
+# create img folders
+mkdir $rootDir/public/img
+mkdir $rootDir/public/img/unstable
+mkdir $rootDir/public/img/latest
+mkdir $rootDir/public/img/stable
+
 # loop through all the presentations
 nBlades=0
 for d in $(find . -maxdepth 1 -type d)
@@ -31,12 +37,6 @@ do
                 mkdir $rootDir/public/$BLADE/latest
                 mkdir $rootDir/public/$BLADE/stable
 
-                # create img folders
-                mkdir $rootDir/public/img
-                mkdir $rootDir/public/img/unstable
-                mkdir $rootDir/public/img/latest
-                mkdir $rootDir/public/img/stable
-
                 # change to the blade directory to be built
                 cd $BLADE
 
@@ -61,7 +61,7 @@ do
                 # link to the img directory
                 mv $rootDir/public/$BLADE/unstable/slides/img/* $rootDir/public/img/unstable/.
                 rm -rf $rootDir/public/$BLADE/unstable/slides/img
-                ln -s $rootDir/public/img/unstable $rootDir/public/$BLADE/unstable/slides/img
+                ln -s ../../../img/unstable $rootDir/public/$BLADE/unstable/slides/img
 
                 echo " > unstable built for file set ${BLADE}"
 
@@ -77,7 +77,7 @@ do
                 # link to the img directory
                 mv $rootDir/public/$BLADE/stable/slides/img/* $rootDir/public/img/stable/.
                 rm -rf $rootDir/public/$BLADE/stable/slides/img
-                ln -s $rootDir/public/img/stable $rootDir/public/$BLADE/stable/slides/img
+                ln -s ../../../img/stable $rootDir/public/$BLADE/stable/slides/img
 
                 echo " > stable built for file set ${BLADE}"
 
@@ -93,7 +93,7 @@ do
                 # link to the img directory
                 mv $rootDir/public/$BLADE/latest/slides/img/* $rootDir/public/img/latest/.
                 rm -rf $rootDir/public/$BLADE/latest/slides/img
-                ln -s $rootDir/public/img/latest $rootDir/public/$BLADE/latest/slides/img
+                ln -s ../../../img/latest $rootDir/public/$BLADE/latest/slides/img
 
                 echo " > latest built for file set ${BLADE}"
 
-- 
GitLab