From aa2db3575f833ca98914fad8d28b9d007be2ee9a Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Sun, 5 May 2024 19:58:02 +0200 Subject: [PATCH] Makefile: Use the kroki service to generate diagrams It allows us to have the asciidoctor diagram properly visible from github and from the generated PDF. Signed-off-by: Samuel Ortiz --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 01765a0..21641dd 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,7 @@ ASCIIDOCTOR_PDF := asciidoctor-pdf ASCIIDOCTOR_HTML := asciidoctor OPTIONS := --trace \ -a compress \ + -a allow-uri-read \ -a mathematical-format=svg \ -a revnumber=${VERSION} \ -a revremark=${REVMARK} \ @@ -43,11 +44,12 @@ OPTIONS := --trace \ -a pdf-fontsdir=docs-resources/fonts \ -a pdf-theme=docs-resources/themes/riscv-pdf.yml \ $(XTRA_ADOC_OPTS) \ - -D build \ + -D build \ --failure-level=ERROR REQUIRES := --require=asciidoctor-bibtex \ --require=asciidoctor-diagram \ - --require=asciidoctor-mathematical + --require=asciidoctor-mathematical \ + --require=asciidoctor-kroki .PHONY: all build clean build-container build-no-container build-docs