Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add barcode extension #459

Merged
merged 6 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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!
....