Exemplo n.º 1
0
        private void BuildIndexPage()
        {
            var index = new ScottPlot.Cookbook.Site.IndexPage(CookbookFolder, SourceFolder);

            index.AddLinksToRecipes();
            index.SaveAs("index.html", null);
            Console.WriteLine($"View Cookbook: {System.IO.Path.GetFullPath(CookbookFolder)}/index.html");
        }
Exemplo n.º 2
0
        private void BuildPlotApiPage()
        {
            var index = new ScottPlot.Cookbook.Site.IndexPage(CookbookFolder, SourceFolder);

            index.AddPlotApiTableWithoutPlottables(XD, PlotMethods);
            index.AddPlotApiTablePlottables(XD, PlotMethods);
            index.AddPlotApiDetails(XD, PlotMethods);
            index.SaveAs("api-plot.html", "Plot API");
        }
Exemplo n.º 3
0
        private void BuildPlottableApiPages()
        {
            foreach (Type plottableType in Locate.GetPlottableTypes())
            {
                var index = new ScottPlot.Cookbook.Site.IndexPage(CookbookFolder, SourceFolder);
                index.AddPlottableDetails(XD, plottableType);

                string typeName = Locate.TypeName(plottableType);
                string typeUrl  = Locate.TypeName(plottableType, urlSafe: true);
                index.SaveAs($"api-plottable-{typeUrl}.html", typeName);
            }
        }
Exemplo n.º 4
0
        private void BuildIndexPage()
        {
            var index = new ScottPlot.Cookbook.Site.IndexPage(CookbookFolder, SourceFolder);

            // add recipes
            index.AddLinksToRecipes();

            // add API tables
            index.AddPlotApiTableWithoutPlottables(XD, PlotMethods);
            index.AddPlotApiTablePlottables(XD, PlotMethods);
            index.AddPlottableApiTable(XD);

            index.SaveAs("index.html", null);
            Console.WriteLine($"View Cookbook: {System.IO.Path.GetFullPath(CookbookFolder)}/index.html");
        }