This is a plugin for DocFx to allow rendering diagrams with kroki.io service in DFM documents.
- Using nuget install to the project directory
nuget install DocFx.Plugins.Kroki -ExcludeVersion -OutputDirectory .
- Add to
docfx.json
...
"template": [
"default",
"DocFx.Plugins.Kroki"
]
...
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
```
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"
}
...