# bflorat/architecture-document-template architecture

> Architecture diagram of the GitHub repository bflorat/architecture-document-template, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-06-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bflorat/architecture-document-template
- Repository: https://github.com/bflorat/architecture-document-template

## Overview

##### Project type and purpose
- This is not a runtime application but a documentation‐generation template repository.

##### File structure
- Top level:
- README.adoc / README.md / LICENSE.md – project overview, principles, license
- view-*.adoc and glossary.adoc – example Asciidoc files for each architecture view (application, development, sizing, infrastructure, security) and glossary
- blank-template/ – skeletal versions of the same Asciidoc files plus an export script (in export/) and sample resources
- export script (blank-template/export) – drives conversion of Asciidoc + PlantUML into target formats

##### README for additional insights
- Describes five self-contained architecture views, each divided into Constraints, NFR, Solution
- Specifies the use of Asciidoc, export tooling, PlantUML with C4 customization
- Encourages a “living documentation” workflow using Git

##### Diagramming recommendations
- “Asciidoc + .puml → Export Script → Asciidoctor & PlantUML → PDF/HTML”
- “Git commit → CI pipeline → generated artifacts”
- Blue for source modules (Asciidoc files, templates)
- Green for toolchain components (Asciidoctor, PlantUML, script)
- Yellow for outputs (PDF, HTML, ODT)
- Grey for external services (GitHub CI)

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% External Actors
    Author["Author Environment (IDE, Git CLI)"]:::external
    GitRepo["Git Repository"]:::external
    CI["CI/CD Pipeline (GitHub/GitLab)"]:::external

    %% Source Modules
    subgraph "Example Asciidoc Modules"
        direction TB
        README["README.adoc"]:::source
        LICENSE["LICENSE.md"]:::source
        ViewApp["view-application.adoc"]:::source
        ViewDev["view-development.adoc"]:::source
        ViewInfra["view-infrastructure.adoc"]:::source
        ViewSec["view-security.adoc"]:::source
        ViewSize["view-sizing.adoc"]:::source
        Glossary["glossary.adoc"]:::source
    end

    %% Diagram Definitions
    subgraph "Diagram Definitions"
        direction TB
        DetailDyn["detailed-application-design-dynamic.puml"]:::source
        DetailInv["detailed-application-design-inventory.puml"]:::source
        GeneralApp["general-application-design.puml"]:::source
        InfraPUML["infra.puml"]:::source
        Roles["roles.puml"]:::source
        ViewsODG["views.odg"]:::source
    end

    %% Blank Template
    subgraph "Blank Template Skeleton"
        direction TB
        BlankReadme["blank-template/README.adoc"]:::source
        BlankViewApp["blank-template/view-application.adoc"]:::source
        BlankViewDev["blank-template/view-development.adoc"]:::source
        BlankViewInfra["blank-template/view-infrastructure.adoc"]:::source
        BlankViewSec["blank-template/view-security.adoc"]:::source
        BlankViewSize["blank-template/view-sizing.adoc"]:::source
        BlankGlossary["blank-template/glossary.adoc"]:::source
        Resources["blank-template/resources"]:::source
    end

    %% Export Toolchain
    subgraph "Export Toolchain"
        direction TB
        ScriptDir["blank-template/export"]:::tool
        Asciidoctor["Asciidoctor"]:::tool
        PlantUML["PlantUML"]:::tool
    end

    %% Outputs
    subgraph "Generated Outputs"
        direction TB
        PDF["PDF Bundle"]:::output
        HTML["HTML Bundle"]:::output
        ODT["ODT Bundle"]:::output
    end

    %% Relationships
    Author -->|commits/pushes| GitRepo
    CI -->|triggers build| ScriptDir
    Author -->|runs export| ScriptDir
    GitRepo -->|contains sources| README
    GitRepo --> LICENSE
    GitRepo --> ViewApp
    GitRepo --> ViewDev
    GitRepo --> ViewInfra
    GitRepo --> ViewSec
    GitRepo --> ViewSize
    GitRepo --> Glossary
    GitRepo --> DetailDyn
    GitRepo --> DetailInv
    GitRepo --> GeneralApp
    GitRepo --> InfraPUML
    GitRepo --> Roles
    GitRepo --> ViewsODG
    GitRepo --> BlankReadme
    GitRepo --> BlankViewApp
    GitRepo --> BlankViewDev
    GitRepo --> BlankViewInfra
    GitRepo --> BlankViewSec
    GitRepo --> BlankViewSize
    GitRepo --> BlankGlossary
    GitRepo --> Resources

    %% Toolchain Flow
    DetailDyn --> PlantUML
    DetailInv --> PlantUML
    GeneralApp --> PlantUML
    InfraPUML --> PlantUML
    Roles --> PlantUML
    ViewsODG --> PlantUML

    PlantUML -->|generate diagrams| Asciidoctor
    ViewApp --> Asciidoctor
    ViewDev --> Asciidoctor
    ViewInfra --> Asciidoctor
    ViewSec --> Asciidoctor
    ViewSize --> Asciidoctor
    Glossary --> Asciidoctor
    BlankReadme --> Asciidoctor
    BlankViewApp --> Asciidoctor
    BlankViewDev --> Asciidoctor
    BlankViewInfra --> Asciidoctor
    BlankViewSec --> Asciidoctor
    BlankViewSize --> Asciidoctor
    BlankGlossary --> Asciidoctor

    Asciidoctor --> PDF
    Asciidoctor --> HTML
    Asciidoctor --> ODT

    ScriptDir --> PlantUML
    ScriptDir --> Asciidoctor

    %% Click Events
    click README "https://github.com/bflorat/architecture-document-template/blob/master/README.adoc"
    click LICENSE "https://github.com/bflorat/architecture-document-template/blob/master/LICENSE.md"
    click ViewApp "https://github.com/bflorat/architecture-document-template/blob/master/view-application.adoc"
    click ViewDev "https://github.com/bflorat/architecture-document-template/blob/master/view-development.adoc"
    click ViewInfra "https://github.com/bflorat/architecture-document-template/blob/master/view-infrastructure.adoc"
    click ViewSec "https://github.com/bflorat/architecture-document-template/blob/master/view-security.adoc"
    click ViewSize "https://github.com/bflorat/architecture-document-template/blob/master/view-sizing.adoc"
    click Glossary "https://github.com/bflorat/architecture-document-template/blob/master/glossary.adoc"
    click DetailDyn "https://github.com/bflorat/architecture-document-template/blob/master/diagrams/detailled-application-design-dynamic.puml"
    click DetailInv "https://github.com/bflorat/architecture-document-template/blob/master/diagrams/detailled-application-design-inventory.puml"
    click GeneralApp "https://github.com/bflorat/architecture-document-template/blob/master/diagrams/general-application-design.puml"
    click InfraPUML "https://github.com/bflorat/architecture-document-template/blob/master/diagrams/infra.puml"
    click Roles "https://github.com/bflorat/architecture-document-template/blob/master/diagrams/roles.puml"
    click ViewsODG "https://github.com/bflorat/architecture-document-template/blob/master/diagrams/views.odg"
    click BlankReadme "https://github.com/bflorat/architecture-document-template/blob/master/blank-template/README.adoc"
    click BlankViewApp "https://github.com/bflorat/architecture-document-template/blob/master/blank-template/view-application.adoc"
    click BlankViewDev "https://github.com/bflorat/architecture-document-template/blob/master/blank-template/view-development.adoc"
    click BlankViewInfra "https://github.com/bflorat/architecture-document-template/blob/master/blank-template/view-infrastructure.adoc"
    click BlankViewSec "https://github.com/bflorat/architecture-document-template/blob/master/blank-template/view-security.adoc"
    click BlankViewSize "https://github.com/bflorat/architecture-document-template/blob/master/blank-template/view-sizing.adoc"
    click BlankGlossary "https://github.com/bflorat/architecture-document-template/blob/master/blank-template/glossary.adoc"
    click Resources "https://github.com/bflorat/architecture-document-template/tree/master/blank-template/resources"
    click ScriptDir "https://github.com/bflorat/architecture-document-template/tree/master/blank-template/export"

    %% Styles
    classDef source fill:#D0E8FF,stroke:#0366d6,color:#0366d6
    classDef tool fill:#DFFFE0,stroke:#28a745,color:#28a745
    classDef output fill:#FFF5C3,stroke:#dbab09,color:#dbab09
    classDef external fill:#E8E8E8,stroke:#6a737d,color:#6a737d
```
