Ejemplo n.º 1
0
        public void PrependKey(string key)
        {
            if (IsIndex)
            {
                Key = key;
                if (Title == "Index")
                {
                    Title = KeyWithinParent.Capitalize();
                }
            }
            else
            {
                Key = key + "/" + Key;
            }

            _children.Each(x => x.PrependKey(key));
        }
Ejemplo n.º 2
0
        public void ParseFile()
        {
            Debug.WriteLine("Parsing topic file " + File.ToFullPath());


            var comments = findComments(File).ToArray();

            applyExplicitTitle(comments, this);
            applyExplicitUrlSegment(comments, this);

            if (UrlSegment == null)
            {
                UrlSegment = determineUrlSegmentFromFile(File, IsIndex, IsRoot);
            }

            if (Title.IsEmpty())
            {
                Title = KeyWithinParent.Capitalize().SplitPascalCase();
            }
        }