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

Behaves differently to asciidoctor command when converting a directory #1135

Closed
AlexCzar opened this issue Dec 16, 2022 · 0 comments · Fixed by #1137
Closed

Behaves differently to asciidoctor command when converting a directory #1135

AlexCzar opened this issue Dec 16, 2022 · 0 comments · Fixed by #1137

Comments

@AlexCzar
Copy link

AlexCzar commented Dec 16, 2022

Ruby variant of asciidoctor produces output directory that is a mirror of src directory with adoc files converted to html
; asciidoctor -R srcdir -D targetdir srcdir/'**/*.adoc'
Whereas asciidoctorj variant:
; asciidoctorj -R srcdir -D targetdir srcdir/'**/*.adoc'
produces flat output directory containing all html files at root level.

Ruby asciidoctor's approach is of course preferred.

Environment

; asciidoctor --version 
Asciidoctor 2.0.18 [https://asciidoctor.org]
Runtime Environment (ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux-gnu]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)

; asciidoctorj --version 2>/dev/null
AsciidoctorJ 2.5.7 (Asciidoctor 2.0.18) [https://asciidoctor.org]
Runtime Environment: jruby 9.3.8.0 (2.6.8)
robertpanzer added a commit to robertpanzer/asciidoctorj that referenced this issue Jan 8, 2023
robertpanzer added a commit that referenced this issue Jan 22, 2023
…srcdir

Fixes #1135. Target file name should be relative to destination dir i…
robertpanzer added a commit to robertpanzer/asciidoctorj that referenced this issue Nov 19, 2023
… to destination dir if source dir is given.
robertpanzer added a commit to robertpanzer/asciidoctorj that referenced this issue Nov 19, 2023
… should be relative to destination dir if source dir is given.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant