From 8eb7c3ec39a9dbb05e25d35c3f7118b57825cc1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Arbez-Gindre?= Date: Sat, 5 Oct 2024 15:44:24 +0200 Subject: [PATCH 1/2] Add a TikZ example for asciidoctor-diagram test --- tests/fixtures/sample-with-diagram.adoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/fixtures/sample-with-diagram.adoc b/tests/fixtures/sample-with-diagram.adoc index f69d8063..7e0ce68e 100644 --- a/tests/fixtures/sample-with-diagram.adoc +++ b/tests/fixtures/sample-with-diagram.adoc @@ -251,3 +251,18 @@ A31117013206375A .... Hello World! .... + +=== TikZ +https://tikz.net/ + +[tikz] +.... +\begin{tikzpicture} + +\draw (-2,0) -- (2,0); +\filldraw [gray] (0,0) circle (2pt); +\draw (-2,-2) .. controls (0,0) .. (2,-2); +\draw (-2,2) .. controls (-1,0) and (1,0) .. (2,2); + +\end{tikzpicture} +.... From 0577d5177f3725e2819ea4c29f87557c60443861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Arbez-Gindre?= Date: Sat, 5 Oct 2024 16:22:03 +0200 Subject: [PATCH 2/2] Intall minimum packages for TikZ building --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 57ac84d9..8ed30541 100644 --- a/Dockerfile +++ b/Dockerfile @@ -79,6 +79,8 @@ RUN apk add --no-cache \ ruby-ffi \ ruby-mathematical \ ruby-rake \ + texlive \ + texmf-dist-latexextra \ ttf-liberation \ ttf-dejavu \ tzdata \ @@ -86,6 +88,9 @@ RUN apk add --no-cache \ which \ font-noto-cjk +RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing \ + pdf2svg + ARG asciidoctor_confluence_version=0.0.2 ARG asciidoctor_diagram_version=2.3.1 ARG asciidoctor_epub3_version=2.1.3