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

Add Javadoc to Asciidoc converter #101

Merged
merged 6 commits into from
Feb 8, 2024
Merged

Conversation

ppkarwasz
Copy link
Contributor

@ppkarwasz ppkarwasz commented Jan 31, 2024

We add a converter between Javadoc and Asciidoc that converts:

We provide a primitive implementation of the AsciiDoctorJ API that converts the AST back into a text document.

Part of apache/logging-log4j2#1956

ppkarwasz and others added 2 commits February 6, 2024 12:36
We add a converter between Javadoc and Asciidoc that converts:

 * from a [`DocCommentTree`](https://docs.oracle.com/en/java/javase/17/docs/api/jdk.compiler/com/sun/source/doctree/DocCommentTree.html),
   provided by the `javac` compiler or `javadoc` tool,
 * to an AsciiDoctorJ [`Document`](https://javadoc.io/static/org.asciidoctor/asciidoctorj/3.0.0-alpha.2/org/asciidoctor/ast/Document.html).

We provide a primitive implementation of the AsciiDoctorJ API that
converts the AST back into a text document.
Finalize and otherwise protect implementation classes.

Co-authored-by: Volkan Yazıcı <volkan@yazi.ci>
@ppkarwasz ppkarwasz force-pushed the feature/asciidoctor-converter branch from 9de5f56 to 6e01fa9 Compare February 6, 2024 11:37
@ppkarwasz ppkarwasz force-pushed the feature/asciidoctor-converter branch from d34a4b0 to aa56053 Compare February 8, 2024 08:41
If we encounter a `<pre>` element with content containing XML elements,
we classify it as XML, otherwise Java.

The maximal common indentation is stripped from the content of a `<pre>`
tag.
@ppkarwasz ppkarwasz merged commit 6cda1cb into main Feb 8, 2024
7 checks passed
@ppkarwasz ppkarwasz deleted the feature/asciidoctor-converter branch February 8, 2024 12:38
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 this pull request may close these issues.

2 participants