public void ProjectOutputTest() { var project = DocProjectManager.Current.LoadProject(TestConfiguration.Current.Paths.projectMarkdownMonsterHelpFile); var output = new HtmlOutputGenerator(project); output.Generate(); }
void Command_BuildHtml() { BuildHtmlCommand = new CommandBase((parameter, command) => { mmApp.Model.Window.ShowStatusProgress("Generating project to Html output..."); Task.Run(() => { var project = kavaUi.AddinModel.ActiveProject; var output = new HtmlOutputGenerator(project); output.Generate(); mmApp.Model.Window.Dispatcher.Invoke( () => { ShellUtils.OpenFileInExplorer(project.OutputDirectory); mmApp.Model.Window.ShowStatusSuccess("Project output has been generated."); }); }); }, (p, c) => true); }