Compare commits
No commits in common. "94065c21adcd8444fecd1bc1a8c80805ca273154" and "a61be775d52098fe8f8bd2a3b4cbcc0ca862d595" have entirely different histories.
94065c21ad
...
a61be775d5
|
@ -205,5 +205,3 @@ example
|
||||||
*.adoc
|
*.adoc
|
||||||
tpsemester
|
tpsemester
|
||||||
semestergen
|
semestergen
|
||||||
main-packr.go
|
|
||||||
packrd
|
|
||||||
|
|
9
Makefile
9
Makefile
|
@ -1,10 +1,5 @@
|
||||||
build: gendates.go
|
|
||||||
packr2 build
|
|
||||||
|
|
||||||
run: build *.adoc.tpl c311.toml
|
run: build *.adoc.tpl c311.toml
|
||||||
./semestergen c311.toml
|
./semestergen c311.toml
|
||||||
|
|
||||||
clean:
|
build: gendates.go
|
||||||
@rm -rf packrd main-packr.go semestergen
|
go build
|
||||||
|
|
||||||
.PHONY: clean
|
|
||||||
|
|
|
@ -24,6 +24,8 @@ var tplMap = map[string]string{
|
||||||
"course": "course.task.tpl",
|
"course": "course.task.tpl",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var linkChecker = mkLinkChecker()
|
||||||
|
|
||||||
type DayMap map[int]time.Time
|
type DayMap map[int]time.Time
|
||||||
|
|
||||||
type Eval struct {
|
type Eval struct {
|
||||||
|
@ -219,7 +221,7 @@ func writeSyllabus(c Config) error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
var linkChecker = func() func(Link) Link {
|
func mkLinkChecker() func(Link) Link {
|
||||||
ids := map[string]bool{}
|
ids := map[string]bool{}
|
||||||
return func(l Link) Link {
|
return func(l Link) Link {
|
||||||
if !ids[l.Title] {
|
if !ids[l.Title] {
|
||||||
|
@ -241,7 +243,7 @@ var linkChecker = func() func(Link) Link {
|
||||||
|
|
||||||
return l
|
return l
|
||||||
}
|
}
|
||||||
}()
|
}
|
||||||
|
|
||||||
func mkConfig(path string) Config {
|
func mkConfig(path string) Config {
|
||||||
var c Config
|
var c Config
|
||||||
|
|
Loading…
Reference in New Issue