We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c289ee commit 22d5c39Copy full SHA for 22d5c39
1 file changed
tools/LlmsDocsGenerator/DocsGenerator.cs
@@ -136,6 +136,20 @@ public async Task<bool> CheckAsync()
136
return false;
137
}
138
139
+ var indexLastWrite = File.GetLastWriteTimeUtc(indexPath);
140
+
141
+ // compute the most recent component source timestamp:
142
+ var newestComponentWrite = components
143
+ .SelectMany(c => c.SourceFiles)
144
+ .Select(File.GetLastWriteTimeUtc)
145
+ .DefaultIfEmpty(indexLastWrite)
146
+ .Max();
147
148
+ if (indexLastWrite < newestComponentWrite)
149
+ {
150
+ Console.WriteLine("Index file is stale relative to component sources. Please regenerate docs.");
151
+ return false;
152
+ }
153
// Check each category file
154
foreach (var category in categorized)
155
{
0 commit comments