Compare commits
No commits in common. "4965bf7dfa14c791f3ee17e88f8f2521ee27c9f9" and "da570026b3f29c652f1e6ef3d044708c83564fba" have entirely different histories.
4965bf7dfa
...
da570026b3
|
@ -21,7 +21,7 @@ var tplMap = map[string]string{
|
||||||
"assignments": "assignments.adoc.tpl",
|
"assignments": "assignments.adoc.tpl",
|
||||||
"schedule": "schedule.adoc.tpl",
|
"schedule": "schedule.adoc.tpl",
|
||||||
"syllabus": "syllabus.adoc.tpl",
|
"syllabus": "syllabus.adoc.tpl",
|
||||||
"course": "course.taskpaper.tpl",
|
"course": "course.task.tpl",
|
||||||
}
|
}
|
||||||
|
|
||||||
type DayMap map[int]time.Time
|
type DayMap map[int]time.Time
|
||||||
|
@ -145,7 +145,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func writeTaskPaper(c Config) error {
|
func writeTaskPaper(c Config) error {
|
||||||
f, err := os.Create("course.taskpaper")
|
f, err := os.Create("course.task")
|
||||||
defer f.Close()
|
defer f.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
- {{.Project}} @parallel(true) @autodone(false) @context(Place : IUS) @tags(Place : IUS) @defer(2019-12-20 00:00)
|
||||||
|
- Assignments @parallel(false) @autodone(false) @context(Place : IUS) @tags(Place : IUS)
|
||||||
|
{{- range $key, $value := .Assignments}}
|
||||||
|
- {{$value.Title}} @context(Place : IUS) @tags(Place : IUS) @due({{getDate $value.Assigned}} {{dueTime}})
|
||||||
|
{{- end}}
|
||||||
|
- Grading @parallel(false) @autodone(false) @context(Place : IUS) @tags(Place : IUS)
|
||||||
|
{{- range $key, $value := .Assignments}}
|
||||||
|
- {{$value.Title}} @context(Place : IUS) @tags(Place : IUS) @defer({{getDate $value.Due}} {{dueTime}})
|
||||||
|
{{- end}}
|
||||||
|
- Lectures @parallel(false) @autodone(false) @context(Place : IUS) @tags(Place : IUS)
|
||||||
|
{{- range $key, $value := .Days}}
|
||||||
|
- {{$value.Title}} @context(Place : IUS) @tags(Place : IUS) @due({{getDate $value.Num}} {{dueTime}})
|
||||||
|
{{- end}}
|
|
@ -1,13 +0,0 @@
|
||||||
- {{.Project}} @parallel(true) @autodone(false) @context(Place : IUS) @tags(Place : IUS) @defer(2019-12-20 00:00)
|
|
||||||
Assignments: @parallel(false) @autodone(false) @context(Place : IUS) @tags(Place : IUS)
|
|
||||||
{{- range $key, $value := .Assignments}}
|
|
||||||
- {{$value.Title}} @context(Place : IUS) @tags(Place : IUS) @due({{getDate $value.Assigned}} {{dueTime}})
|
|
||||||
{{- end}}
|
|
||||||
Grading: @parallel(false) @autodone(false) @context(Place : IUS) @tags(Place : IUS)
|
|
||||||
{{- range $key, $value := .Assignments}}
|
|
||||||
- {{$value.Title}} @context(Place : IUS) @tags(Place : IUS) @defer({{getDate $value.Due}} {{dueTime}})
|
|
||||||
{{- end}}
|
|
||||||
Lectures: @parallel(false) @autodone(false) @context(Place : IUS) @tags(Place : IUS)
|
|
||||||
{{- range $key, $value := .Days}}
|
|
||||||
- {{$value.Title}} @context(Place : IUS) @tags(Place : IUS) @due({{getDate $value.Num}} {{dueTime}})
|
|
||||||
{{- end}}
|
|
Loading…
Reference in New Issue