minor update
This commit is contained in:
parent
e816fe50a2
commit
e489ef1517
3 changed files with 12 additions and 5 deletions
12
README.md
12
README.md
|
@ -9,8 +9,8 @@ actual values are kept in YAML files in order to version them with git.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$> python coursebuilder
|
$> python coursebuilder
|
||||||
usage: [-h] [-m META [META ...]] [-l LANG] [-f FIELDS [FIELDS ...]] [-s SCHEMA] [-p] [-t] [-b BOOK] [--level LEVEL]
|
usage: [-h] [-m META [META ...]] [-l LANG] [-f FIELDS [FIELDS ...]] [-s SCHEMA] [-q QUERY] [-p] [--title TITLE] [-b BOOK] [--level LEVEL] [--table-gen TABLE_GEN]
|
||||||
[--table-gen TABLE_GEN]
|
[--template TEMPLATE] [-o OUT] [--legacy] [--leftcol LEFTCOL]
|
||||||
|
|
||||||
versatile curricula generator
|
versatile curricula generator
|
||||||
|
|
||||||
|
@ -23,12 +23,18 @@ options:
|
||||||
Fields to be used, the table will be build accordingly
|
Fields to be used, the table will be build accordingly
|
||||||
-s SCHEMA, --schema SCHEMA
|
-s SCHEMA, --schema SCHEMA
|
||||||
using provided schema
|
using provided schema
|
||||||
|
-q QUERY, --query QUERY
|
||||||
|
compound query to select items
|
||||||
-p, --pagebreak add a pagebreak after each module
|
-p, --pagebreak add a pagebreak after each module
|
||||||
-t, --title take first value in list as title
|
--title TITLE template for title - use curly brackets (i.e. {}) to mark where the title string is inserted
|
||||||
-b BOOK, --book BOOK process a whole curriculum book with sections
|
-b BOOK, --book BOOK process a whole curriculum book with sections
|
||||||
--level LEVEL level of header tags
|
--level LEVEL level of header tags
|
||||||
--table-gen TABLE_GEN
|
--table-gen TABLE_GEN
|
||||||
runs table generator
|
runs table generator
|
||||||
|
--template TEMPLATE defines a template to be used with fields
|
||||||
|
-o OUT, --out OUT set the output type
|
||||||
|
--legacy use legacy generator mode for compatibility
|
||||||
|
--leftcol LEFTCOL maximum size of left column
|
||||||
```
|
```
|
||||||
|
|
||||||
# Author
|
# Author
|
||||||
|
|
|
@ -165,3 +165,4 @@ class Schema:
|
||||||
list.append( (r['label'], ', '.join( r['template'].format(value=v) for v in r['value'])) )
|
list.append( (r['label'], ', '.join( r['template'].format(value=v) for v in r['value'])) )
|
||||||
|
|
||||||
return list
|
return list
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@ ${target_de}:
|
||||||
python ${coursebuilder} -s schema.yaml -m mod.cg.yaml -l de -f fields.yaml | pandoc ${target_flags} -o ${target_de}
|
python ${coursebuilder} -s schema.yaml -m mod.cg.yaml -l de -f fields.yaml | pandoc ${target_flags} -o ${target_de}
|
||||||
|
|
||||||
${target_de_book}:
|
${target_de_book}:
|
||||||
python ${coursebuilder} -s schema.yaml -b book.yaml -p --title "### {}" -l de --leftcol 20 --legacy | pandoc ${target_flags} -V lang:de -o ${target_de_book}
|
python ${coursebuilder} -s schema.yaml -b book.yaml -p --title "### {}" -l de --leftcol 25 --legacy | pandoc ${target_flags} -V toc:true -V lang:de -o ${target_de_book}
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f ${targets}
|
rm -f ${targets}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue