Compare commits

...

2 Commits

Author SHA1 Message Date
jsz4n
249832abaa ignore cp if file already exists 2025-09-24 19:05:12 +02:00
jsz4n
689e93cb93 add first makefile 2025-09-24 19:05:01 +02:00
2 changed files with 18 additions and 1 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
watch:
./watch_compile.sh
html:
./scripts/slides_to_html.sh slides.md
pdf:
./scripts/slides_to_pdf.sh slides.md
serve_html: html
ln -b -s `pwd`/templates/custom.css `pwd`/html/custom.css
ln -b -s `pwd`/medias `pwd`/html/medias
ln -b -s `pwd`/html/slides.html `pwd`/html/index.html
python -m http.server --directory html 7777
clean:
rm -rf html/*

View File

@@ -11,7 +11,7 @@ do
file_out=`echo $filename | sed -e 's/\.md/\.html/g'` file_out=`echo $filename | sed -e 's/\.md/\.html/g'`
sed -e "s|SLIDEHEAD|$headEscapedForSed|g" $filename | pandoc -s --mathjax -t revealjs -o html/$file_out --slide-level=$SLIDE_LEVEL --highlight-style=$HIGHLIGHT_STYLE -V revealjs-url=https://unpkg.com/reveal.js@5.2.0 --template=./templates/template.revealjs --css custom.css sed -e "s|SLIDEHEAD|$headEscapedForSed|g" $filename | pandoc -s --mathjax -t revealjs -o html/$file_out --slide-level=$SLIDE_LEVEL --highlight-style=$HIGHLIGHT_STYLE -V revealjs-url=https://unpkg.com/reveal.js@5.2.0 --template=./templates/template.revealjs --css custom.css
if [ -f ./templates/custom.css ]; then if [ -f ./templates/custom.css ]; then
cp ./templates/custom.css ./html/custom.css cp -n ./templates/custom.css ./html/custom.css
fi fi
echo output $file_out echo output $file_out