Skip to content

Commit

Permalink
Makefile: Use the kroki service to generate diagrams
Browse files Browse the repository at this point in the history
It allows us to have the asciidoctor diagram properly visible from
github and from the generated PDF.

Signed-off-by: Samuel Ortiz <sameo@rivosinc.com>
  • Loading branch information
sameo committed May 7, 2024
1 parent 04d39b3 commit aa2db35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,20 @@ 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} \
-a revdate=${DATE} \
-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

Expand Down

0 comments on commit aa2db35

Please sign in to comment.