Skip to content

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 ppkarwasz force-pushed the feature/asciidoctor-converter branch from d022f04 to 327a78d Compare February 2, 2024 15:47
@ppkarwasz ppkarwasz force-pushed the feature/asciidoctor-converter branch from 327a78d to 40e29fc Compare February 2, 2024 16:51
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
@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