diff --git a/.gitmodules b/.gitmodules index 59efd2b75418b2fad609d9f488343d27107e044f..cf2f9c4cce602bb58b0ded8c6810b2ef62bdc448 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 5d487ad3636ccd937345957d8fd628b3b6e1ee69..27f45964af9b83ab72178aa5928459ea0adc4c48 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 0000000000000000000000000000000000000000..bab8ccf0a8a90ddd9d41c25de3b15856c2671de3 --- /dev/null +++ b/hakyll-bootstrap/cours/algo @@ -0,0 +1 @@ +Subproject commit bab8ccf0a8a90ddd9d41c25de3b15856c2671de3