-
-
Notifications
You must be signed in to change notification settings - Fork 61
/
Makefile
27 lines (21 loc) · 1.06 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
# gem install asciidoctor asciidoctor-diagram coderay
docs/DevelopersGuide.html: DevelopersGuide.adoc AppendixDiagrams.adoc AppendixFulcroErrorsAndWarnings.adoc
asciidoctor -o docs/DevelopersGuide.html -b html5 -r ./d2-blocks.rb -r asciidoctor-diagram DevelopersGuide.adoc
# Requires asciidoctor-pdf, see readme
docs/DevelopersGuide.pdf: DevelopersGuide.adoc AppendixDiagrams.adoc AppendixFulcroErrorsAndWarnings.adoc
asciidoctor-pdf -o docs/DevelopersGuide.pdf -b pdf -r ./d2-pdf.rb -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/