Skip to content

javathought/livingdoc-maven-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Living Documentation Maven Plugin

Objective

Use maven plugin to generate project documentation.

Glossary

description

Generate a glossary document from code analysis :

  • the entry is a the name of a class marked with a specific annotation

  • the definition is the javadoc of this class

mojo

glossary

Configuration

annotation

the short name of annotation used to find glossary entries (default is Glossary)

format

the format of output document : asciidoc, html (default is html)

sources

the source folder to scan (default is src/main/java)

outputDirectory

the outpout directory (default is target/generated-docs)

Usage

Code
/**
    A little pet with a pv and hp
 */
@Glossary
public class Pokemon {
...
}
Maven
    <plugin>
        <groupId>io.github.livingdocumentation</groupId>
        <artifactId>livingdoc-maven-plugin</artifactId>
        <version>${plugin.livingdoc-maven-plugin.version}</version>
        <executions>
            <execution>
                <id>glossary</id>
                <phase>generate-resources</phase>
                <goals>
                    <goal>glossary</goal>
                </goals>
            </execution>
        </executions>
    </plugin>

Word Cloud

description

Generate a word cloud from code analysis :

  • the entry is a the name of a class marked with a specific annotation

  • the definition is the javadoc of this class

mojo

wordcloud

Configuration

sources

the source folder to scan (default is src/main/java)

outputDirectory

the outpout directory (default is target/generated-docs)

The plugin need the maven-remote-resources-plugin to import html dependencies (js, css) for the doc.

Usage

Maven
            <plugin>
                <groupId>io.github.livingdocumentation</groupId>
                <artifactId>livingdoc-maven-plugin</artifactId>
                <version>${plugin.livingdoc-maven-plugin.version}</version>
                <executions>
                    <execution>
                        <id>wordcloud</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>wordcloud</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-remote-resources-plugin</artifactId>
                <version>1.5</version>
                <configuration>
                    <resourceBundles>
                        <resourceBundle>io.github.livingdocumentation:shared-resources:${plugin.livingdoc-maven-plugin.version}</resourceBundle>
                    </resourceBundles>
                    <outputDirectory>target/generated-docs</outputDirectory>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>process</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

About

A maven plugin to generate living documentation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 78.7%
  • Java 14.8%
  • CSS 3.3%
  • HTML 3.2%