This repository was archived by the owner on Apr 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -17,17 +17,19 @@ var target = Argument("target", "Default");
1717public class BuildData
1818{
1919 public DirectoryPath RepoRootFolder { get ; }
20+ public DirectoryPath TestRootFolder { get ; }
2021 public DirectoryPath SourceFolder { get ; }
2122 public DirectoryPath DocsFolder { get ; }
2223 public DirectoryPath OutputFolder { get ; }
2324 public List < IIssue > Issues { get ; }
2425
2526 public BuildData ( ICakeContext context )
2627 {
27- this . RepoRootFolder = context . MakeAbsolute ( context . Directory ( "./" ) ) ;
28- this . SourceFolder = this . RepoRootFolder . Combine ( "src" ) ;
29- this . DocsFolder = this . RepoRootFolder . Combine ( "docs" ) ;
30- this . OutputFolder = this . RepoRootFolder . Combine ( "output" ) ;
28+ this . TestRootFolder = context . MakeAbsolute ( context . Directory ( "./" ) ) ;
29+ this . RepoRootFolder = this . TestRootFolder . Combine ( ".." ) ;
30+ this . SourceFolder = this . TestRootFolder . Combine ( "src" ) ;
31+ this . DocsFolder = this . TestRootFolder . Combine ( "docs" ) ;
32+ this . OutputFolder = this . TestRootFolder . Combine ( "output" ) ;
3133
3234 this . Issues = new List < IIssue > ( ) ;
3335 }
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ Task("Lint-AddinDocumentation")
4343
4444 // Run markdownlint
4545 var settings =
46- MarkdownlintNodeJsRunnerSettings . ForDirectory ( data . RepoRootFolder . Combine ( "../ docs" ) ) ;
46+ MarkdownlintNodeJsRunnerSettings . ForDirectory ( data . RepoRootFolder . Combine ( "docs" ) ) ;
4747 settings . OutputFile = markdownLintLogFilePath ;
4848 settings . ThrowOnIssue = false ;
4949 RunMarkdownlintNodeJs ( settings ) ;
You can’t perform that action at this time.
0 commit comments