public ViewResult GettingStarted(string filePath) { GettingStartedViewModel model = ViewModelFactory.CreateGettingStartedViewModel(this.PathHelper, this.TableOfContentsRepository, this.HelpContentRepository, this.ControlRepository, this.SampleRepository, filePath, MemoryCache.Default); return(View("GettingStarted", model)); }
public string GettingStartedLocalInstall(string filePath) { GettingStartedViewModel model = ViewModelFactory.CreateGettingStartedViewModel(this.PathHelper, this.TableOfContentsRepository, this.HelpContentRepository, this.ControlRepository, this.SampleRepository, filePath, MemoryCache.Default); return(ViewRenderer.RenderView("~/Views/Shared/GettingStarted.cshtml", model, ControllerContext)); }
public void GettingStartedLocalInstallMobile(string outDir, string filePath) { GettingStartedViewModel model = ViewModelFactory.CreateGettingStartedViewModel(this.PathHelper, this.TableOfContentsRepository, this.HelpContentRepository, this.ControlRepository, this.SampleRepository, filePath, MemoryCache.Default); string sample = ViewRenderer.RenderView("~/Views/Shared/GettingStarted.cshtml", model, ControllerContext); string gettingStartedMobile = sample.Replace("href=\"~/", rootHref).Replace(rootHref, "href=\"./").Replace(rootSrc, "src=\"./").Replace("src=\"./../igniteui/", "src=\"./igniteui/"); string gettingStartedMobileFileName = Path.Combine(outDir, "getting-started-mobile.html"); List <string> iframeSrcs = new List <string>(); foreach (Sample s in model.GettingStartedContent.Samples) { this.CreateMobileSamplePage(outDir, s.Control.PathID, s.PathID); iframeSrcs.Add(s.Control.PathID + "/" + s.PathID); } gettingStartedMobile = parser.AddFileExtentionToIFrames(gettingStartedMobile, iframeSrcs); parser.ChangeNavLinks(gettingStartedMobile, gettingStartedMobileFileName); }