Skip to content

Project to help you to export .puml diagrams to PNG or SVG locally using Docker.

License

Notifications You must be signed in to change notification settings

NeowayLabs/plantuml-diagram-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlantUML image generator

This simple project aims to simplify the way we generate images (PNG or SVG) from PlantUML files locally.

It already has support for creating images using C4 + PlantUML structure.

Requirements:

  • Docker;
  • Make;

How to use

We use Makefile to simplify how we generate images. Here's the current targets:

# Build
build_image:    Build Docker image for neo-plantuml


# Image generation
export_png:     Export diagrams as PNG. Target folder: diagrams/outputs 
export_svg:     Export diagrams as SVG. Target folder: diagrams/outputs 
export_images:  Export diagrams as both PNG and SVG. Target folder: diagrams/outputs

Steps:

  1. Create a diagrams folder in the root directory.
  2. Add your plantuml file to diagrams;
  3. Build project image using make build_image;
  4. Use Makefile targets to create your images. Ex: make export_png;

The final structure will look something like this:

~$ tree
.
├── diagrams
│   └── ... your diagram .puml files
├── outputs
│   └── ... your diagram images as png or svg
├── Dockerfile
├── Makefile
└── README.md

You can edit or make any changes you deem necessary to your workflow.

About

Project to help you to export .puml diagrams to PNG or SVG locally using Docker.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published