Refactor tupfiles
This commit is contained in:
parent
eab3405456
commit
4beeae10ab
11 changed files with 71 additions and 34 deletions
30
Tuprules.tup
30
Tuprules.tup
|
@ -1,31 +1,11 @@
|
|||
&root = .
|
||||
|
||||
!pandoc = | &(root)/templates/footer.html \
|
||||
|> ^ pandoc %f^ \
|
||||
pandoc --from markdown --to html \
|
||||
--template=&(root)/templates/pandoc.html \
|
||||
--css &(root)/css/style.css \
|
||||
--include-in-header=&(root)/templates/header.html \
|
||||
--include-before-body=&(root)/templates/nav.html \
|
||||
--include-after-body=&(root)/templates/footer.html \
|
||||
%f | sed 's|%%webRoot%%|&(root)|g' > %o \
|
||||
|> %B.html
|
||||
HTML_TEMPLATE = main.html
|
||||
|
||||
!project = | &(root)/templates/footer.html \
|
||||
|> ^ pandoc %f^ \
|
||||
pandoc --from markdown --to html \
|
||||
--template=&(root)/templates/project.html \
|
||||
--css &(root)/css/style.css \
|
||||
--include-in-header=&(root)/templates/header.html \
|
||||
--include-before-body=&(root)/templates/nav.html \
|
||||
--include-after-body=&(root)/templates/footer.html \
|
||||
%f | sed 's|%%webRoot%%|&(root)|g' > %o \
|
||||
|> %B.html
|
||||
|
||||
!article = | &(root)/templates/footer.html \
|
||||
|> ^ pandoc %f^ \
|
||||
pandoc --from markdown --to html \
|
||||
--template=&(root)/templates/article.html \
|
||||
!html = | &(root)/templates/footer.html \
|
||||
|> ^ html %f^ \
|
||||
pandoc --from markdown --to html \
|
||||
--template=&(root)/templates/$(HTML_TEMPLATE) \
|
||||
--css &(root)/css/style.css \
|
||||
--include-in-header=&(root)/templates/header.html \
|
||||
--include-before-body=&(root)/templates/nav.html \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue