DocFx.Plugins.PlantUml 1.1.19

There is a newer version of this package available.
See the version list below for details.
dotnet add package DocFx.Plugins.PlantUml --version 1.1.19                
NuGet\Install-Package DocFx.Plugins.PlantUml -Version 1.1.19                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DocFx.Plugins.PlantUml" Version="1.1.19" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DocFx.Plugins.PlantUml --version 1.1.19                
#r "nuget: DocFx.Plugins.PlantUml, 1.1.19"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DocFx.Plugins.PlantUml as a Cake Addin
#addin nuget:?package=DocFx.Plugins.PlantUml&version=1.1.19

// Install DocFx.Plugins.PlantUml as a Cake Tool
#tool nuget:?package=DocFx.Plugins.PlantUml&version=1.1.19                

DocFx.Plugins.PlantUml is a template for DocFx to allow DFM (DocFx MarkDown) documents to render diagrams using PlantUml

Installation Instructions

DocFx.Plugins.PlantUml uses PlantUml.Net. Ensure you have installed the requirements

Project Installation via NuGet

This method assumes you are including docfx.console.

(using package manager)

Install-Package DocFx.Plugins.PlantUml

Installing in this way will explicitly set the templates used in your project, the templates specified in docfx.json will be ignored!

To specify templates add them in a comma seperated list to the DocTemplate property in your project file.

e.g.

<PropertyGroup>
  <DocTemplate>default,my-custom-template</DocTemplate>
</PropertyGroup>

Manual Installation

  1. Use nuget.exe to install to the project directory
nuget install DocFx.Plugins.PlantUml -ExcludeVersion -OutputDirectory .
  1. Add to docfx.json

Now you need to tell DocFx where to find the new template...

assuming you extracted the package to the project directory:

in docfx.json:

...
    "template": [
      "default",
      "DocFx.Plugins.PlantUml/template"
    ]
...

Usage

To render a PlantUml diagram add a code block to you markup:

```plantUml

Bob->Alice : hello

```

should render:

Bob->Alice : hello

Settings

The plugin can be configured in your docfx.json

example:

...
    "markdownEngineProperties": {
      "plantUml.javaPath": "C:/Program Files/Java/jre1.8.0_171",
      "plantUml.localGraphvizDotPath": "C:/Program Files (x86)/Graphviz2.38/bin/dot.exe",
      "plantUml.localPlantUmlPath": "plantuml.jar",
      "plantUml.outputFormat":"png",
      "plantUml.remoteUrl":"http://www.plantuml.com/plantuml/",
      "plantUml.renderingMode":"remote"
    },
...

Local Rendering

By default, PlantUML documents will be rendered on the remote server. Local rendering mode uses a local copy of PlantUml to render diagrams.

Local rendering mode can be configured in in your docfx.json:

...
    "markdownEngineProperties": {
      "plantUml.renderingMode":"local"
    },
...
Requirements
Java

Install Java. Ensure that the JAVA_HOME environment variable is set.

PlantUml

Download PlantUml (pick whichever licence suits your needs), the .jar can be placed directly into the project root, or an alternate configuration can be specified in your docfx.json:

...
    "markdownEngineProperties": {
      "plantUml.localPlantUmlPath": "path/to/plantuml.jar"
    },
...
GraphViz Dot (optional)

GraphViz Dot is required for local rendering mode of any diagram other than sequence.

Install GraphViz Dot You may need to set the GRAPHVIZ_DOT environment variable

see the PlantUml documentation for more detailed instructions.

Diagram syntax

see the PlantUml reference guide for more details

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.24 31,492 5/7/2020
1.1.19 17,255 6/25/2018
1.0.13 1,023 5/3/2018
1.0.12 947 5/2/2018
1.0.8 1,067 5/2/2018