MkDocsTool<TSettings>.

Run(TSettings, DirectoryPath, Action<ProcessArgumentBuilder>) Method

Summary

Runs the tool using the specified settings and change process workig directory. Creates process arguments based on settings attribute.
Assembly
Cake.MkDocs.dll
Namespace
Cake.MkDocs
Containing Type
MkDocsTool<TSettings>

Syntax

protected void Run(TSettings settings, DirectoryPath projectDirectory, Action<ProcessArgumentBuilder> setCommandValues = null)

Examples

// MkDocsBuildSettings are related to "build" process command
var settings = new MkDocsBuildSettings();
Run(settings, new DirectoryPath("./project-with-docs-is-here"));

Parameters

Name Type Description
settings TSettings The settings.
projectDirectory DirectoryPath Process working directory.
setCommandValues Action<ProcessArgumentBuilder> If specified called during process argument building.

Return Value

Type Description
void