Skip to content

Commit

Permalink
Document include-code supports XML
Browse files Browse the repository at this point in the history
Issue gh-11
  • Loading branch information
rwinch committed Mar 6, 2024
1 parent aa78c50 commit 1c3fbda
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ The attribute value may be one of the following keywords:
*require name:* @springio/asciidoctor-extensions or @springio/asciidoctor-extensions/include-code-extension

The include code extension provides the `include-code` block macro.
This macro generates code (i.e., source) blocks by importing auto-discovered code files in one or more languages (currently only Java, Kotlin, or Groovy) from preconfigured locations.
This macro generates code (i.e., source) blocks by importing auto-discovered code files in one or more languages (currently only XML, Java, Kotlin, or Groovy) from preconfigured locations.
The location is defined first by an AsciiDoc attribute, then by the ID of the nearest ancestor section or document.
The ID is converted to a path by removing all `-` characters and replacing all `.` characters with `/`.
When searching, the extension appends the appropriate file extension for each configured language.
Expand All @@ -305,6 +305,10 @@ The following languages are supported by convention based imports:
|===
|Language |Root Directory Attribute| File Extension

|XML
|include-xml
|.xml

|Java
|include-java
|.java
Expand Down

0 comments on commit 1c3fbda

Please sign in to comment.