first MVP to separate transformation from representation
This commit is contained in:
parent
52c3ab5c37
commit
bee767eb98
10 changed files with 146 additions and 46 deletions
|
@ -6,7 +6,7 @@ target_de_book := ${build_dir}/curricullum.de.pdf
|
|||
|
||||
targets := ${target_de} ${target_en} ${target_de_book}
|
||||
|
||||
target_flags := --template pandoc-template/eisvogel.latex
|
||||
target_flags := --template pandoc-template/eisvogel.latex -V table-use-row-colors:true
|
||||
|
||||
coursebuilder := ../coursebuilder
|
||||
|
||||
|
@ -22,6 +22,8 @@ ${target_de}:
|
|||
mkdir -p ${build_dir}
|
||||
python ${coursebuilder} -s schema.yaml -m mod.cg.yaml -l de -f fields.yaml | pandoc ${target_flags} -o ${target_de}
|
||||
|
||||
${target_de_book}:
|
||||
python ${coursebuilder} -s schema.yaml -b book.yaml -p --title "### {}" -l de --leftcol 36 | pandoc ${target_flags} -V lang:de -o ${target_de_book}
|
||||
|
||||
clean:
|
||||
rm -f ${targets}
|
||||
|
@ -30,9 +32,7 @@ debug:
|
|||
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}
|
||||
|
||||
|
||||
debug-book:
|
||||
python ${coursebuilder} -s schema.yaml -b book.yaml -p --title "### {}" -l de --legacy | pandoc ${target_flags} -V lang:de -o ${target_de_book}
|
||||
|
||||
debug-query:
|
||||
python ${coursebuilder} -s schema.yaml -m mod.cg.yaml mod.interactsys.yaml -q "kind == compulsory"
|
||||
|
||||
.PHONY: clean
|
|
@ -4,8 +4,9 @@
|
|||
#
|
||||
|
||||
book:
|
||||
- fields:
|
||||
- name
|
||||
- fields:
|
||||
- name
|
||||
- instructor
|
||||
- id
|
||||
- goal
|
||||
- content
|
||||
|
@ -36,3 +37,18 @@ book:
|
|||
- mod.test.yaml
|
||||
|
||||
|
||||
#
|
||||
# tables
|
||||
#
|
||||
query:
|
||||
list-credits-and-workload:
|
||||
- fields:
|
||||
- name
|
||||
- credits
|
||||
- workload
|
||||
|
||||
# just for ideas
|
||||
regulations:
|
||||
- globals:
|
||||
- course_name: Applied Computer Science (M.Sc.)
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
fields:
|
||||
- name
|
||||
- name
|
||||
- instructor
|
||||
- id
|
||||
- goal
|
||||
- content
|
||||
|
|
|
@ -2,6 +2,9 @@ name:
|
|||
de: Computergrafik
|
||||
en: Computer Graphics
|
||||
|
||||
instructor:
|
||||
de: Prof. Hartmut Seichter, PhD
|
||||
en: Prof. Hartmut Seichter, PhD
|
||||
|
||||
id:
|
||||
value: CG
|
||||
|
|
|
@ -2,6 +2,9 @@ name:
|
|||
de: Test Vorlesung
|
||||
en: Lecture of Test
|
||||
|
||||
instructor:
|
||||
de: Cicero
|
||||
en: Cicero
|
||||
|
||||
id:
|
||||
value: Test
|
||||
|
|
|
@ -15,9 +15,8 @@ name:
|
|||
#
|
||||
instructor:
|
||||
type: str
|
||||
translatable: false
|
||||
label:
|
||||
de: "Modulverantwortlicher/Modulverantwortliche"
|
||||
de: "Modulverantwortlicher / Modulverantwortliche"
|
||||
en: "module instructor"
|
||||
|
||||
|
||||
|
@ -196,11 +195,11 @@ credits:
|
|||
# Leistungsnachweis
|
||||
#
|
||||
form-of-exam:
|
||||
type: enum
|
||||
label: {
|
||||
de: "Leistungsnachweis",
|
||||
en: "form of examination"
|
||||
}
|
||||
type: enum
|
||||
values: {
|
||||
'written' : {
|
||||
de: "Schriftliche Prüfung",
|
||||
|
@ -225,28 +224,28 @@ form-of-exam:
|
|||
# Semester
|
||||
#
|
||||
term:
|
||||
type: multinum
|
||||
label: {
|
||||
de: "Semester",
|
||||
en: "term"
|
||||
}
|
||||
type: multinum
|
||||
template:
|
||||
de: " ${value}. Semester"
|
||||
en: " ${value}. semester"
|
||||
de: " ${value}\\. Semester"
|
||||
en: " ${value}\\. semester"
|
||||
|
||||
#
|
||||
# Häufigkeit des Angebots
|
||||
#
|
||||
frequency:
|
||||
type: enum
|
||||
label: {
|
||||
de: "Häufigkeit des Angebots",
|
||||
en: "frequency of Offer"
|
||||
}
|
||||
type: "enum"
|
||||
values: {
|
||||
'once_per_term' : {
|
||||
de: "jedes Semester",
|
||||
en: "every term"
|
||||
en: "every semester"
|
||||
},
|
||||
'once_per_year' : {
|
||||
de: "einmal im Studienjahr",
|
||||
|
@ -254,6 +253,9 @@ frequency:
|
|||
}
|
||||
}
|
||||
|
||||
#
|
||||
# Dauer des Angebots
|
||||
#
|
||||
duration:
|
||||
type: int
|
||||
label:
|
||||
|
@ -263,6 +265,9 @@ duration:
|
|||
de: "$value Semester"
|
||||
en: "$value term(s)"
|
||||
|
||||
#
|
||||
# Art der Veranstaltung
|
||||
#
|
||||
kind:
|
||||
type: enum
|
||||
label: {
|
||||
|
@ -280,6 +285,9 @@ kind:
|
|||
}
|
||||
}
|
||||
|
||||
#
|
||||
# Freiform Bemerkungen
|
||||
#
|
||||
remarks:
|
||||
type: str
|
||||
label: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue