LivingDocDoclet is a Javadoc Doclet inspired by concepts from the "Living Documentation" book by Cyrille Martraire. It can be used to create architectural documentation with particular reference to Hexagonal Architecture and documentation of projects compatible with Domain Driven Design.
...
...
$ javadoc -language pl -category architecture \
-doclet org.cricketmsf.livingdocumentation.LivingDocDoclet \
-docletpath ./lib/LivingDocumentation.jar \
-classpath ./lib/cricket-1.3.0-alpha.12.jar \
./src/java/com/myapp/*.java
LivingDocDoclet may be used via a doclet element in Ant javadoc task:
<javadoc destdir="target/javadoc"
sourcepath="src"
overview="src/overview.md">
<doclet name="org.cricketmsf.livingdocumentation.LivingDocDoclet"
pathref="livingdocdoclet.classpath">
<param name="--base-dir" value="${basedir}"/>
<param name="--attribute" value="-file=glossary.md"/>
<param name="--attribute" value="-category=glossary"/>
<param name="--attribute" value="-syntax=markdown"/>
</doclet>
</javadoc>
-file <file>
Sets the output file location. If <file>
is a relative path name, it is assumed to be relative to the --base-dir
directory.
-category <doccategory>
Sets the document category. It can be glossary
or architecture
. The default is glossary
.
-syntax <syntax>
Sets the syntax usedto generate the document. It can be markdown
or asciidoc
. The default is markdown
.
-context <context>
Includes only classes with BoundedContext
annotation named <context>
. With this option all Bounded Contexts will be included.
-type <type>
Only classes annotated with selected building block type will be included. It can be one of event
, entity
, feature
, service
.
Without this option, all types will be included.