Skip to content
Snippets Groups Projects
Commit aa4ea3ac authored by Millicent Billette's avatar Millicent Billette
Browse files

FEAT: add video replay info when available

FIX: git hook call update-readme.sh so no more duplicate code
parent b36c3a28
No related branches found
No related tags found
1 merge request!8FEAT: add video replay info when available
...@@ -31,6 +31,7 @@ sh launch-me-once-after-git-clone-to-auto-update-readme.sh ...@@ -31,6 +31,7 @@ sh launch-me-once-after-git-clone-to-auto-update-readme.sh
### Rustkathon 1 (mars 2019) ### Rustkathon 1 (mars 2019)
- [Le protocole DUP](https://librelois.duniter.io/slides/rustkathon2019_1/dup-protocol/) - [Le protocole DUP](https://librelois.duniter.io/slides/rustkathon2019_1/dup-protocol/)
(Replay [peertube](https://tube.p2p.legal/videos/watch/d88f37e6-99b3-41cb-ba9a-2a1bd3c57be0) | [youtube](https://www.youtube.com/watch?v=1ZOb7XDk3Dc))
- [DURS (DUniter-RuSt)](https://librelois.duniter.io/slides/rustkathon2019_1/durs/) - [DURS (DUniter-RuSt)](https://librelois.duniter.io/slides/rustkathon2019_1/durs/)
- [Écosystème technique de la Ğ1](https://librelois.duniter.io/slides/rustkathon2019_1/g1-ecosystem/) - [Écosystème technique de la Ğ1](https://librelois.duniter.io/slides/rustkathon2019_1/g1-ecosystem/)
- [Rust & Web Assembly](https://librelois.duniter.io/slides/rustkathon2019_1/wasm/) - [Rust & Web Assembly](https://librelois.duniter.io/slides/rustkathon2019_1/wasm/)
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# to launch me, type in terminal : sh launch-me-once-after-git-clone-to-auto-update-readme.sh # to launch me, type in terminal : sh launch-me-once-after-git-clone-to-auto-update-readme.sh
mkdir -p .git/hooks/ cp launch-me-once-after-git-clone-to-auto-update-readme.sh .git/hooks/pre-commit
cp update-readme.sh .git/hooks/pre-commit
chmod 755 .git/hooks/pre-commit chmod 755 .git/hooks/pre-commit
sh update-readme.sh
\ No newline at end of file
File moved
...@@ -23,9 +23,13 @@ for folder in `ls public/` ...@@ -23,9 +23,13 @@ for folder in `ls public/`
fi fi
for slide in `ls public/$folder/` for slide in `ls public/$folder/`
do do
if test "slideshow.md" != $slide if test "event.md" != $slide
then res="${res}- [`sed -n -e 's/^\##* *\(.*\)$/\1/p' public/${folder}/${slide}/slideshow.md | head -n 1`](${urlRoot}/${folder}/${slide}/)\n" then res="${res}- [`sed -n -e 's/^\##* *\(.*\)$/\1/p' public/${folder}/${slide}/slideshow.md | head -n 1`](${urlRoot}/${folder}/${slide}/)\n"
fi fi
if test "!!nothing!!" != "`cat public/${folder}/${slide}/video.md 2>/dev/null || echo "!!nothing!!"`"
then res="${res} `cat public/${folder}/${slide}/video.md`\n"
fi
done done
;; ;;
esac esac
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment