Skip to content

Commit f383618

Browse files
committed
Exclude the readme added in 2bca894 in the documentation test.
1 parent 2bca894 commit f383618

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/GitVersionCore.Tests/DocumentationTests.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,12 @@ public void DocumentationIndexIsUpToDate()
7878
.ToString()
7979
.Replace("docs/", string.Empty);
8080

81-
Console.WriteLine(fullPath);
82-
Console.WriteLine(relativePath);
81+
// The readme file in the docs directory is not supposed to be deployed to ReadTheDocs;
82+
// it's only there for the convenience of contributors wanting to improve the documentation itself.
83+
if (relativePath == "readme.md")
84+
{
85+
continue;
86+
}
8387

8488
documentationIndexFile.ShouldContain(relativePath, () => string.Format("The file '{0}' is not listed in 'mkdocs.yml'.", relativePath));
8589
}

0 commit comments

Comments
 (0)