forked from fulcrologic/fulcro-developer-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (25 loc) · 1.52 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# gem install asciidoctor asciidoctor-diagram coderay
docs/DevelopersGuide.html: DevelopersGuide.adoc
asciidoctor -o docs/DevelopersGuide.html -b html5 -r asciidoctor-diagram DevelopersGuide.adoc || docker run -it -v $(PWD):/documents/ asciidoctor/docker-asciidoctor asciidoctor -o ./docs/DevelopersGuide.html -b html5 -r asciidoctor-diagram DevelopersGuide.adoc
# Requires asciidoctor-pdf, see readme
docs/DevelopersGuide.pdf: DevelopersGuide.adoc
asciidoctor-pdf -o docs/DevelopersGuide.pdf -b pdf -r asciidoctor-diagram DevelopersGuide.adoc
pdf: docs/DevelopersGuide.pdf
book: docs/DevelopersGuide.html
build-report:
npx shadow-cljs run shadow.cljs.build-report book report.html
open report.html
bookdemos:
rm -rf docs/js/book docs/js/book.js
yarn
shadow-cljs release book
publish: book
rsync -av docs/DevelopersGuide.html linode:/usr/share/nginx/html/index.html
publish-all: book
rsync -av docs/DevelopersGuide.html linode:/usr/share/nginx/html/index.html
rsync -av docs/js/book/*.js linode:/usr/share/nginx/html/js/book/
rsync -av docs/assets/img linode:/usr/share/nginx/html/assets/
docker-html: DevelopersGuide.adoc
docker run -it -v $$(pwd):/current_dir asciidoctor/docker-asciidoctor asciidoctor -o /current_dir/docs/DevelopersGuide.html -b html5 -r asciidoctor-diagram /current_dir/DevelopersGuide.adoc
docker-pdf: DevelopersGuide.adoc
docker run -it -v $$(pwd):/current_dir asciidoctor/docker-asciidoctor asciidoctor-pdf -o /current_dir/docs/DevelopersGuide.pdf -b pdf -r asciidoctor-diagram /current_dir/DevelopersGuide.adoc