示例#1
0
 private static async Task AddDocumentToTheConfiguration(ExportableDocument document, MkdocsConfiguration configuration) {
     configuration.AddPage(document.Title, ConvertToValidFileName(document.Title) + MarkDownExtension);
 }
示例#2
0
 private async Task InitializeMkdocsStructure(string path, MkdocsConfiguration configuration) {
     var docsPath = Path.Combine(path, "docs");
     var docsDirectory = Directory.CreateDirectory(docsPath);
     await WriteInFile(Path.Combine(docsDirectory.FullName, "index.md"), IndexContent);
     AddIndexPageTo(configuration);
 }
示例#3
0
 private static void AddIndexPageTo(MkdocsConfiguration configuration) {
     configuration.AddPage("Home", "index.md");
 }
示例#4
0
 private static async Task WriteConfigurationYmlInPath(MkdocsConfiguration configuration, string path) {
     var ymlPath = Path.Combine(path, YmlFileName);
     await WriteInFile(ymlPath, configuration.ToString());
 }