private static async Task AddDocumentToTheConfiguration(ExportableDocument document, MkdocsConfiguration configuration) { configuration.AddPage(document.Title, ConvertToValidFileName(document.Title) + MarkDownExtension); }
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); }
private static void AddIndexPageTo(MkdocsConfiguration configuration) { configuration.AddPage("Home", "index.md"); }
private static async Task WriteConfigurationYmlInPath(MkdocsConfiguration configuration, string path) { var ymlPath = Path.Combine(path, YmlFileName); await WriteInFile(ymlPath, configuration.ToString()); }