Ejemplo n.º 1
0
 private static void GenerateDocuments(Settings settings)
 {
     foreach (string assemblyFile in settings.AssemblyFiles)
     {
         try
         {
             var input = InputContext.Create(assemblyFile);
             foreach (var format in settings.OutputFormats)
             {
                 var outputFolder = settings.FlattenFolder ? settings.OutputFolder : Path.Combine(settings.OutputFolder, format.Subfolder);
                 var output       = new OutputContext(input, format, settings.Language, outputFolder, settings.IndexName);
                 output.Compose();
             }
         }
         catch (Exception error)
         {
             Log.Error(error);
         }
     }
 }