Ejemplo n.º 1
0
        public void ProjectOutputTest()
        {
            var project = DocProjectManager.Current.LoadProject(TestConfiguration.Current.Paths.projectMarkdownMonsterHelpFile);
            var output  = new HtmlOutputGenerator(project);

            output.Generate();
        }
Ejemplo n.º 2
0
        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);
        }