mdoc-modifier-plantuml

Mdoc Modifier is a set of modifiers

License

License

MIT
Categories

Categories

Ant Build Tools UML Business Logic Libraries Documents Processing
GroupId

GroupId

io.github.mvillafuertem
ArtifactId

ArtifactId

mdoc-modifier-plantuml_2.13
Last Version

Last Version

0.1
Release Date

Release Date

Type

Type

jar
Description

Description

mdoc-modifier-plantuml
Mdoc Modifier is a set of modifiers
Project URL

Project URL

https://github.com/mvillafuertem/mdoc-modifier
Project Organization

Project Organization

io.github.mvillafuertem
Source Code Management

Source Code Management

https://github.com/mvillafuertem/mdoc-modifier

Download mdoc-modifier-plantuml_2.13

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.mvillafuertem/mdoc-modifier-plantuml_2.13/ -->
<dependency>
    <groupId>io.github.mvillafuertem</groupId>
    <artifactId>mdoc-modifier-plantuml_2.13</artifactId>
    <version>0.1</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.mvillafuertem/mdoc-modifier-plantuml_2.13/
implementation 'io.github.mvillafuertem:mdoc-modifier-plantuml_2.13:0.1'
// https://jarcasting.com/artifacts/io.github.mvillafuertem/mdoc-modifier-plantuml_2.13/
implementation ("io.github.mvillafuertem:mdoc-modifier-plantuml_2.13:0.1")
'io.github.mvillafuertem:mdoc-modifier-plantuml_2.13:jar:0.1'
<dependency org="io.github.mvillafuertem" name="mdoc-modifier-plantuml_2.13" rev="0.1">
  <artifact name="mdoc-modifier-plantuml_2.13" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.mvillafuertem', module='mdoc-modifier-plantuml_2.13', version='0.1')
)
libraryDependencies += "io.github.mvillafuertem" % "mdoc-modifier-plantuml_2.13" % "0.1"
[io.github.mvillafuertem/mdoc-modifier-plantuml_2.13 "0.1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.13.1
org.scalameta : mdoc_2.13 jar 2.0.2
net.sourceforge.plantuml : plantuml jar 1.2019.12

Project Modules

There are no modules declared in this project.

⚠️ PLEASE, DO NOT EDIT THIS FILE. IT IS AUTOGENERATE YOU SHOULD EDIT modules/docs/src/main/mdoc/README.md WITH THE COMMAND sbt mdoc-modifier-docs/mdoc


:bowtie:

Mdoc Modifier 0.1

[TOC]

TODO: Description

Akka HTTP

libraryDependencies += "io.github.mvillafuertem" %% "mdoc-modifier-akka-http" % "0.1"
import org.scalatest._
import io.github.mvillafuertem.mdoc.modifier.akka.http.sample.SampleApplicationSpec

nocolor.run(new SampleApplicationSpec)
// SampleApplicationSpec:
// Sample Application
// Complete(HttpResponse(200 OK,List(),HttpEntity.Strict(application/json,16 bytes total),HttpProtocol(HTTP/1.1)))
// 
// ## `GET / http://example.com/health`
// 
// List()
// 
// 
// ```
// 
// HttpEntity.Strict(none/none,0 bytes total)
// 
// ```
// 
// ### Response
// 
// HTTP/1.1 200 OK
// 
// List()
// 
// ```
// 
// HttpEntity.Strict(application/json,16 bytes total)
// 
// ```
//        
// - should health

SampleApplicationSpec: Sample Application Complete(HttpResponse(200 OK,List(),HttpEntity.Strict(application/json,16 bytes total),HttpProtocol(HTTP/1.1)))

GET / http://example.com/health

List()


HttpEntity.Strict(none/none,0 bytes total)

Response

HTTP/1.1 200 OK

List()


HttpEntity.Strict(application/json,16 bytes total)

  • should health

PlantUML 📊

libraryDependencies += "io.github.mvillafuertem" %% "mdoc-modifier-plantuml" % "0.1"

How use

Only add this, that's all

scala mdoc:plantuml:modules/mdoc-modifier-docs/src/main/resources/result0:png

@see http://plantuml.com/sitemap-language-specification

@startuml

participant Bob
actor Alice
 
Bob -> Alice : hello
Alice -> Bob : Is it ok?

@enduml

modules/docs/src/main/resources/result0.png

Support SVG

modules/docs/src/main/resources/result0.svg

Troubleshooting 😱

Can not find Graphviz

  • Install Graphviz

more information see http://plantuml.com/es/graphviz-dot

  • Add this line to diagram
!pragma graphviz_dot jdot

more information see http://plantuml.com/es/smetana02

@startuml

!pragma graphviz_dot jdot
class Foo1

Foo1 --> Foo2
Foo1 --> Foo3
Foo1 ---> Foo4 : test 4
Foo1 ----> Foo5 : test 5

@enduml

modules/docs/src/main/resources/result1.svg modules/docs/src/main/resources/result2.svg

Choosing colors

modules/docs/src/main/resources/colors-lightgreen.svg

modules/docs/src/main/resources/colors-lightblue.svg

Versions

Version
0.1