@@ -8,6 +8,8 @@ Task("Preview-Documentation")
88 . WithCriteria ( ( ) => DirectoryExists ( MakeAbsolute ( Directory ( "docs" ) ) ) , "Wyam documentation directory is missing" )
99 . Does < BuildParameters > ( ( parameters ) =>
1010{
11+ var additionalSettings = parameters . WyamAdditionalSettings ;
12+ additionalSettings . Add ( "Host" , "gittools.github.io" ) ;
1113 Wyam ( new WyamSettings
1214 {
1315 Recipe = "Docs" ,
@@ -17,14 +19,7 @@ Task("Preview-Documentation")
1719 Preview = true ,
1820 Watch = true ,
1921 ConfigurationFile = MakeAbsolute ( ( FilePath ) "config.wyam" ) ,
20- Settings = new Dictionary < string , object >
21- {
22- { "Host" , "gittools.github.io" } ,
23- { "BaseEditUrl" , "https://github.com/gittools/GitVersion/tree/master/docs/input/" } ,
24- { "SourceFiles" , MakeAbsolute ( parameters . Paths . Directories . Source ) + "/**/{!bin,!obj,!packages,!*.Tests,}/**/*.cs" } ,
25- { "Title" , "GitVersion" } ,
26- { "IncludeGlobalNamespace" , false }
27- }
22+ Settings = additionalSettings
2823 } ) ;
2924} ) ;
3025
@@ -40,13 +35,7 @@ Task("Force-Publish-Documentation")
4035 OutputPath = MakeAbsolute ( Directory ( "artifacts/Documentation" ) ) ,
4136 RootPath = MakeAbsolute ( Directory ( "docs" ) ) ,
4237 ConfigurationFile = MakeAbsolute ( ( FilePath ) "config.wyam" ) ,
43- Settings = new Dictionary < string , object >
44- {
45- { "BaseEditUrl" , "https://github.com/gittools/GitVersion/tree/master/docs/input/" } ,
46- { "SourceFiles" , MakeAbsolute ( parameters . Paths . Directories . Source ) + "/**/{!bin,!obj,!packages,!*.Tests,}/**/*.cs" } ,
47- { "Title" , "GitVersion" } ,
48- { "IncludeGlobalNamespace" , false }
49- }
38+ Settings = parameters . WyamAdditionalSettings
5039 } ) ;
5140
5241 PublishDocumentation ( parameters ) ;
@@ -77,8 +66,8 @@ Task("Publish-Documentation-Internal")
7766 file . Path . Contains ( string . Format ( "{0}{1}" , wyamDocsFolderDirectoryName , forwardSlash ) ) ||
7867 file . Path . Contains ( "config.wyam" ) )
7968 {
80- docFileChanged = true ;
81- break ;
69+ docFileChanged = true ;
70+ break ;
8271 }
8372 }
8473
@@ -93,13 +82,7 @@ Task("Publish-Documentation-Internal")
9382 OutputPath = MakeAbsolute ( Directory ( "artifacts/Documentation" ) ) ,
9483 RootPath = MakeAbsolute ( Directory ( "docs" ) ) ,
9584 ConfigurationFile = MakeAbsolute ( ( FilePath ) "config.wyam" ) ,
96- Settings = new Dictionary < string , object >
97- {
98- { "BaseEditUrl" , "https://github.com/gittools/GitVersion/tree/master/docs/input/" } ,
99- { "SourceFiles" , MakeAbsolute ( parameters . Paths . Directories . Source ) + "/**/{!bin,!obj,!packages,!*.Tests,}/**/*.cs" } ,
100- { "Title" , "GitVersion" } ,
101- { "IncludeGlobalNamespace" , false }
102- }
85+ Settings = parameters . WyamAdditionalSettings
10386 } ) ;
10487
10588 PublishDocumentation ( parameters ) ;
0 commit comments