Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 1.74 KB

documentation-automatic.md

File metadata and controls

22 lines (14 loc) · 1.74 KB

Automatic documentation template

Structurizr for Java includes an automatic documentation template, which will scan a given directory and automatically add all Markdown or AsciiDoc files in that directory. Each file must represent a separate section, and the second level heading ("## Section Title" in Markdown and "== Section Title" in AsciiDoc) will be used as the section name.

Example

To use this template, create an instance of the AutomaticDocumentationTemplate class. You can then add documentation sections as needed, each associated with a software system in your software architecture model, using Markdown or AsciiDoc. For example:

File documentationRoot = new File("./structurizr-examples/src/com/structurizr/example/documentation/automatic");

AutomaticDocumentationTemplate template = new AutomaticDocumentationTemplate(workspace);
template.addSections(softwareSystem, documentationRoot);

Structurizr will create navigation controls based upon the the sections in the documentation, and the software systems they have been associated with. See AutomaticDocumentationTemplateExample.java for the full code, and https://structurizr.com/share/35971/documentation to see the rendered documentation.

More information

See Help - Documentation for more information about how headings are rendered, and how to embed diagrams from you workspace into the documentation.