Exemplo n.º 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);
 }
Exemplo n.º 2
0
 private static WebSite WebsiteWith(ExportableDocument document) {
     var webSite = new WebSite(new List<ExportableDocument> {
         document
     }, "AnyProductName");
     return webSite;
 }
Exemplo n.º 3
0
 public virtual string GenerateMkdocsPath(WebSite webSite)
 {
     const string separator = "/";
     return webSite.Version + separator + webSite.ProductName + separator + webSite.Language;
 }