Code Monkey home page Code Monkey logo

plantuml-markdown's Introduction

plantuml-markdown

Example project showing how to use PlantUML and embed UML diagrams into a GitHub markdown

Often the need arises how to create and share UML diagrams for architecture documentation without pain-in-the-**** tools like MS Visio.

After some research, I found this great post about PlantUML. There are simply 2 components you need:

  1. A PlantUML editor - simply use http://www.plantuml.com/plantuml/uml/ (or host your own on-premise with the plantUML Docker image)
  2. Integrate PlantUML render engine with GitHub README.md markdown

1. A PlantUML editor

Visit the online editor http://www.plantuml.com/plantuml/uml/ and write your UML diagram with code & use a cheat sheet like this: https://ogom.github.io/draw_uml/plantuml/

This project contains an example example-uml.iuml:

@startuml
actor client
node app
node car
node tshirt

car -> app
app -> client
client -> tshirt
@enduml

There's also an IntelliJ plugin for PlantUML.

2. Integrate PlantUML render engine with GitHub markdown

This part is simple, yet effective :) Simply use the PlantUML proxy http://www.plantuml.com/plantuml/proxy to render your *.iuml files and embed them like images:

![your-UML-diagram-name](http://www.plantuml.com/plantuml/proxy?cache=no&src=https://raw.githubusercontent.com/jonashackt/plantuml-markdown/master/example-uml.iuml)

Use the RAW version of your *.iuml files like that: https://raw.githubusercontent.com/jonashackt/plantuml-markdown/master/example-uml.iuml and prefix it with src=.

Also you should use the cache=no option so that GitHub always renders the currently committed version of your PlantUML *.iuml files.

That's all - simply see the diagram live:

example-uml

plantuml-markdown's People

Contributors

jonashackt avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.