Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #6
0
 public void Tutorial(DocsModule docs, IManosContext ctx, int page)
 {
     WriteMarkdownDocsPage (ctx.Response, "tutorial/page-" + page + ".md");
 }