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

Asciidoctorj does not preserve source file directory structure #1289

Open
netpyoung opened this issue Nov 28, 2024 · 2 comments
Open

Asciidoctorj does not preserve source file directory structure #1289

netpyoung opened this issue Nov 28, 2024 · 2 comments

Comments

@netpyoung
Copy link

netpyoung commented Nov 28, 2024

problem

Asciidoctorj does not preserve source file directory structure

Environment

$ ver

Microsoft Windows [Version 10.0.22631.4541]

$ java --version
java 22.0.2 2024-07-16
Java(TM) SE Runtime Environment (build 22.0.2+9-70)
Java HotSpot(TM) 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)

$ asciidoctorj --version
Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
AsciidoctorJ 2.5.13 (Asciidoctor 2.0.23) [https://asciidoctor.org]
Runtime Environment: jruby 9.4.7.0 (3.1.4)

status

I feel tired to installing gems so I tried to use asciidoctorj instead asciidoctor.

previous works like that.

asciidoctor -R . -D public -a stylesheet=my-asciidoctor.css clojure-complete-html.adoc **/*.adoc

gh-pages dir

It preserve directory structure.

So I tried to use asciidoctorj. But Asciidoctorj does not preserve source file directory structure

asciidoctorj -R . -D public -a stylesheet=my-asciidoctor.css clojure-complete-html.adoc **/*.adoc

$ dir public
 Volume in drive D is D
 Volume Serial Number is 1E7F-2C07

 Directory of D:\temp\clojure-complete\public

11/28/2024  09:03 AM    <DIR>          .
11/28/2024  08:39 AM    <DIR>          ..
11/28/2024  09:03 AM             5,021 asciidoctor.html
11/28/2024  09:03 AM             3,161 atom.html
11/28/2024  09:03 AM            17,557 boot.html
11/28/2024  09:03 AM           223,366 clojure-and-gof-design-patterns.html
11/28/2024  09:03 AM             6,601 clojure-complete-html.html
11/28/2024  09:03 AM            67,496 clojure-complete-pdf.html
11/28/2024  09:03 AM           129,807 collections-and-sequences.html
11/28/2024  09:03 AM               680 demo.html
11/28/2024  09:03 AM             1,433 design-patterns.html
11/28/2024  09:03 AM            33,664 destructuring.html
11/28/2024  09:03 AM            14,461 development-environments.html
11/28/2024  09:03 AM             5,298 emacs.html
11/28/2024  09:03 AM            42,721 flow-controls.html
...

It was flatten. It seems like bug.

Ref

@robertpanzer
Copy link
Member

Could you please try with asciidoctorj 3.0.0?

@netpyoung
Copy link
Author

@robertpanzer Thank you for reply.

it works as intended. - 3.0.0

$ asciidoctorj-3.0.0\bin\asciidoctorj --version
Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
AsciidoctorJ 3.0.0 (Asciidoctor 2.0.23) [https://asciidoctor.org]
Runtime Environment: jruby 9.4.8.0 (3.1.4)

but chocolatey still using 2.5.13

  • needs to update 3.0.0 if there is no problem
choco install asciidoctorj
Progress: Downloading asciidoctorj 2.5.13... 100%[chocolatey]

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

No branches or pull requests

2 participants