Skip to content

Commit 8f07d20

Browse files
committed
(GH-1932) Add missing wyam.cake file
The wyam.cake file was not included in the original commit, as it was being ignored in the .gitignore file.
1 parent ccf55e9 commit 8f07d20

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ _NCrunch_GitVersion
8585
GitVersion.sln.ide/
8686
.vs/
8787
Packages/
88-
build/
88+
build/*
8989
site/
9090
/TestResult.xml
9191

build/wyam.cake

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Task("Clean-Documentation")
2+
.Does(() =>
3+
{
4+
EnsureDirectoryExists(MakeAbsolute(Directory("artifacts/temp/_PublishedDocumentation")));
5+
});
6+
7+
Task("Preview-Documentation")
8+
.WithCriteria(() => DirectoryExists(MakeAbsolute(Directory("docs"))), "Wyam documentation directory is missing")
9+
.Does<BuildParameters>((parameters) =>
10+
{
11+
Wyam(new WyamSettings
12+
{
13+
Recipe = "Docs",
14+
Theme = "Samson",
15+
OutputPath = MakeAbsolute(MakeAbsolute(Directory("artifacts/Documentation"))),
16+
RootPath = MakeAbsolute(Directory("docs")),
17+
Preview = true,
18+
Watch = true,
19+
ConfigurationFile = MakeAbsolute((FilePath)"config.wyam"),
20+
PreviewVirtualDirectory = "GitVersion",
21+
Settings = new Dictionary<string, object>
22+
{
23+
{ "Host", "gittools.github.io" },
24+
{ "LinkRoot", "GitVersion" },
25+
{ "BaseEditUrl", "https://github.com/gittools/GitVersion/tree/master/docs/input/" },
26+
{ "SourceFiles", parameters.Paths.Directories.Source + "/**/{!bin,!obj,!packages,!*.Tests,}/**/*.cs" },
27+
{ "Title", "GitVersion" },
28+
{ "IncludeGlobalNamespace", false }
29+
}
30+
});
31+
});

0 commit comments

Comments
 (0)