diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml new file mode 100644 index 0000000..09da4de --- /dev/null +++ b/.github/workflows/makefile.yml @@ -0,0 +1,53 @@ +name: html+pdf generation with pandoc +run-name: ${{ github.actor }} is generating new slides +on: [push] + +env: + PANDOC_VERSION: 3.1.8 + EMOJIONE_VERSION: 8.0.0 + +jobs: + Install: + runs-on: ubuntu-latest + steps: + - uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: make texlive texlive-xetex + version: 1.0 + - run: | + wget https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-1-amd64.deb -O pandoc.deb + sudo dpkg -i pandoc.deb + - run: | + wget https://github.com/joypixels/emoji-assets/archive/v${EMOJIONE_VERSION}.tar.gz -O emojione-assets.tgz + tar xf emojione-assets.tgz + mv emoji-assets-${EMOJIONE_VERSION} emojione-assets + wget https://raw.githubusercontent.com/mreq/xelatex-emoji/master/xelatexemoji.sty + wget https://raw.githubusercontent.com/mreq/xelatex-emoji/master/xelatexemoji-flags.sty + sed -i 's/^\(\\usepackage{amsmath}\)/%\1/' xelatexemoji.sty + sed -i 's/^\(\\providecommand{\\xelatexemojipath}\)/%\1/' xelatexemoji.sty + + - run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" + - run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." + + + - name: Run the Makefile + run: | + ls ${{ github.workspace }} + make slides + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the build repository + run: | + ls ${{ github.workspace }} + echo "Build:" + ls ${{ github.workspace }}/build + + + - name: Deploy 🚀 + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: build # The folder the action should deploy. + - run: echo "🍏 This job's status is ${{ job.status }}." diff --git a/Makefile b/Makefile index 8ce5de8..8ea0c89 100755 --- a/Makefile +++ b/Makefile @@ -34,11 +34,12 @@ $(SLIDES): $(BUILDDIR)/%.html : $(SOURCEDIR)/%.md sed -e 's/(\(img\/\)/($(SOURCEDIR)\/\1/g' "$^" \ | sed -e "\$$a# Sources" \ | pandoc -s \ - -f markdown \ + -f markdown \ -t dzslides \ - --self-contained \ + --embed-resources \ + --standalone \ --lua-filter=meta.lua \ - --filter=pandoc-citeproc \ + --citeproc \ -V show-notes=true \ -V title="" \ -V title-prefix="HE-Arc" \ @@ -55,7 +56,7 @@ $(PDFS): $(BUILDDIR)/%.pdf : $(SOURCEDIR)/%.md --pdf-engine=xelatex \ --lua-filter=meta.lua \ --lua-filter=english.lua \ - --filter=pandoc-citeproc \ + --citeproc \ -H $(TEMPLATES)/header.tex \ -V documentclass="scrartcl" \ -V links-as-notes=true \ diff --git a/src/01-presentation.md b/src/01-presentation.md index 58d8f70..7ecbbcc 100755 --- a/src/01-presentation.md +++ b/src/01-presentation.md @@ -1,6 +1,6 @@ % 01.Cours devweb -# Développement web il3 +# Développement web ISC3-il ## Présentation du cours{.title}