Exemple #1
0
        public void WriteSitemapContents(string OutputPath)
        {
            List <SitemapNode> RootNodes = new List <SitemapNode>();

            RootNodes.Add(new SitemapNode("Contents", SitemapLinkPath));
            RootNodes.Add(new SitemapNode("Getting started", GettingStarted.SitemapLinkPath));
            foreach (APIModuleIndex ChildModuleIndex in ChildModuleIndexes)
            {
                RootNodes.Add(ChildModuleIndex.CreateSitemapNode());
            }
            RootNodes.Add(new SitemapNode("All constants", ConstantIndex.SitemapLinkPath));
            RootNodes.Add(new SitemapNode("All functions", FunctionIndex.SitemapLinkPath));
            RootNodes.Add(new SitemapNode("All enums", EnumIndex.SitemapLinkPath));
            RootNodes.Add(new SitemapNode("All classes", RecordIndex.SitemapLinkPath));
            RootNodes.Add(new SitemapNode("Class hierarchy", RecordHierarchy.SitemapLinkPath));
            Sitemap.WriteContentsFile(OutputPath, RootNodes);
        }
Exemple #2
0
        public void WriteSitemapContents(string OutputPath)
        {
            List <SitemapNode> RootNodes = new List <SitemapNode>();

            if (bIsRootCategory)
            {
                RootNodes.Add(new SitemapNode("Contents", SitemapLinkPath));
            }
            foreach (APIPage SubCategory in SubCategories.Values)
            {
                RootNodes.AddRange(SubCategory.CreateSitemapNodes());
            }
            foreach (APIPage Action in Actions)
            {
                RootNodes.AddRange(Action.CreateSitemapNodes());
            }
            Sitemap.WriteContentsFile(OutputPath, RootNodes);
        }