Skip to content

Commit 56c9097

Browse files
authored
Merge pull request #459 from jeromeag/feature/barcode
feature: add `barcode` extension
2 parents 9e971aa + 2730fd1 commit 56c9097

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

Dockerfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ ARG kramdown_asciidoc_version=2.1.0
9696
ARG asciidoctor_bibtex_version=0.9.0
9797
ARG asciidoctor_kroki_version=0.10.0
9898
ARG asciidoctor_reducer_version=1.0.2
99+
ARG barby_version=0.6.8
100+
ARG rqrcode_version=2.2.0
101+
ARG chunky_png_version=1.4.0
99102

100103
ENV ASCIIDOCTOR_CONFLUENCE_VERSION=${asciidoctor_confluence_version} \
101104
ASCIIDOCTOR_DIAGRAM_VERSION=${asciidoctor_diagram_version} \
@@ -106,7 +109,10 @@ ENV ASCIIDOCTOR_CONFLUENCE_VERSION=${asciidoctor_confluence_version} \
106109
KRAMDOWN_ASCIIDOC_VERSION=${kramdown_asciidoc_version} \
107110
ASCIIDOCTOR_BIBTEX_VERSION=${asciidoctor_bibtex_version} \
108111
ASCIIDOCTOR_KROKI_VERSION=${asciidoctor_kroki_version} \
109-
ASCIIDOCTOR_REDUCER_VERSION=${asciidoctor_reducer_version}
112+
ASCIIDOCTOR_REDUCER_VERSION=${asciidoctor_reducer_version} \
113+
BARBY_VERSION=${barby_version} \
114+
RQRCODE_VERSION=${rqrcode_version} \
115+
CHUNKY_PNG_VERSION=${chunky_png_version}
110116

111117
## Always use the latest dependencies versions available for the current Alpine distribution
112118
# hadolint ignore=DL3018,DL3028
@@ -135,6 +141,9 @@ RUN apk add --no-cache --virtual .rubymakedepends \
135141
"asciidoctor-bibtex:${ASCIIDOCTOR_BIBTEX_VERSION}" \
136142
"asciidoctor-kroki:${ASCIIDOCTOR_KROKI_VERSION}" \
137143
"asciidoctor-reducer:${ASCIIDOCTOR_REDUCER_VERSION}" \
144+
"barby:${BARBY_VERSION}" \
145+
"rqrcode:${RQRCODE_VERSION}" \
146+
"chunky_png:${CHUNKY_PNG_VERSION}" \
138147
&& apk del -r --no-cache .rubymakedepends \
139148
# Fixes an issue with 2 nokogiri versions breaking asciidoctor-epub3 on arm64
140149
&& if [[ ${TARGETARCH} == arm64 ]]; then gem uninstall nokogiri -v '1.16.0'; fi

tests/fixtures/sample-with-diagram.adoc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,32 @@ play 1--* play_player
222222
player 1--* play_player
223223
----
224224

225+
== Barcode
226+
227+
[codabar]
228+
----
229+
A31117013206375A
230+
----
231+
232+
[qrcode, format="png", xdim=4]
233+
....
234+
Hello World!
235+
225236
=== Gnuplot
226237
http://www.gnuplot.info/
227238
228239
[gnuplot]
229240
....
230241
plot sin(x)
242+
243+
== Barcode
244+
245+
[codabar]
246+
----
247+
A31117013206375A
248+
----
249+
250+
[qrcode, format="png", xdim=4]
251+
....
252+
Hello World!
231253
....

0 commit comments

Comments
 (0)