Skip to content

Arkezar/DocFx.Plugins.Kroki

Repository files navigation

DocFx.Plugins.Kroki

This is a plugin for DocFx to allow rendering diagrams with kroki.io service in DFM documents.

Installation

  1. Using nuget install to the project directory
nuget install DocFx.Plugins.Kroki -ExcludeVersion -OutputDirectory .
  1. Add to docfx.json
...
    "template": [
      "default",
      "DocFx.Plugins.Kroki"
    ]
...

Usage

Add code block to your markup:

```<diagram type>

<diagram source>

```

Supported diagram types:

  • BlockDiag
  • BPMN
  • Bytefield
  • SeqDiag
  • ActDiag
  • NwDiag
  • PacketDiag
  • RackDiag
  • C4PlantUML
  • Ditaa
  • Erd
  • Excalidraw
  • GraphViz
  • Mermaid
  • Nomnoml
  • PlantUML
  • Svgbob
  • UMlet
  • Vega
  • VegaLite
  • WaveDrom

Example:

```plantuml
Bob->Alice : hello
```

Settings

Plugin can be configured in docfx.json.

Setting Description Default
kroki.serviceUrl Url to remote service https://kroki.io/
kroki.outputFormat Diagram output format, check supported output at kroki.io svg

Example:

...
    "markdownEngineProperties": {
      "kroki.serviceUrl": "http://localhost:8000/",
      "kroki.outputFormat": "svg"
    }
...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages