Esempio n. 1
0
        public override bool Execute(DocInput input)
        {
            var settings = input.ToSettings();

            using (var project = new DocProject(settings))
            {
                using (var server = project.LaunchRunner())
                {
                    Console.WriteLine("Launching the browser to " + server.BaseAddress);

                    Process.Start(server.BaseAddress);

                    tellUsersWhatToDo();
                    ConsoleKeyInfo key = Console.ReadKey();
                    while (key.Key != ConsoleKey.Q)
                    {
                        Console.WriteLine();
                        Console.WriteLine("Shutting down the Storyteller documentation preview runner....");
                        Console.WriteLine();
                    }
                }
            }

            return(true);
        }
 public TopicFileWatcher(DocSettings settings, DocProject project)
 {
     _settings = settings;
     _project  = project;
 }
 public TopicFileWatcher(DocSettings settings, DocProject project)
 {
     _settings = settings;
     _project = project;
 }
        public void TheUrlResolutionIs(UrlStyle style)
        {
            _settings.UrlStyle = style;

            _project = new DocProject(_settings);
        }