示例#1
0
 public virtual async Task Export(WebSite webSite, ConfigurationPaths configurationPaths) {
     var configuration = CreateConfiguration(configurationPaths.SiteDir);
     var exportationPath = configurationPaths.ExportationPath;
     await InitializeMkdocsStructure(
         exportationPath, configuration);
     foreach (var document in webSite.Documents) {
         await ExportDocumentIn(document, 
             DocsPathIn(exportationPath));
         await AddDocumentToTheConfiguration(document, configuration);
     }
     await WriteConfigurationYmlInPath(configuration, exportationPath);
     CopyImagesInTheSite(
         exportationPath, 
         configurationPaths.ImagesFolder);
 }
 private static WebSite WebsiteWith(ExportableDocument document) {
     var webSite = new WebSite(new List<ExportableDocument> {
         document
     }, "AnyProductName");
     return webSite;
 }
示例#3
0
 public virtual string GenerateMkdocsPath(WebSite webSite)
 {
     const string separator = "/";
     return webSite.Version + separator + webSite.ProductName + separator + webSite.Language;
 }