Skip to content

Commit b367b02

Browse files
committed
#4017 - ignore *source.md files on docs publishing
1 parent d75cc93 commit b367b02

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

build/docs/BuildLifetime.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,18 @@ public override void Setup(BuildContext context, ISetupContext info)
2020
Theme = "Samson",
2121
OutputPath = context.MakeAbsolute(Paths.ArtifactsDocs.Combine("preview")),
2222
RootPath = context.MakeAbsolute(Paths.Docs),
23-
ConfigurationFile = context.MakeAbsolute(Paths.Docs.CombineWithFilePath("config.wyam")),
2423
Settings = new Dictionary<string, object>
2524
{
2625
{ "BaseEditUrl", "https://github.com/gittools/GitVersion/tree/main/docs/input/" },
2726
{ "SourceFiles", context.MakeAbsolute(Paths.Src) + "/**/{!bin,!obj,!packages,!*.Tests,!GitTools.*,}/**/*.cs" },
2827
{ "Title", "GitVersion" },
29-
{ "IncludeGlobalNamespace", false }
30-
}
28+
{ "IncludeGlobalNamespace", false },
29+
{ "IgnoreFolders", "**/mdsource" }
30+
},
31+
EnvironmentVariables = new Dictionary<string, string>
32+
{
33+
{ "DOTNET_ROLL_FORWARD", "Major" },
34+
},
3135
};
3236

3337
context.StartGroup("Build Setup");

build/docs/Tasks/PublishDocs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private static bool AnyDocsChanged(ICakeContext context)
5858
var filesChanged = context.GitDiff(Paths.Root, sourceCommit.Sha);
5959

6060
const string path = "docs/";
61-
var docFileChanged = filesChanged.Any(file => file.OldPath.StartsWith(path) || file.Path.StartsWith(path) || file.Path.Contains("config.wyam"));
61+
var docFileChanged = filesChanged.Any(file => file.OldPath.StartsWith(path) || file.Path.StartsWith(path));
6262
return docFileChanged;
6363
}
6464

docs/config.wyam

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)