Enable kroki

This commit is contained in:
Dunya Kirkali 2024-09-06 18:27:54 +00:00
parent 4e8f6cde08
commit ddf73e147f
2 changed files with 13 additions and 4 deletions

View File

@ -15,17 +15,23 @@ ASCIIDOC_FLAGS = \
all: $(PDF_PATH) $(EPUB_PATH) all: $(PDF_PATH) $(EPUB_PATH)
$(PDF_PATH): $(ASCIIDOC_FILES) $(FIGURES) Makefile metadata.yaml | output $(PDF_PATH): book.adoc $(ASCIIDOC_FILES) $(FIGURES) Makefile metadata.yaml | output
asciidoctor-pdf book.adoc $(ASCIIDOC_FLAGS) \ asciidoctor-pdf book.adoc $(ASCIIDOC_FLAGS) \
-o $@ \ -o $@ \
-r asciidoctor-diagram \ -r asciidoctor-diagram \
-r asciidoctor-mathematical -r asciidoctor-mathematical \
-r asciidoctor-kroki \
-a allow-uri-read \
--safe-mode server
$(EPUB_PATH): $(ASCIIDOC_FILES) $(FIGURES) Makefile metadata.yaml | output $(EPUB_PATH): book.adoc $(ASCIIDOC_FILES) $(FIGURES) Makefile metadata.yaml | output
asciidoctor-epub3 book.adoc $(ASCIIDOC_FLAGS) \ asciidoctor-epub3 book.adoc $(ASCIIDOC_FLAGS) \
-o $@ \ -o $@ \
-r asciidoctor-diagram \ -r asciidoctor-diagram \
-r asciidoctor-mathematical -r asciidoctor-mathematical \
-r asciidoctor-kroki \
-a allow-uri-read \
--safe-mode server
count: count:
wc -w source/* wc -w source/*

View File

@ -11,6 +11,9 @@ Alexandra Thompson <name.lastname@foo.bar>
:front-image: backgrounds/cover.png :front-image: backgrounds/cover.png
:back-image: backgrounds/back-cover.png :back-image: backgrounds/back-cover.png
:imagesdir: figures :imagesdir: figures
:kroki-server-url: https://kroki.io
:kroki-fetch-diagram:
:kroki-data-uri:
include::source/front_matter.adoc[] include::source/front_matter.adoc[]