Skip to content

Commit

Permalink
DocGen: switched to GitHub renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailTymchukDX committed Feb 9, 2016
1 parent e5fa457 commit ad7b3a4
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions AjaxControlToolkit.Reference/Controllers/ReferenceController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using AjaxControlToolkit.Reference.Core.Parsing;
using AjaxControlToolkit.Reference.Core.Rendering;
using AjaxControlToolkit.ReferenceCore.Parsing;

using System;
using System.Linq;
using System.Web.Mvc;
Expand Down Expand Up @@ -79,19 +80,11 @@ public ContentResult Markup(string typeName) {
FillClientMembers(doc, typeFullName);
}

var codeplexDocRenderer = new CodePlexDocRenderer();
var codeplexDocRenderer = new GitHubDocRenderer();
var extenderDoc = new ExtenderDoc(codeplexDocRenderer);
var markup = extenderDoc.BuildDoc(doc.Types);
var wikiEngine = new WikiPlex.WikiEngine();

var pageStyle =
"<style>" +
"html { font-family: 'Segoe UI'; font-size: 13px; }" +
"table { border-collapse: collapse; font-size: 13px; } " +
"table td, th { border: 1px solid #aaa; height: 28px; padding: 3px; text-align: left; } table th { font-family: 'Segoe UI Semibold' }" +
"b, h1, h2 { font-family: 'Segoe UI Semibold' }" +
"</style>";
return Content(pageStyle + wikiEngine.Render(markup));

return Content(markup);
}

string GetNeededType(string typeName) {
Expand Down

0 comments on commit ad7b3a4

Please sign in to comment.