27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# any of its dependencies (or missing) all of the articles will be rebuilt. Its dependencies are
# also on the Pollen cache watchlist (see pollen.rkt)
_article_htmls.mark: $(core-files) $(html-deps) template.html.p
raco pollen setup articles/
raco pollen render -p -t html articles/*.poly.pm
raco pollen setup series/
raco pollen render -p -t html series/*.poly.pm
tidy -quiet -modify -indent --wrap 100 --tidy-mark no articles/*.html || true
tidy -quiet -modify -indent --wrap 100 --tidy-mark no series/*.html || true
touch _article_htmls.mark
# If the rule for article_htmls.mark was triggered, all the article HTML files will already have
# been re-rendered. (That rule comes before this one in the list of dependencies for "all") But if
# not, any individual files that have been edited will get re-rendered.
|
>
|
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# any of its dependencies (or missing) all of the articles will be rebuilt. Its dependencies are
# also on the Pollen cache watchlist (see pollen.rkt)
_article_htmls.mark: $(core-files) $(html-deps) template.html.p
raco pollen setup articles/
raco pollen render -p -t html articles/*.poly.pm
raco pollen setup series/
raco pollen render -p -t html series/*.poly.pm
rm -f template.html series/template.html
tidy -quiet -modify -indent --wrap 100 --tidy-mark no articles/*.html || true
tidy -quiet -modify -indent --wrap 100 --tidy-mark no series/*.html || true
touch _article_htmls.mark
# If the rule for article_htmls.mark was triggered, all the article HTML files will already have
# been re-rendered. (That rule comes before this one in the list of dependencies for "all") But if
# not, any individual files that have been edited will get re-rendered.
|
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
racket -tm blog.rkt
tidy -quiet -modify -indent --wrap 100 --tidy-mark no blog*.html || true
keyword-index.html: $(core-files) $(html-deps) $(articles-html) keyword-index.rkt
racket -tm keyword-index.rkt
tidy -quiet -modify -indent --wrap 100 --tidy-mark no $@ || true
spritz: ## Clear Pollen and Scribble cache
rm -rf compiled code-docs/compiled articles/compiled series/compiled
fossil clean code-docs/
publish: check-env
publish: ## Sync all HTML and PDF stuff to the public web server (does not rebuild any files)
raco pollen publish
./util/relativize ~/Desktop/publish/
rsync -av ~/Desktop/publish/ -e 'ssh -p $(WEB_SRV_PORT)' $(LOCALYARN_SRV) \
--delete \
|
|
>
|
<
|
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
racket -tm blog.rkt
tidy -quiet -modify -indent --wrap 100 --tidy-mark no blog*.html || true
keyword-index.html: $(core-files) $(html-deps) $(articles-html) keyword-index.rkt
racket -tm keyword-index.rkt
tidy -quiet -modify -indent --wrap 100 --tidy-mark no $@ || true
spritz: ## Clear Pollen and Scribble cache, and remove all HTML output
raco pollen reset
rm -f *.html articles/*.html series/*.html _article_htmls.mark
publish: check-env
publish: ## Sync all HTML and PDF stuff to the public web server (does not rebuild any files)
raco pollen publish
./util/relativize ~/Desktop/publish/
rsync -av ~/Desktop/publish/ -e 'ssh -p $(WEB_SRV_PORT)' $(LOCALYARN_SRV) \
--delete \
|