Skip to content

Commit

Permalink
Merge pull request #459 from jeromeag/feature/barcode
Browse files Browse the repository at this point in the history
feature: add `barcode` extension
  • Loading branch information
dduportal authored Jul 2, 2024
2 parents 9e971aa + 2730fd1 commit 56c9097
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ ARG kramdown_asciidoc_version=2.1.0
ARG asciidoctor_bibtex_version=0.9.0
ARG asciidoctor_kroki_version=0.10.0
ARG asciidoctor_reducer_version=1.0.2
ARG barby_version=0.6.8
ARG rqrcode_version=2.2.0
ARG chunky_png_version=1.4.0

ENV ASCIIDOCTOR_CONFLUENCE_VERSION=${asciidoctor_confluence_version} \
ASCIIDOCTOR_DIAGRAM_VERSION=${asciidoctor_diagram_version} \
Expand All @@ -106,7 +109,10 @@ ENV ASCIIDOCTOR_CONFLUENCE_VERSION=${asciidoctor_confluence_version} \
KRAMDOWN_ASCIIDOC_VERSION=${kramdown_asciidoc_version} \
ASCIIDOCTOR_BIBTEX_VERSION=${asciidoctor_bibtex_version} \
ASCIIDOCTOR_KROKI_VERSION=${asciidoctor_kroki_version} \
ASCIIDOCTOR_REDUCER_VERSION=${asciidoctor_reducer_version}
ASCIIDOCTOR_REDUCER_VERSION=${asciidoctor_reducer_version} \
BARBY_VERSION=${barby_version} \
RQRCODE_VERSION=${rqrcode_version} \
CHUNKY_PNG_VERSION=${chunky_png_version}

## Always use the latest dependencies versions available for the current Alpine distribution
# hadolint ignore=DL3018,DL3028
Expand Down Expand Up @@ -135,6 +141,9 @@ RUN apk add --no-cache --virtual .rubymakedepends \
"asciidoctor-bibtex:${ASCIIDOCTOR_BIBTEX_VERSION}" \
"asciidoctor-kroki:${ASCIIDOCTOR_KROKI_VERSION}" \
"asciidoctor-reducer:${ASCIIDOCTOR_REDUCER_VERSION}" \
"barby:${BARBY_VERSION}" \
"rqrcode:${RQRCODE_VERSION}" \
"chunky_png:${CHUNKY_PNG_VERSION}" \
&& apk del -r --no-cache .rubymakedepends \
# Fixes an issue with 2 nokogiri versions breaking asciidoctor-epub3 on arm64
&& if [[ ${TARGETARCH} == arm64 ]]; then gem uninstall nokogiri -v '1.16.0'; fi
Expand Down
22 changes: 22 additions & 0 deletions tests/fixtures/sample-with-diagram.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,32 @@ play 1--* play_player
player 1--* play_player
----

== Barcode

[codabar]
----
A31117013206375A
----

[qrcode, format="png", xdim=4]
....
Hello World!
=== Gnuplot
http://www.gnuplot.info/
[gnuplot]
....
plot sin(x)

== Barcode

[codabar]
----
A31117013206375A
----

[qrcode, format="png", xdim=4]
....
Hello World!
....

0 comments on commit 56c9097

Please sign in to comment.