Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • R3/school/courses
  • vilem.ded/courses
  • todor.kondic/courses
  • noua.toukourou/courses
  • nene.barry/courses
  • laurent.heirendt/courses
  • marina.popleteeva/courses
  • jenny.tran/courses
8 results
Show changes
Commits on Source (286)
Showing
with 36 additions and 24 deletions
...@@ -10,9 +10,9 @@ rm -rf $rootDir/public ...@@ -10,9 +10,9 @@ rm -rf $rootDir/public
rm -rf $rootDir/theme rm -rf $rootDir/theme
mkdir $rootDir/public mkdir $rootDir/public
if [[ $CI_COMMIT_BRANCH == "develop" ]]; then if [[ $CI_COMMIT_REF_NAME == "develop" ]]; then
version="latest"; version="latest";
elif [[ $CI_COMMIT_BRANCH == "master" ]]; then elif [[ $CI_COMMIT_REF_NAME == "master" ]]; then
version="stable"; version="stable";
else else
version="unstable"; version="unstable";
...@@ -33,7 +33,7 @@ nBlades=0 ...@@ -33,7 +33,7 @@ nBlades=0
for d in $(find . -maxdepth 1 -type d) for d in $(find . -maxdepth 1 -type d)
do do
if [[ "${d}" == *20* ]]; then if [[ "${d}" == *20* ]]; then
cd "${d}" pushd "${d}"
echo "changed to ${d}" echo "changed to ${d}"
for d1 in $(find . -maxdepth 1 -type d) for d1 in $(find . -maxdepth 1 -type d)
do do
...@@ -46,20 +46,23 @@ do ...@@ -46,20 +46,23 @@ do
# create the required folders in public # create the required folders in public
mkdir -p $rootDir/public/$BLADE/$version mkdir -p $rootDir/public/$BLADE/$version
# change to the blade directory to be built echo "going to $BLADE..."
cd $BLADE pushd $BLADE
# run contribute # run contribute
cp ../../template/Gruntfile.coffee . cp -v ../../template/Gruntfile.coffee .
ln -s ../../theme/package.json package.json ln -sv ../../theme/package.json package.json
ln -s ../../theme theme ln -sv ../../theme theme
# install npm # install npm
yarn global add grunt-cli generator-reveal echo "installing deps"
yarn add grunt-cli generator-reveal grunt
yarn install yarn install
grunt dist echo "running dist"
mv public/* $rootDir/public/$BLADE/$version/. yarn exec grunt dist
echo "copying to common public dir"
cp -rLv public/* $rootDir/public/$BLADE/$version/.
echo " > latest built for file set ${BLADE}" echo " > latest built for file set ${BLADE}"
...@@ -75,10 +78,10 @@ do ...@@ -75,10 +78,10 @@ do
echo "autoredirect file set" echo "autoredirect file set"
# move back out # move back out
cd .. popd
echo " > -----------------------------------------------------" echo " > -----------------------------------------------------"
fi fi
done done
cd "${rootDir}" popd
fi fi
done done
...@@ -19,7 +19,7 @@ localroot = os.getcwd() ...@@ -19,7 +19,7 @@ localroot = os.getcwd()
# generate the index properly speaking # generate the index properly speaking
cardDirs = ["2020", "2019"] cardDirs = ["2023", "2022", "2021", "2020", "2019"]
index='' index=''
# determine first the directories # determine first the directories
...@@ -68,4 +68,4 @@ with open(indexFile, 'w') as file: ...@@ -68,4 +68,4 @@ with open(indexFile, 'w') as file:
file.write(filedata) file.write(filedata)
print("\n > New index generated and saved in " + indexFile) print("\n > New index generated and saved in " + indexFile)
os.chdir("..") os.chdir("..")
\ No newline at end of file
*.ai
site/ site/
courses.lcsb.uni.lu courses.lcsb.uni.lu
index.html index.html
...@@ -22,3 +23,4 @@ package.json ...@@ -22,3 +23,4 @@ package.json
./theme/package.json ./theme/package.json
__pycache__/ __pycache__/
contribute.egg-info/ contribute.egg-info/
.*.swp
...@@ -56,7 +56,7 @@ build:website: ...@@ -56,7 +56,7 @@ build:website:
JEKYLL_ENV: production JEKYLL_ENV: production
build:courses: build:courses:
image: git-r3lab.uni.lu:4567/r3/docker/nodejs-yarn-grunt image: node:19-bullseye
stage: build stage: build
rules: rules:
- if: $CI_COMMIT_BRANCH == "develop" - if: $CI_COMMIT_BRANCH == "develop"
...@@ -72,6 +72,7 @@ upload: ...@@ -72,6 +72,7 @@ upload:
stage: deploy stage: deploy
image: alpine image: alpine
before_script: before_script:
- apk add rsync
- 'which ssh-agent || ( apk add --update openssh )' - 'which ssh-agent || ( apk add --update openssh )'
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- echo "$B64SSHPRIVKEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null - echo "$B64SSHPRIVKEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
...@@ -83,5 +84,5 @@ upload: ...@@ -83,5 +84,5 @@ upload:
- if: $CI_COMMIT_BRANCH == "develop" - if: $CI_COMMIT_BRANCH == "develop"
- if: $CI_COMMIT_BRANCH == "master" - if: $CI_COMMIT_BRANCH == "master"
script: script:
- scp -P $SSHPORT -r site/* $SSHCONNECT:~/web/latest - rsync -ravu --info=progress2 -e "ssh -p $SSHPORT" site/* $SSHCONNECT:~/web/latest
- scp -P $SSHPORT -r public/* $SSHCONNECT:~/web/latest - rsync -ravu --info=progress2 -e "ssh -p $SSHPORT" public/* $SSHCONNECT:~/web/latest
[submodule "theme"] [submodule "theme"]
path = theme path = theme
url = https://git-r3lab.uni.lu/R3/outreach/theme.git url = https://gitlab.lcsb.uni.lu/R3/outreach/theme.git
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
<br> <br>
https://howto.lcsb.uni.lu/ https://howto.lcsb.uni.lu/
<center> <center>
<iframe data-src="https://howto.lcsb.uni.lu/" height="600px" width="1200px"></iframe> <img src="slides/img/howtocard.png" width="50%" style="border: 1px solid #555;">
</center> </center>
2019/2019-08-22_IT101-DM/slides/img/howtocard.png

120 KiB

...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
<br> <br>
https://howto.lcsb.uni.lu/ https://howto.lcsb.uni.lu/
<center> <center>
<iframe data-src="https://howto.lcsb.uni.lu/" height="600px" width="1200px"></iframe> <img src="slides/img/howtocard.png" width="50%" style="border: 1px solid #555;">
</center> </center>
2020/2020-02-17_IT101-DM/slides/img/howtocard.png

120 KiB

...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
<br> <br>
https://howto.lcsb.uni.lu/ https://howto.lcsb.uni.lu/
<center> <center>
<iframe data-src="https://howto.lcsb.uni.lu/" height="600px" width="1200px"></iframe> <img src="slides/img/howtocard.png" width="50%" style="border: 1px solid #555;">
</center> </center>
../../../2020-02-17_IT101-DM/slides/img/howtocard.png
\ No newline at end of file
../../2020-03-12_IT101-DM/slides/img/rudi_balling.jpg
\ No newline at end of file
../../../2020-03-12_IT101-DM/slides/img/R3_profile_pictures
\ No newline at end of file
../../../../2020-03-12_IT101-DM/slides/img/R3_profile_pictures/alexey_kolodkin.png
\ No newline at end of file
../../../../2020-03-12_IT101-DM/slides/img/R3_profile_pictures/christophe_trefois.png
\ No newline at end of file
../../../../2020-03-12_IT101-DM/slides/img/R3_profile_pictures/laurent_heirendt.png
\ No newline at end of file
../../../../2020-03-12_IT101-DM/slides/img/R3_profile_pictures/maharshi_vyas.png
\ No newline at end of file
../../../../2020-03-12_IT101-DM/slides/img/R3_profile_pictures/noua_toukourou.png
\ No newline at end of file
../../../../2020-03-12_IT101-DM/slides/img/R3_profile_pictures/pinar_alper.png
\ No newline at end of file
../../../../2020-03-12_IT101-DM/slides/img/R3_profile_pictures/reinhard_schneider.png
\ No newline at end of file