Skip to content

Commit

Permalink
Merge branch 'master' of github.com:HE-Arc/slides-devweb
Browse files Browse the repository at this point in the history
  • Loading branch information
grunenwald committed Sep 14, 2023
2 parents 80e3820 + 8c95e18 commit 13245ba
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 5 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
@@ -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 }}."
9 changes: 5 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand All @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion src/01-presentation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% 01.Cours devweb

# Développement web il3
# Développement web ISC3-il
## Présentation du cours{.title}
<footer>HE-Arc 2023/24 DGR et YBL</footer>

Expand Down

0 comments on commit 13245ba

Please sign in to comment.