Skip to content

Commit

Permalink
specification: Enable asciidoctor pre-processing
Browse files Browse the repository at this point in the history
To properly build the mermaid diagrams into the resulting PDF.

Signed-off-by: Samuel Ortiz <sameo@rivosinc.com>
  • Loading branch information
sameo committed Apr 29, 2024
1 parent 20d182d commit 5485062
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions specification/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CONTAINER_RUNTIME ?= docker
CONTAINER_RUN := ${CONTAINER_RUNTIME} run --rm \
CONTAINER_RUN := ${CONTAINER_RUNTIME} run --privileged --rm \
-v ${PWD}:/build -w /build \
riscvintl/riscv-docs-base-container-image:latest

Expand All @@ -12,13 +12,13 @@ OPTIONS := --trace \
-a mathematical-format=svg \
-a pdf-fontsdir=docs-resources/fonts \
-a pdf-style=docs-resources/themes/riscv-pdf.yml \
-a allow-uri-read \
--failure-level=ERROR
REQUIRES := --require=asciidoctor-bibtex \
--require=asciidoctor-diagram \
--require=asciidoctor-mathematical
REQUIRES := --require=asciidoctor-bibtex \
--require=asciidoctor-diagram \
# --require=./preprocessor.rb \
--require=asciidoctor-mathematical \
--require=./preprocessor.rb \
--require=asciidoctor-kroki \
--require=asciidoctor-mathematical

.PHONY: all build clean build-container build-no-container
Expand Down
Binary file modified specification/riscv-cove-io.pdf
Binary file not shown.

0 comments on commit 5485062

Please sign in to comment.