@@ -8,6 +8,8 @@ Task("Preview-Documentation")
8
8
. WithCriteria ( ( ) => DirectoryExists ( MakeAbsolute ( Directory ( "docs" ) ) ) , "Wyam documentation directory is missing" )
9
9
. Does < BuildParameters > ( ( parameters ) =>
10
10
{
11
+ var additionalSettings = parameters . WyamAdditionalSettings ;
12
+ additionalSettings . Add ( "Host" , "gittools.github.io" ) ;
11
13
Wyam ( new WyamSettings
12
14
{
13
15
Recipe = "Docs" ,
@@ -17,14 +19,7 @@ Task("Preview-Documentation")
17
19
Preview = true ,
18
20
Watch = true ,
19
21
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
28
23
} ) ;
29
24
} ) ;
30
25
@@ -40,13 +35,7 @@ Task("Force-Publish-Documentation")
40
35
OutputPath = MakeAbsolute ( Directory ( "artifacts/Documentation" ) ) ,
41
36
RootPath = MakeAbsolute ( Directory ( "docs" ) ) ,
42
37
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
50
39
} ) ;
51
40
52
41
PublishDocumentation ( parameters ) ;
@@ -77,8 +66,8 @@ Task("Publish-Documentation-Internal")
77
66
file . Path . Contains ( string . Format ( "{0}{1}" , wyamDocsFolderDirectoryName , forwardSlash ) ) ||
78
67
file . Path . Contains ( "config.wyam" ) )
79
68
{
80
- docFileChanged = true ;
81
- break ;
69
+ docFileChanged = true ;
70
+ break ;
82
71
}
83
72
}
84
73
@@ -93,13 +82,7 @@ Task("Publish-Documentation-Internal")
93
82
OutputPath = MakeAbsolute ( Directory ( "artifacts/Documentation" ) ) ,
94
83
RootPath = MakeAbsolute ( Directory ( "docs" ) ) ,
95
84
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
103
86
} ) ;
104
87
105
88
PublishDocumentation ( parameters ) ;
0 commit comments