Exemplo n.º 1
0
        public void Run()
        {
            DocsModule docs = new DocsModule (Environment.DocsDirectory);
            Console.WriteLine ("Go to http://localhost:{0}/ to see your docs.", Port);

            AppHost.ListenAt (new Manos.IO.IPEndPoint (Manos.IO.IPAddress.Any, Port));
            AppHost.Start (docs);
        }
Exemplo n.º 2
0
        public void Run()
        {
            DocsModule docs = new DocsModule (Environment.DocsDirectory);
            Console.WriteLine ("Go to http://localhost:{0}/ to see your docs.", Port);

            AppHost.Port = Port;
            AppHost.Start (docs);
        }
Exemplo n.º 3
0
        public void Run()
        {
            DocsModule docs = new DocsModule(Environment.DocsDirectory);

            Console.WriteLine("Go to http://localhost:{0}/ to see your docs.", Port);

            AppHost.ListenAt(new System.Net.IPEndPoint(System.Net.IPAddress.Any, Port));
            AppHost.Start(docs);
        }
Exemplo n.º 4
0
        public void Run()
        {
            DocsModule docs = new DocsModule(Environment.DocsDirectory);

            Console.WriteLine("Go to http://localhost:{0}/ to see your docs.", Port);

            AppHost.Port = Port;
            AppHost.Start(docs);
        }
Exemplo n.º 5
0
        public void Manual(DocsModule docs, IManosContext ctx, string manual)
        {
            string md_page;

            if (!manuals.TryGetValue (manual, out md_page)) {
                ctx.Response.StatusCode = 404;
                return;
            }

            WriteMarkdownDocsPage (ctx.Response, md_page);
        }
Exemplo n.º 6
0
 public void Tutorial(DocsModule docs, IManosContext ctx, int page)
 {
     WriteMarkdownDocsPage (ctx.Response, "tutorial/page-" + page + ".md");
 }