java.lang.Object
org.springframework.modulith.docs.Asciidoctor
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionrenderBeanReferences(org.springframework.modulith.core.ApplicationModule module) renderEventsListenedTo(org.springframework.modulith.core.ApplicationModule module) renderGeneralInclude(String componentsFilename) renderHeadline(int i, String modules) renderPlantUmlInclude(String componentsFilename) renderPublishedEvents(org.springframework.modulith.core.ApplicationModule module) renderSpringBeans(org.springframework.modulith.core.ApplicationModule module, Documenter.CanvasOptions options) static Stringstatic StringstartTable(String tableSpec) toAsciidoctor(String source) toBulletPoint(String source) toInlineCode(com.tngtech.archunit.core.domain.JavaClass type) toInlineCode(String source) Turns the given source string into inline code.toInlineCode(org.springframework.modulith.core.SpringBean bean) typesToBulletPoints(List<com.tngtech.archunit.core.domain.JavaClass> types) static AsciidoctorwithJavadocBase(org.springframework.modulith.core.ApplicationModules modules, String javadocBase) Creates a newAsciidoctorinstance for the givenApplicationModulesand Javadoc base URI.static AsciidoctorwithoutJavadocBase(org.springframework.modulith.core.ApplicationModules modules) Creates a newAsciidoctorinstance for the givenApplicationModules.static StringwriteTableRow(String... columns)
-
Method Details
-
withJavadocBase
public static Asciidoctor withJavadocBase(org.springframework.modulith.core.ApplicationModules modules, @Nullable String javadocBase) Creates a newAsciidoctorinstance for the givenApplicationModulesand Javadoc base URI.- Parameters:
modules- must not be null.javadocBase- can be null.- Returns:
- will never be null.
-
withoutJavadocBase
public static Asciidoctor withoutJavadocBase(org.springframework.modulith.core.ApplicationModules modules) Creates a newAsciidoctorinstance for the givenApplicationModules.- Parameters:
modules- must not be null.- Returns:
- will never be null.
-
toInlineCode
Turns the given source string into inline code.- Parameters:
source- must not be null.- Returns:
-
toInlineCode
-
toInlineCode
-
renderSpringBeans
public String renderSpringBeans(org.springframework.modulith.core.ApplicationModule module, Documenter.CanvasOptions options) -
renderPublishedEvents
-
renderEventsListenedTo
-
renderConfigurationProperties
public String renderConfigurationProperties(List<ConfigurationProperties.ModuleProperty> properties) -
typesToBulletPoints
-
toBulletPoint
-
startTable
-
startOrEndTable
-
writeTableRow
-
toAsciidoctor
-
renderBeanReferences
- Parameters:
module-- Returns:
-
renderHeadline
-
renderPlantUmlInclude
-
renderGeneralInclude
-