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