Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

hexo-local-plantuml

0.0.1 • Public • Published

hexo-local-plantuml

This plugin generates the PlantUML images locally rather than using the service at http://www.plantuml.com/plantuml/.

This is necessary if you are using Hexo for private work and don't want your diagrams bounced off an external server.

Installation

$ npm install hexo-local-plantuml --save

Usage

{% plantuml %}
@startuml
Bob->Alice : hello
@enduml
{% endplantuml %}

Also you can put your definition in a "puml" or "plantuml" code block.

```puml
@startuml
Class01 <|-- Class02
@enduml
```

Configuration

You can configure this plugin in _config.yml.

plantuml:
  format: svg            # default is png
  asset_path: plant_uml  # default is puml
  svg_object: true       # use <object> Tag for svg files.

Additional requirements

Keywords

install

npm i hexo-local-plantuml

Downloadsweekly downloads

4

version

0.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability