repurpose title to make it configurable from outside

This commit is contained in:
Hartmut Seichter 2024-05-09 23:38:20 +02:00
parent 4fca7c7bae
commit 85abfeb743
4 changed files with 21 additions and 62 deletions

View file

@ -22,17 +22,8 @@ all: ${target_de} ${target_en}
clean:
rm ${target_de} ${target_en}
# debug-template:
# python ${coursebuilder} -s schema.yaml -m mod.cg.yaml mod.interactsys.yaml -l de -f name credits goal content --template "$$name | $$credits"
# debug-markdown:
# python ${coursebuilder} -s schema.yaml -m mod.cg.yaml mod.interactsys.yaml -l de -f name credits
# debug-book:
# python ${coursebuilder} -s schema.yaml -b book.yaml -l de
debug:
python ${coursebuilder} -s schema.yaml -m mod.cg.yaml mod.interactsys.yaml mod.test.yaml -l de -f name credits goal content | pandoc ${target_flags} -V lang:de -o ${target_de}
python ${coursebuilder} -s schema.yaml -m mod.cg.yaml mod.interactsys.yaml mod.test.yaml -p --title "## {}" -l de -f name credits goal content | pandoc ${target_flags} -V lang:de -o ${target_de}
.PHONY: clean

View file

@ -83,11 +83,11 @@ content:
# Es sind nur Werte aus der Prüfungsordung zugelassen
#
form-of-instruction:
type: multikey
label: {
de: "Lehrform(en)",
en: "form of instruction"
}
type: multikey
keys: {
'lecture' : {
de: "Vorlesung",
@ -188,8 +188,8 @@ credits:
de: "Kreditpunkte und Gewichtung der Note in der Gesamtnote"
}
template:
de: "${value}CP Gewichtung: ${value}CP von 120CP "
en: "${value}CP weight: ${value} / 120 "
de: "${value}CP, Gewichtung: ${value}CP von 120CP "
en: "${value}CP, weight: ${value} / 120 "
#