Skip to content

Commit

Permalink
Generate images in build folder
Browse files Browse the repository at this point in the history
The images generated by asciidoctor are now built into the created
'build' folder, more concretely in 'build/images'.
Inside the 'build' folder the documents are now placed inside
'build/adoc' (previously they were created in 'build').
  • Loading branch information
dgptha committed Nov 26, 2024
1 parent c1c72cb commit c69bfb1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
35 changes: 22 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,29 @@ XTRA_ADOC_OPTS :=
ASCIIDOCTOR_PDF := asciidoctor-pdf
ASCIIDOCTOR_HTML := asciidoctor
OPTIONS := --trace \
-a compress \
-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 \
--failure-level=ERROR
-a compress \
-a mathematical-format=svg \
-a revnumber=${VERSION} \
-a revremark=${REVMARK} \
-a revdate=${DATE} \
-a imagesoutdir=${BUILD_DIR}/images \
-a pdf-fontsdir=docs-resources/fonts \
-a pdf-theme=docs-resources/themes/riscv-pdf.yml \
$(XTRA_ADOC_OPTS) \
-D ${BUILD_DIR}/adoc \
--failure-level=ERROR
REQUIRES := --require=asciidoctor-bibtex \
--require=asciidoctor-diagram \
--require=asciidoctor-lists \
--require=asciidoctor-mathematical
-a compress \
-a mathematical-format=svg \
-a revnumber=${VERSION} \
-a revremark=${REVMARK} \
-a revdate=${DATE} \
-a imagesoutdir=${BUILD_DIR}/images \
-a pdf-fontsdir=docs-resources/fonts \
-a pdf-theme=docs-resources/themes/riscv-pdf.yml \
$(XTRA_ADOC_OPTS) \
-D ${BUILD_DIR}/adoc \
--failure-level=ERROR

.PHONY: all build clean build-container build-no-container build-docs

Expand Down
1 change: 1 addition & 0 deletions src/fusa-whitepaper.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ include::../docs-resources/global-config.adoc[]
:experimental:
:reproducible:
//:WaveDromEditorApp: app/wavedrom-editor.app
// imagesoutdir is overrided in Makefile
:imagesoutdir: images
//:srcdir: src
:bibtex-file: src/fusa-whitepaper.bib
Expand Down

0 comments on commit c69bfb1

Please sign in to comment.