Skip to content
Snippets Groups Projects
Commit bb59efb5 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

deactivated python-numbering and merged

parents 5279b4b1 97497393
No related branches found
No related tags found
No related merge requests found
......@@ -7,3 +7,6 @@
[submodule "hakyll-bootstrap/cours/isc_physics"]
path = hakyll-bootstrap/cours/isc_physics
url = https://gitedu.hesge.ch/orestis.malaspin/isc_physics.git
[submodule "hakyll-bootstrap/cours/prog_seq"]
path = hakyll-bootstrap/cours/prog_seq
url = https://gitedu.hesge.ch/programmation_sequentielle/cours.git
......@@ -134,6 +134,25 @@ bachelor = do
>>= loadAndApplyTemplate "templates/archive.html" (bachelorCtx posts)
>>= relativizeUrls
cours_prog_seq :: Rules ()
cours_prog_seq = do
match "cours/prog_seq/*.md" $ do
route $ setExtension "html"
-- compile $ myPandocCompiler
compile $ revealCompiler
>>= loadAndApplyTemplate "templates/class.html" postCtx
>>= relativizeUrls
prog_seq :: Rules ()
prog_seq = do
create ["prog_seq.html"] $ do
route idRoute
compile $ do
posts <- recentFirst =<< loadAll "cours/prod_seq/*"
makeItem ""
>>= loadAndApplyTemplate "templates/archive.html" (courseCtx posts "Programmation séquentielle")
>>= relativizeUrls
cours_conc :: Rules ()
cours_conc = do
match "cours/*" $ do
......@@ -250,8 +269,6 @@ bibtexCompiler :: Compiler (Item String)
bibtexCompiler = do
getResourceBody
>>= withItemBody (unixFilter "pandoc" ["-F"
, "pandoc-numbering"
, "-F"
, "pandoc-crossref"
, "-t"
, "markdown"
......@@ -259,6 +276,22 @@ bibtexCompiler = do
>>= readPandocWith defaultHakyllReaderOptions
>>= return . writePandocWith pandocOptions
revealCompiler :: Compiler (Item String)
revealCompiler = do
getResourceBody
>>= withItemBody (unixFilter "pandoc" ["-F"
, "pandoc-crossref"
, "-t"
, "revealjs"
, "--self-contained"
, "--metadata"
, "title=metadata.yaml"
, "-V"
, "theme=white"
])
>>= readPandocWith defaultHakyllReaderOptions
>>= return . writePandocWith pandocOptions
cfg :: Configuration
cfg = defaultConfiguration
......@@ -269,6 +302,8 @@ main = hakyllWith cfg $ do
posts
cours_conc
conc
cours_prog_seq
prog_seq
cours_mti
mti
cours_phys_app
......
Subproject commit f8f4b6ca9aef830cab7b0d1e87273ea823460e75
......@@ -14,7 +14,7 @@ executable blog
build-depends:
base
, containers
, pandoc
, pandoc
, pandoc-crossref
, hakyll == 4.13.4.1
, hakyll-images
......
......@@ -55,6 +55,7 @@ extra-deps:
- pandoc-citeproc-0.17.0.2@sha256:39c5c60a5eca2c1cb50ae9a00dc7093ca1baac78ad5be4e222505de257dce456,8737
- skylighting-0.8.5@sha256:a6e316e7440f0395d64f3a412cd6985783ec68a171e117d5e1bab1204c565a71,9726
- skylighting-core-0.8.5@sha256:f35397ea99d7d0fd4f45899102c040408d2bab802ea9d08ad1a970be58b43b49,8056
# Override default flag values for local packages and extra-deps
# flags: {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment