Example #1
0
        public Topic(ITopicNode parent, ITopicFile file) : base(Path.GetFileNameWithoutExtension(file.FilePath))
        {
            if (parent == null)
            {
                throw new ArgumentNullException("parent");
            }

            Project = parent.Project;

            File = file;

            IsIndex = Name.EqualsIgnoreCase(Index);
            if (IsIndex)
            {
                Key         = parent.Url;
                OrderString = file.RelativeFile.IsEmpty() ? string.Empty : file.RelativeFile.ParentUrl();
            }
            else
            {
                Key = parent.Url.AppendUrl(Name);
            }

            OrderString = OrderString.Replace(".spark", "");

            TopicBuilder.BuildOut(this);
        }
Example #2
0
 public TopicStub(string remote, ITopicNode core)
 {
     Remote = remote;
     Core   = core;
 }