Пример #1
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);
        }