GithubHelp home page GithubHelp logo

mvillafuertem / mdoc-modifier Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 401 KB

Mdoc Modifier ๐Ÿ–ฅ helps you to document ๐Ÿ“ with PlantUML โš™๏ธ

Scala 92.47% Shell 7.53%
scala mdoc plantuml akka-http

mdoc-modifier's Introduction

โš ๏ธ 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 layout smetana

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

@startuml

!pragma layout smetana
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

modules/docs/src/main/resources/aws-simple-data-lake-architecture.svg

Choosing colors

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

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

mdoc-modifier's People

Contributors

mvillafuertem avatar scala-steward avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

scala-steward

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.