Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Use correct repo folder for linting addin documentation #147

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions tests/build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,19 @@ var target = Argument("target", "Default");
public class BuildData
{
public DirectoryPath RepoRootFolder { get; }
public DirectoryPath TestRootFolder { get; }
public DirectoryPath SourceFolder { get; }
public DirectoryPath DocsFolder { get; }
public DirectoryPath OutputFolder { get; }
public List<IIssue> Issues { get; }

public BuildData(ICakeContext context)
{
this.RepoRootFolder = context.MakeAbsolute(context.Directory("./"));
this.SourceFolder = this.RepoRootFolder.Combine("src");
this.DocsFolder = this.RepoRootFolder.Combine("docs");
this.OutputFolder = this.RepoRootFolder.Combine("output");
this.TestRootFolder = context.MakeAbsolute(context.Directory("./"));
this.RepoRootFolder = this.TestRootFolder.Combine("..");
this.SourceFolder = this.TestRootFolder.Combine("src");
this.DocsFolder = this.TestRootFolder.Combine("docs");
this.OutputFolder = this.TestRootFolder.Combine("output");

this.Issues = new List<IIssue>();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/build/analyze/markdownlint.cake
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Task("Lint-AddinDocumentation")

// Run markdownlint
var settings =
MarkdownlintNodeJsRunnerSettings.ForDirectory(data.RepoRootFolder.Combine("../docs"));
MarkdownlintNodeJsRunnerSettings.ForDirectory(data.RepoRootFolder.Combine("docs"));
settings.OutputFile = markdownLintLogFilePath;
settings.ThrowOnIssue = false;
RunMarkdownlintNodeJs(settings);
Expand Down