Skip to content

Commit

Permalink
chore: remove dependency on Ruby and Asciidoctor-pdf (#2703)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Flore-Thébault <[email protected]>
  • Loading branch information
themr0c authored Mar 15, 2024
1 parent 9c78e14 commit 86a1883
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 1 addition & 10 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ RUN set -x \
nodejs \
python3-pip \
rsync \
rubygem-bundler \
shyaml \
tar \
tox \
Expand All @@ -64,7 +63,6 @@ RUN set -x \
&& dnf clean all --quiet \
&& dot -v \
&& node --version \
&& ruby --version \
&& vale --version

# Install Python packages
Expand All @@ -74,13 +72,6 @@ RUN set -x \
yq \
&& yq --version

# Install Ruby packages (requires Ruby 2.7)
RUN set -x \
&& gem install asciidoctor-pdf \
&& which asciidoctor-pdf \
&& asciidoctor --version \
&& asciidoctor-pdf --version

# WORKDIR is a Node.js prerequisite
WORKDIR /tmp
# Avoid error: Local gulp not found in /projects
Expand All @@ -96,6 +87,7 @@ RUN set -x \
&& npm install --no-save --global asciidoctor-kroki \
&& npm install --no-save --global gulp gulp-cli gulp-connect \
&& npm install --no-save --global js-yaml \
&& npm install --no-save --global asciidoctor \
&& which antora \
&& antora --version \
&& rm /tmp/* --recursive --force
Expand All @@ -112,7 +104,6 @@ WORKDIR /projects
RUN set -x \
&& antora --version \
&& asciidoctor --version \
&& asciidoctor-pdf --version \
&& bash --version \
&& curl --version \
&& git --version \
Expand Down
2 changes: 1 addition & 1 deletion antora-assembler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ root_level: 1
component_versions: '*'
section_merge_strategy: fuse
build:
command: asciidoctor-pdf --attribute toclevels=5 --attribute antora-assembler=true --trace --sourcemap
command: asciidoctor --attribute toclevels=5 --attribute antora-assembler=true --trace
keep_aggregate_source: true

0 comments on commit 86a1883

Please sign in to comment.