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 (265)
Showing
with 36 additions and 26 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
# Best practices # Best practices
* `pull` before `push` * `pull` before `push` and, generally, before starting to work
* Work on your <font color="red">own</font> branch (in your own fork), and **not** on `master` and **not** on `develop` * Work on your <font color="red">own</font> branch (in your own fork), and **not** on `master` and **not** on `develop`
* Do **not push** to `master`, but **submit a Pull Request (PR)** * Do **not push** to `master`, but **submit a Pull Request (PR)**
* Get your code **reviewed** by your peers (submit a PR!) * Get your code **reviewed** by your peers (submit a PR!)
......
...@@ -38,7 +38,7 @@ If there are 2 files named `id_rsa`, you have an SSH key. ...@@ -38,7 +38,7 @@ If there are 2 files named `id_rsa`, you have an SSH key.
If you don’t have yet an SSH key, you have to generate one: If you don’t have yet an SSH key, you have to generate one:
```bash ```bash
$ ssh-keygen -t rsa # -b 4096 $ ssh-keygen -t rsa -b 4096
``` ```
If you set a password to your key (recommended), add it to the `ssh-agent`: If you set a password to your key (recommended), add it to the `ssh-agent`:
......
...@@ -45,6 +45,9 @@ $ cp firstnameLastname.md myName.md ...@@ -45,6 +45,9 @@ $ cp firstnameLastname.md myName.md
Then, make your changes with your favorite editor! Then, make your changes with your favorite editor!
<br><br>
Reference for markdown: https://howto.lcsb.uni.lu/?contribute:markdown
# Add your file to the stage # Add your file to the stage
...@@ -71,7 +74,11 @@ $ git status ...@@ -71,7 +74,11 @@ $ git status
```bash ```bash
$ git diff $ git diff
``` ```
exit with `q` exit with `q`.
<br>
![bulb](slides/img/bulb.png) If it is a long diff, you can display additional lines with space.
......
...@@ -46,7 +46,7 @@ Then, clone your fork to your home directory! ...@@ -46,7 +46,7 @@ Then, clone your fork to your home directory!
<img src="slides/img/icon-live-demo.png" height="100px"> <img src="slides/img/icon-live-demo.png" height="100px">
```bash ```bash
$ $ git clone git@github.com:<yourName>/basic-git-practice.git $ git clone git@github.com:<yourName>/basic-git-practice.git
``` ```
Change to the practice directory with: Change to the practice directory with:
......
2021/2021-03-18_basicGitTraining/slides/img/Git-Logo-Black.png

5.55 KiB

../../../../2020/2020-03-30_basicGitTraining/slides/img/Git-Logo-Black.png
\ No newline at end of file
File deleted
2021/2021-03-18_basicGitTraining/slides/img/branch-create.png

99.1 KiB

../../../../2020/2020-03-30_basicGitTraining/slides/img/branch-create.png
\ No newline at end of file
2021/2021-03-18_basicGitTraining/slides/img/branch-master.png

84.7 KiB

../../../../2020/2020-03-30_basicGitTraining/slides/img/branch-master.png
\ No newline at end of file
2021/2021-03-18_basicGitTraining/slides/img/branch-merge.png

106 KiB

../../../../2020/2020-03-30_basicGitTraining/slides/img/branch-merge.png
\ No newline at end of file
2021/2021-03-18_basicGitTraining/slides/img/bulb.png

4.72 KiB

../../../../2020/2020-03-30_basicGitTraining/slides/img/bulb.png
\ No newline at end of file