Summary
Gets an instance of a provider for warnings reported by DocFx using log file content.
Syntax
public static ICodeAnalysisProvider DocFxIssuesFromContent(this ICakeContext context, string logFileContent, DirectoryPath docRootPath)
Examples
Report warnings reported by DocFx to a TFS pull request:
var repoRoot = new DirectoryPath("c:\repo");
ReportIssuesToPullRequest(
DocFxIssuesFromContent(
logFileContent,
"C:\build\doc"),
TfsPullRequests(
new Uri("http://myserver:8080/tfs/defaultcollection/myproject/_git/myrepository"),
"refs/heads/feature/myfeature",
TfsAuthenticationNtlm()),
repoRoot);
Attributes
Type |
Description |
CakeAliasCategoryAttribute |
|
CakeMethodAliasAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
logFileContent |
string |
Content of the the DocFx log file. |
docRootPath |
DirectoryPath |
Path to the root directory of the DocFx project.
Either the full path or the path relative to the repository root. |
Return Value