Skip to content

Commit aae9c92

Browse files
committed
(GH-1932) Add Wyam Preview task
This will help with getting the docs setup, as it will allow viewing the generated docs locally with live reload, to allow adjustments to be made.
1 parent cf4df78 commit aae9c92

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

build.cake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#load "./build/artifacts-test.cake"
3838
#load "./build/docker.cake"
3939
#load "./build/publish.cake"
40+
#load "./build/wyam.cake"
4041

4142
using Xunit;
4243
using System.Diagnostics;

build/utils/paths.cake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public class BuildPaths
2525

2626
var semVersion = version.SemVersion;
2727

28+
var sourceDir = (DirectoryPath)(context.Directory("./src"));
2829
var artifactsDir = (DirectoryPath)(context.Directory("./artifacts") + context.Directory("v" + semVersion));
2930
var artifactsBinDir = artifactsDir.Combine("bin");
3031
var artifactsBinPortableDir = artifactsBinDir.Combine("portable");
@@ -45,6 +46,7 @@ public class BuildPaths
4546

4647
// Directories
4748
var buildDirectories = new BuildDirectories(
49+
sourceDir,
4850
artifactsDir,
4951
nativeDir,
5052
buildArtifactDir,
@@ -93,6 +95,7 @@ public class BuildFiles
9395

9496
public class BuildDirectories
9597
{
98+
public DirectoryPath Source { get; private set; }
9699
public DirectoryPath Artifacts { get; private set; }
97100
public DirectoryPath Native { get; private set; }
98101
public DirectoryPath NugetRoot { get; private set; }
@@ -107,6 +110,7 @@ public class BuildDirectories
107110
public ICollection<DirectoryPath> ToClean { get; private set; }
108111

109112
public BuildDirectories(
113+
DirectoryPath sourceDir,
110114
DirectoryPath artifactsDir,
111115
DirectoryPath nativeDir,
112116
DirectoryPath buildArtifactDir,
@@ -120,6 +124,7 @@ public class BuildDirectories
120124
DirectoryPath artifactsBinFullFx472Dir
121125
)
122126
{
127+
Source = sourceDir;
123128
Artifacts = artifactsDir;
124129
Native = nativeDir;
125130
BuildArtifact = buildArtifactDir;

0 commit comments

Comments
 (0)