From 0dd5ba3afdff7bf219d6ee3039adaa8ca912b81c Mon Sep 17 00:00:00 2001 From: Orestis <orestis.malaspinas@pm.me> Date: Sat, 19 Feb 2022 12:29:08 +0100 Subject: [PATCH] added algo --- .gitmodules | 3 +++ hakyll-bootstrap/Main.hs | 24 +++++++++++++++++++++--- hakyll-bootstrap/cours/algo | 1 + 3 files changed, 25 insertions(+), 3 deletions(-) create mode 160000 hakyll-bootstrap/cours/algo diff --git a/.gitmodules b/.gitmodules index 59efd2b..cf2f9c4 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,3 +10,6 @@ [submodule "hakyll-bootstrap/cours/prog_seq"] path = hakyll-bootstrap/cours/prog_seq url = https://gitedu.hesge.ch/programmation_sequentielle/cours.git +[submodule "hakyll-bootstrap/cours/algo"] + path = hakyll-bootstrap/cours/algo + url = https://gitedu.hesge.ch/algorithmique/cours.git diff --git a/hakyll-bootstrap/Main.hs b/hakyll-bootstrap/Main.hs index 5d487ad..27f4596 100644 --- a/hakyll-bootstrap/Main.hs +++ b/hakyll-bootstrap/Main.hs @@ -52,6 +52,7 @@ main = hakyllWith config $ do .||. "reveal.js/dist/**" .||. "reveal.js/plugin/**" .||. "cours/prog_seq/slides/figs/*" + .||. "cours/algo/slides/figs/*" .||. "cours/math_tech_info/figs/*" .||. "cours/math_tech_info/cours.pdf" .||. "cours/isc_physics/cours.pdf" @@ -107,20 +108,37 @@ main = hakyllWith config $ do >>= loadAndApplyTemplate "templates/course.html" (courseCtx posts "Mathématiques en technologie de l'information" "cours/math_tech_info/cours.pdf") >>= relativizeUrls - -- Phys app posts + -- Programmation séquentielle slides match "cours/prog_seq/slides/*.markdown" $ do route $ setExtension "html" compile $ pandocRevealCompiler >>= loadAndApplyTemplate "templates/reveal.html" postCtx >>= relativizeUrls - -- Phys app post list + -- Prog seq post list create ["cours/prog_seq.html"] $ do route idRoute compile $ do posts <- recentFirst =<< loadAll "cours/prog_seq/slides/*.markdown" makeItem "" - >>= loadAndApplyTemplate "templates/archive.html" (courseCtx posts "Programmation séquentielle" "cours/isc_physics/cours.pdf") + >>= loadAndApplyTemplate "templates/archive.html" (courseCtx posts "Programmation séquentielle") + >>= relativizeUrls + + + -- Algorithmique slides + match "cours/algo/slides/*.markdown" $ do + route $ setExtension "html" + compile $ pandocRevealCompiler + >>= loadAndApplyTemplate "templates/reveal.html" postCtx + >>= relativizeUrls + + -- Prog seq post list + create ["cours/algo.html"] $ do + route idRoute + compile $ do + posts <- recentFirst =<< loadAll "cours/algo/slides/*.markdown" + makeItem "" + >>= loadAndApplyTemplate "templates/archive.html" (courseCtx posts "Algorithmique et structure de données") >>= relativizeUrls -- Team description diff --git a/hakyll-bootstrap/cours/algo b/hakyll-bootstrap/cours/algo new file mode 160000 index 0000000..bab8ccf --- /dev/null +++ b/hakyll-bootstrap/cours/algo @@ -0,0 +1 @@ +Subproject commit bab8ccf0a8a90ddd9d41c25de3b15856c2671de3 -- GitLab