コード例 #1
0
 public static void GeneratePageSourceLookup(Arguments arguments, PageResources pageResources)
 {
     // Gather file paths.
     int trimIndex = arguments.TroubleshooterRoot !.Length;
     Dictionary <string, string> sourceLookup = pageResources
                                                .Where(pair =>
                                                       pair.Value.Location == ResourceLocation.Site &&
                                                       pair.Value.Type == ResourceType.Markdown
                                                       ).ToDictionary(pair => pair.Value.OutputLinkPath !, pair => pair.Key[trimIndex..].Replace('\\', '/'));