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

Quarkus Asciidoc plugin #43328

Open
rmanibus opened this issue Sep 17, 2024 · 11 comments
Open

Quarkus Asciidoc plugin #43328

rmanibus opened this issue Sep 17, 2024 · 11 comments
Labels
area/quarkiverse This issue/PR is part of the Quarkiverse organization kind/extension-proposal Discuss and Propose new extensions

Comments

@rmanibus
Copy link
Contributor

Description

Interested in this extension, please +1 via the emoji/reaction feature of GitHub (top right).

Repository name

quarkus-asciidoc

Short description

serve documentation along with your application

Repository Homepage URL

https://quarkiverse.github.io/quarkiverse-docs/quarkus-asciidoc/dev/

Repository Topics

  • quarkus-extension
  • documentation
    ...

Team Members

  • rmanibus

Additional context

Objective:

  • process Asciidoc file to html
  • expose html in non application root (q/docs)
@rmanibus rmanibus added area/quarkiverse This issue/PR is part of the Quarkiverse organization kind/extension-proposal Discuss and Propose new extensions labels Sep 17, 2024
@mkouba
Copy link
Contributor

mkouba commented Sep 17, 2024

@rmanibus FYI there is also a proposal to support asciidoc in Qute Web: quarkiverse/quarkus-qute-web#95

It's not the same but I suppose that the functionality is very similar.

CC @mcruzdev

@rmanibus
Copy link
Contributor Author

this seems to deviate a little bit from the initial objective of the Qute web extension (it does not really involve Qute)

@mkouba
Copy link
Contributor

mkouba commented Sep 17, 2024

this seems to deviate a little bit from the initial objective of the Qute web extension (it does not really involve Qute)

From my POV it's a subset of the proposed Qute web extension feature where the whole template is automatically surrounded by {#asciidoc}... That said, it's definitely not the same as I already mentioned in my previous comment. But my point is that the problem could be probably solved with that extension 🤷.

@mcruzdev
Copy link
Contributor

mcruzdev commented Sep 17, 2024

@rmanibus do you mean to expose a documentation located in a docs folder by example... and serve it with Quarkus?
If so, we are working on a similar extension https://github.com/quarkiverse/quarkus-roq, this one was generated with Roq.

The goal of the quarkiverse/quarkus-qute-web#95 is just to parse asciidoc to HTML.

@rmanibus
Copy link
Contributor Author

@mcruzdev yes that's exactly what I am looking for, that's awesome I will take a look !

@rmanibus
Copy link
Contributor Author

@mcruzdev I took some time to dig a little bit into the Roq extension and it looks awesome !
The only missing piece is that I would love to generate my doc using asciidoctorj

Do you have any recommendation on how to do this ?
Should I contribute a new module similar to roq-frontmatter, using asciidoctorj ?
Or could we use the roq-generator for this ?

@mcruzdev
Copy link
Contributor

mcruzdev commented Sep 27, 2024

Should I contribute a new module similar to roq-frontmatter, using asciidoctorj ?

Hi @rmanibus, actually there is no support for asciidoc I was adding it to Quarkus Qute Web extension.

Or could we use the roq-generator for this ?

You can use roq-generator to extract your web application into static files, but as I mentioned there is no support for asciidoc at the moment.

Another point is what @maxandersen commented here.

@maxandersen
Copy link
Member

There are two usecases here - one is having an extension that takes care of good asciidoctorj support - the other is the qute/web/roq integration.

Given that asciidoctorj is massive when it comes to dependency chain and startup time but does offer larger feature set - would it make sense to have both a quarkus-asciidoctorj extension and a quarkus-asciidoc-java extension which could be wired up to roq independently?

@maxandersen
Copy link
Member

note, both of those could be in the same repo - just different variants.

@rmanibus
Copy link
Contributor Author

I was not aware of Asciidoc java. Is it another implementation or just a wrapper around the original binary?

@maxandersen
Copy link
Member

It's a pure java version - it is not trying to replicate all the functionality of asciidoctor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/quarkiverse This issue/PR is part of the Quarkiverse organization kind/extension-proposal Discuss and Propose new extensions
Projects
None yet
Development

No branches or pull requests

4 participants