Beispiel #1
0
 private static async Task ExportDocumentIn(ExportableDocument document, string directoryPath) {
     var documentDirectory = Directory.CreateDirectory(directoryPath);
     var documentPath = Path.Combine(documentDirectory.FullName, ConvertToValidFileName(document.Title) + MarkDownExtension);
     await WriteInFile(documentPath, document.Content);
 }
Beispiel #2
0
 private static async Task AddDocumentToTheConfiguration(ExportableDocument document, MkdocsConfiguration configuration) {
     configuration.AddPage(document.Title, ConvertToValidFileName(document.Title) + MarkDownExtension);
 }
 private static WebSite WebsiteWith(ExportableDocument document) {
     var webSite = new WebSite(new List<ExportableDocument> {
         document
     }, "AnyProductName");
     return webSite;
 }
Beispiel #4
0
 public void AddDocument(ExportableDocument document)
 {
     Documents.Add(document);
 }
 private static async Task<List<ExportableDocument>> AsyncDocumentsList(ExportableDocument document) {
     return new List<ExportableDocument>{ document };
 }