static void Main(string[] args) { var wikiRepoPath = args[0]; var xmlDocFolder = GetXmlDocFolder(); var scriptsFolder = GetScriptFolder(); var docRenderer = new GitHubDocRenderer(); var typeNames = ToolkitTypes.GetTypeNames().Concat(ToolkitTypes.GetAnimationTypeNames()); foreach (var typeName in typeNames) { var renderSampleSiteLink = Documentation.IsRenderSampleSiteLink(typeName); var forceHeaderRendering = Documentation.IsForceHeaderRendering(typeName); var extenderDoc = new ExtenderDoc(docRenderer, renderSampleSiteLink, forceHeaderRendering); var doc = Documentation.Get(typeName, xmlDocFolder, scriptsFolder); Documentation animationDocs = null; if (Documentation.IsAnimationScriptsRelatedType(typeName)) { animationDocs = Documentation.GetAnimationScriptsReference(scriptsFolder); } var markup = extenderDoc.BuildDoc(doc.Types, animationDocs?.Types); var markdownFilePath = Path.Combine(wikiRepoPath, typeName + ".md"); File.WriteAllText(markdownFilePath, markup); var htmlDescripton = new HtmlDocRenderer().RenderDescription(doc.Types.FirstOrDefault().Summary); SaveHtmlDescription(typeName, htmlDescripton); var htmlProperties = new HtmlDocRenderer().RenderMembers(doc.Types.FirstOrDefault()); SaveHtmlProperties(typeName, htmlProperties); } }
public ContentResult Markup(string typeName) { var doc = GetDoc(typeName); foreach (var docType in doc.Types.ToList()) { var typeFullName = docType.Namespace + "." + GetNeededType(docType.Name); FillClientMembers(doc, typeFullName); } var codeplexDocRenderer = new CodePlexDocRenderer(); 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))); }
public ContentResult Markup(string id) { var typeName = id; var xmlDocFolder = Server.MapPath("~/bin/"); var scriptsFolder = Server.MapPath("~/bin/Scripts/"); var doc = Documentation.Get(typeName, xmlDocFolder, scriptsFolder); var docRenderer = new GitHubDocRenderer(); var extenderDoc = new ExtenderDoc(docRenderer); var markup = extenderDoc.BuildDoc(doc.Types); return(Content(markup)); }
public ContentResult Markup(string typeName) { var doc = GetDoc(typeName); foreach (var docType in doc.Types.ToList()) { var typeFullName = docType.Namespace + "." + GetNeededType(docType.Name); FillClientMembers(doc, typeFullName); } var codeplexDocRenderer = new GitHubDocRenderer(); var extenderDoc = new ExtenderDoc(codeplexDocRenderer); var markup = extenderDoc.BuildDoc(doc.Types); return(Content(markup)); }
static void Main(string[] args) { var wikiRepoPath = args[0]; var xmlDocFolder = GetXmlDocFolder(); var scriptsFolder = GetScriptFolder(); var docRenderer = new GitHubDocRenderer(); var extenderDoc = new ExtenderDoc(docRenderer); var typeNames = ToolkitTypes.GetTypeNames(); foreach (var typeName in typeNames) { var doc = Documentation.Get(typeName, xmlDocFolder, scriptsFolder); var markup = extenderDoc.BuildDoc(doc.Types); var markdownFilePath = Path.Combine(wikiRepoPath, typeName.Replace("Extender", "") + ".md"); File.WriteAllText(markdownFilePath, markup); } }
public ContentResult Markup(string id) { var typeName = id; var xmlDocFolder = Server.MapPath("~/bin/"); var scriptsFolder = Server.MapPath("~/bin/Scripts/"); var doc = Documentation.Get(typeName, xmlDocFolder, scriptsFolder); var docRenderer = new GitHubDocRenderer(); var renderSampleSiteLink = Documentation.IsRenderSampleSiteLink(typeName); var forceHeaderRendering = Documentation.IsForceHeaderRendering(typeName); var extenderDoc = new ExtenderDoc(docRenderer, renderSampleSiteLink, forceHeaderRendering); Documentation animationDocs = null; if (Documentation.IsAnimationScriptsRelatedType(typeName)) { animationDocs = Documentation.GetAnimationScriptsReference(scriptsFolder); } var markup = extenderDoc.BuildDoc(doc.Types, animationDocs?.Types); return(Content(markup)); }
static void Main(string[] args) { var wikiRepoPath = args[0]; var xmlDocFolder = GetXmlDocFolder(); var scriptsFolder = GetScriptFolder(); var docRenderer = new GitHubDocRenderer(); var extenderDoc = new ExtenderDoc(docRenderer); var typeNames = ToolkitTypes.GetTypeNames(); foreach (var typeName in typeNames) { var doc = Documentation.Get(typeName, xmlDocFolder, scriptsFolder); var markup = extenderDoc.BuildDoc(doc.Types); var markdownFilePath = Path.Combine(wikiRepoPath, typeName.Replace("Extender", "") + ".md"); File.WriteAllText(markdownFilePath, markup); var htmlDescripton = new HtmlDocRenderer().RenderDescription(doc.Types.FirstOrDefault().Summary); SaveHtmlDescription(typeName, htmlDescripton); var htmlProperties = new HtmlDocRenderer().RenderMembers(doc.Types.FirstOrDefault()); SaveHtmlProperties(typeName, htmlProperties); } }