This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.MkDocs.
Summary
Run the builtin development server async.
- Assembly
- Cake
.MkDocs .dll - Namespace
- Cake
.MkDocs - Containing Type
- MkDocsAliases
Syntax
public static Task MkDocsServeAsync(this ICakeContext context, DirectoryPath projectDirectory)
Examples
var task = MkDocsServeAsync("./docs-project");
// Do work...
task.Wait();
var task = MkDocsServeAsync(new DirectoryPath("./docs-project"));
// Do work...
task.Wait();
Remarks
This method will block build process. Use Ctrl+C in console to quit
or use CancellationToken to cancel task programmatically.
Attributes
| Type | Description |
|---|---|
| Cake |
|
| Cake |
|
| Cake |
Parameters
| Name | Type | Description |
|---|---|---|
| context | ICakeContext | The context. |
| projectDirectory | DirectoryPath | Project directory path to serve. |
Return Value
| Type | Description |
|---|---|
| Task | Long running task. |
