/// <summary> /// Create the template output /// </summary> public virtual string TransformText() { this.Write("\r\n"); this.Write("\r\n{\r\n\tid: \'"); #line 11 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(Article.Id)); #line default #line hidden this.Write("\',\r\n\ttext: \'"); #line 12 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(Article.Title)); #line default #line hidden this.Write("\',\r\n\t"); #line 13 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" if(IsPlaceholder){ #line default #line hidden this.Write("\ticon: \'icon-folder-close\',\r\n\t"); #line 15 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" } else if(IsLink){ #line default #line hidden this.Write("\ticon: \'icon-file-text\',\r\n\ta_attr: { href : \'"); #line 17 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(((SDArticleLink)Article).Link)); #line default #line hidden this.Write("\' },\r\n\t"); #line 18 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" } else { #line default #line hidden this.Write("\ticon: \'icon-file-text\',\r\n\ta_attr: { href : \'#/article/"); #line 20 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(Article.Id)); #line default #line hidden this.Write("\' },\r\n\t"); #line 21 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" } #line default #line hidden this.Write("\tchildren: [\r\n\t\t"); #line 23 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" for (int i = 0; i < Article.Children.Count; i++) { var article = Article.Children[i]; if (article is SDDocPlaceholder) { #line default #line hidden this.Write("\t\t\r\n\t\t\t\t{\r\n\t\t\t\t\tid: \'"); #line 29 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(article.Id)); #line default #line hidden this.Write("\',\r\n\t\t\t\t\ttext: \'"); #line 30 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(article.Title)); #line default #line hidden this.Write("\',\r\n\t\t\t\t\ticon: \'icon-folder-close\',\r\n\t\t\t\t\tchildren: [\r\n\t\t\t\t\t\t"); #line 33 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" var apiNavTemplate = new ApiNavigation { SDSolution = StepInput.SDProject.Solutions[((SDDocPlaceholder)article).SolutionFile] }; #line default #line hidden this.Write("\t\t\t\t\t\t\r\n\t\t\t\t\t\t"); #line 34 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(apiNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t"); #line 37 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" } else if (article is SDArticlePlaceholder) { #line default #line hidden this.Write("\t\t\t\t"); #line 40 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" var articleNavTemplate = new ArticleNavigation { Article = article, IsPlaceholder = true }; #line default #line hidden this.Write("\t\t\t\t"); #line 41 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(articleNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t"); #line 42 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" } else if (article is SDArticleLink) { #line default #line hidden this.Write("\t\t\t\t"); #line 45 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" var articleNavTemplate = new ArticleNavigation { Article = article, IsLink = true }; #line default #line hidden this.Write("\t\t\t\t"); #line 46 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(articleNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t"); #line 47 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" } else { #line default #line hidden this.Write("\t\t\t\t"); #line 50 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" var articleNavTemplate = new ArticleNavigation { Article = article, IsPlaceholder = false }; #line default #line hidden this.Write("\t\t\r\n\t\t\t\t"); #line 51 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(articleNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t"); #line 52 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" } } #line default #line hidden this.Write("\t]\r\n},\r\n\r\n"); return this.GenerationEnvironment.ToString(); }
/// <summary> /// Create the template output /// </summary> public virtual string TransformText() { this.Write("\r\n"); this.Write("\r\nvar sharpDox = sharpDox || {};\r\n\r\nsharpDox.navigationData = [\r\n\t"); #line 16 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" if (StepInput.SDProject.Articles.Count > 0) { var articles = StepInput.SDProject.Articles.GetElementOrDefault(StepInput.CurrentLanguage); foreach (var article in articles) { if (article is SDDocPlaceholder) { #line default #line hidden this.Write("\t\t\r\n\t\t\t\t{\r\n\t\t\t\t\tid: \'"); #line 23 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(article.Id)); #line default #line hidden this.Write("\',\r\n\t\t\t\t\ttext: \'"); #line 24 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(article.Title)); #line default #line hidden this.Write("\',\r\n\t\t\t\t\ticon: \'icon-folder-close\',\r\n\t\t\t\t\tchildren: [\r\n\t\t\t\t\t\t"); #line 27 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" var apiNavTemplate = new ApiNavigation { SDSolution = StepInput.SDProject.Solutions[((SDDocPlaceholder)article).SolutionFile] }; #line default #line hidden this.Write("\t\t\t\t\t\t\r\n\t\t\t\t\t\t"); #line 28 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(apiNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t"); #line 31 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" } else if (article is SDArticlePlaceholder) { #line default #line hidden this.Write("\t\t\t\t"); #line 34 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" var articleNavTemplate = new ArticleNavigation { Article = article, IsPlaceholder = true }; #line default #line hidden this.Write("\t\t\t\t"); #line 35 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(articleNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t"); #line 36 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" } else if (article is SDArticleLink) { #line default #line hidden this.Write("\t\t\t\t"); #line 39 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" var articleNavTemplate = new ArticleNavigation { Article = article, IsLink = true }; #line default #line hidden this.Write("\t\t\t\t"); #line 40 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(articleNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t"); #line 41 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" } else { #line default #line hidden this.Write("\t\t\t\t"); #line 44 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" var articleNavTemplate = new ArticleNavigation { Article = article, IsPlaceholder = false }; #line default #line hidden this.Write("\t\t\r\n\t\t\t\t"); #line 45 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(articleNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t"); #line 46 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" } } } else { var apiNavTemplate = new ApiNavigation { SDSolution = StepInput.SDProject.Solutions.Single().Value }; #line default #line hidden this.Write("\t\t"); #line 50 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(apiNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t"); #line 51 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" } #line default #line hidden this.Write("];"); return(this.GenerationEnvironment.ToString()); }
/// <summary> /// Create the template output /// </summary> public virtual string TransformText() { this.Write("\r\n"); this.Write("\r\n{\r\n\tid: \'"); #line 11 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(Article.Id)); #line default #line hidden this.Write("\',\r\n\ttext: \'"); #line 12 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(Article.Title)); #line default #line hidden this.Write("\',\r\n\t"); #line 13 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" if (IsPlaceholder) { #line default #line hidden this.Write("\ticon: \'icon-folder-close\',\r\n\t"); #line 15 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" } else if (IsLink) { #line default #line hidden this.Write("\ticon: \'icon-file-text\',\r\n\ta_attr: { href : \'"); #line 17 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(((SDArticleLink)Article).Link)); #line default #line hidden this.Write("\' },\r\n\t"); #line 18 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" } else { #line default #line hidden this.Write("\ticon: \'icon-file-text\',\r\n\ta_attr: { href : \'#/article/"); #line 20 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(Article.Id)); #line default #line hidden this.Write("\' },\r\n\t"); #line 21 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" } #line default #line hidden this.Write("\tchildren: [\r\n\t\t"); #line 23 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" for (int i = 0; i < Article.Children.Count; i++) { var article = Article.Children[i]; if (article is SDDocPlaceholder) { #line default #line hidden this.Write("\t\t\r\n\t\t\t\t{\r\n\t\t\t\t\tid: \'"); #line 29 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(article.Id)); #line default #line hidden this.Write("\',\r\n\t\t\t\t\ttext: \'"); #line 30 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(article.Title)); #line default #line hidden this.Write("\',\r\n\t\t\t\t\ticon: \'icon-folder-close\',\r\n\t\t\t\t\tchildren: [\r\n\t\t\t\t\t\t"); #line 33 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" var apiNavTemplate = new ApiNavigation { SDSolution = StepInput.SDProject.Solutions[((SDDocPlaceholder)article).SolutionFile] }; #line default #line hidden this.Write("\t\t\t\t\t\t\r\n\t\t\t\t\t\t"); #line 34 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(apiNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t"); #line 37 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" } else if (article is SDArticlePlaceholder) { #line default #line hidden this.Write("\t\t\t\t"); #line 40 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" var articleNavTemplate = new ArticleNavigation { Article = article, IsPlaceholder = true }; #line default #line hidden this.Write("\t\t\t\t"); #line 41 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(articleNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t"); #line 42 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" } else if (article is SDArticleLink) { #line default #line hidden this.Write("\t\t\t\t"); #line 45 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" var articleNavTemplate = new ArticleNavigation { Article = article, IsLink = true }; #line default #line hidden this.Write("\t\t\t\t"); #line 46 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(articleNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t"); #line 47 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" } else { #line default #line hidden this.Write("\t\t\t\t"); #line 50 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" var articleNavTemplate = new ArticleNavigation { Article = article, IsPlaceholder = false }; #line default #line hidden this.Write("\t\t\r\n\t\t\t\t"); #line 51 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(articleNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t"); #line 52 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\ArticleNavigation.tt" } } #line default #line hidden this.Write("\t]\r\n},\r\n\r\n"); return(this.GenerationEnvironment.ToString()); }
/// <summary> /// Create the template output /// </summary> public virtual string TransformText() { this.Write("\r\n"); this.Write("\r\nvar sharpDox = sharpDox || {};\r\n\r\nsharpDox.navigationData = [\r\n\t"); #line 16 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" if(StepInput.SDProject.Articles.Count > 0) { var articles = StepInput.SDProject.Articles.GetElementOrDefault(StepInput.CurrentLanguage); foreach(var article in articles) { if (article is SDDocPlaceholder) { #line default #line hidden this.Write("\t\t\r\n\t\t\t\t{\r\n\t\t\t\t\tid: \'"); #line 23 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(article.Id)); #line default #line hidden this.Write("\',\r\n\t\t\t\t\ttext: \'"); #line 24 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(article.Title)); #line default #line hidden this.Write("\',\r\n\t\t\t\t\ticon: \'icon-folder-close\',\r\n\t\t\t\t\tchildren: [\r\n\t\t\t\t\t\t"); #line 27 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" var apiNavTemplate = new ApiNavigation { SDSolution = StepInput.SDProject.Solutions[((SDDocPlaceholder)article).SolutionFile] }; #line default #line hidden this.Write("\t\t\t\t\t\t\r\n\t\t\t\t\t\t"); #line 28 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(apiNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t"); #line 31 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" } else if (article is SDArticlePlaceholder) { #line default #line hidden this.Write("\t\t\t\t"); #line 34 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" var articleNavTemplate = new ArticleNavigation { Article = article, IsPlaceholder = true }; #line default #line hidden this.Write("\t\t\t\t"); #line 35 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(articleNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t"); #line 36 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" } else if (article is SDArticleLink) { #line default #line hidden this.Write("\t\t\t\t"); #line 39 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" var articleNavTemplate = new ArticleNavigation { Article = article, IsLink = true }; #line default #line hidden this.Write("\t\t\t\t"); #line 40 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(articleNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t"); #line 41 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" } else { #line default #line hidden this.Write("\t\t\t\t"); #line 44 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" var articleNavTemplate = new ArticleNavigation { Article = article, IsPlaceholder = false }; #line default #line hidden this.Write("\t\t\r\n\t\t\t\t"); #line 45 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(articleNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t\t\t"); #line 46 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" } } } else { var apiNavTemplate = new ApiNavigation { SDSolution = StepInput.SDProject.Solutions.Single().Value }; #line default #line hidden this.Write("\t\t"); #line 50 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" this.Write(this.ToStringHelper.ToStringWithCulture(apiNavTemplate.TransformText())); #line default #line hidden this.Write("\r\n\t"); #line 51 "D:\Github\SharpDox.Plugins.Html\src\Templates\Navigation\Navigation.tt" } #line default #line hidden this.Write("];"); return this.GenerationEnvironment.ToString(); }