Skip to content

jekyll-remote-plantuml plugin to include plantuml diagram in jekyll website

License

Notifications You must be signed in to change notification settings

Patouche/jekyll-remote-plantuml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jekyll-remote-plantuml

security Build Status

A plugin for jekyll to use plantuml diagram inside your Jekyll for you website. This will use external resource to build plantuml diagram. Once created, the diagram is store on the filesystem to prevent any unnecessary diagram generation. So, using this plugin, provide a simple way to integrate plantuml diagramm without the Graphiz software or the using the plantuml jar file.

Installation

To install this plugin on Jekyll, you just have to follow the guideline of Jekyll documentation

Usage

To use the jekyll-remote-plantuml plugin, you just have to wrap you text between {% uml %} and {% enduml %} tags.

For example, to create a basic shema between Bob and Alice, you can write the following code :

{% uml %}
Bob -> Alice : Hello 
{% enduml %}

This will retrieve the binary from a remote provider and add it into the folder defined in your configuration.

Bob and Alice generated

The generated html will have be something like :

<img src="/assets/images/plantuml/765f88ab868d9706e797ff2c90c67a549a144c52adf0bf2e247d355cf981b9aa.png" />

Any update of the uml will regenerated the image file using the remote. If the uml is not modified, no request will be made on the remote provider.

Configuration

For now, the configuration is really poor. You can just change the remote provider and the location where are store the binary files.

plantuml:
  url:	 'http://www.plantuml.com/plantuml/png/{code}'
  assets:  '_images/plantuml/'

Notes

I'm sorry if it's sad code for a ruby developper which I'm not. I tried to do my best and to share it with the community. So please be lenient.

If you have any request, please leave a message and don't hesitate for any pull request.

License

This plugin is under the MIT license. See LICENSE.txt file for more details.

About

jekyll-remote-plantuml plugin to include plantuml diagram in jekyll website

Resources

License

Stars

Watchers

Forks

Packages

No packages published