File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -8,17 +8,15 @@ public class Paths
88 public static readonly DirectoryPath Src = Root . Combine ( "src" ) ;
99 public static readonly DirectoryPath Docs = Root . Combine ( "docs" ) ;
1010 public static readonly DirectoryPath Build = Root . Combine ( "build" ) ;
11+ public static readonly DirectoryPath Schemas = Root . Combine ( "schemas" ) ;
1112 public static readonly DirectoryPath Dogfood = Root . Combine ( "dogfood" ) ;
1213 public static readonly DirectoryPath Integration = Root . Combine ( "tests" ) . Combine ( "integration" ) ;
1314
14- public static readonly DirectoryPath Nuspec = Build . Combine ( "nuspec" ) ;
15-
1615 public static readonly DirectoryPath TestOutput = Artifacts . Combine ( "test-results" ) ;
1716 public static readonly DirectoryPath Packages = Artifacts . Combine ( "packages" ) ;
1817 public static readonly DirectoryPath ArtifactsDocs = Artifacts . Combine ( "docs" ) ;
1918
2019 public static readonly DirectoryPath Native = Packages . Combine ( "native" ) ;
2120 public static readonly DirectoryPath Nuget = Packages . Combine ( "nuget" ) ;
22- public static readonly DirectoryPath ArtifactsBinCmdline = Packages . Combine ( "prepare" ) . Combine ( "cmdline" ) ;
2321 public static readonly DirectoryPath ArtifactsBinPortable = Packages . Combine ( "prepare" ) . Combine ( "portable" ) ;
2422}
Original file line number Diff line number Diff line change @@ -20,8 +20,13 @@ public override void Run(BuildContext context)
2020 {
2121 if ( context . WyamSettings is not null )
2222 {
23+ var schemaTargetDir = Paths . ArtifactsDocs . Combine ( "preview" ) . Combine ( "schemas" ) ;
24+ context . EnsureDirectoryExists ( schemaTargetDir ) ;
25+ context . CopyDirectory ( Paths . Schemas , schemaTargetDir ) ;
26+
2327 context . WyamSettings . Preview = true ;
2428 context . WyamSettings . Watch = true ;
29+ context . WyamSettings . NoClean = true ;
2530 context . WyamSettings . Settings . Add ( "Host" , "gittools.github.io" ) ;
2631 context . Wyam ( context . WyamSettings ) ;
2732 }
Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ private static void PublishDocumentation(BuildContext context)
8282 context . Wyam ( context . WyamSettings ) ;
8383 }
8484
85+ var schemaTargetDir = publishFolder . Combine ( "schemas" ) ;
86+ context . EnsureDirectoryExists ( schemaTargetDir ) ;
87+ context . CopyDirectory ( Paths . Schemas , schemaTargetDir ) ;
88+
8589 if ( ! context . GitHasUncommitedChanges ( publishFolder ) ) return ;
8690
8791 context . Information ( "Stage all changes..." ) ;
You can’t perform that action at this time.
0 commit comments