Example #1
0
        public void AddSection(String name, String topic)
        {
            current = new MarkdownFile(name);
            current.AddTitle(name);

            if (!topics.ContainsKey(topic))
                topics.Add(topic, new List<String>());

            topics[topic].Add(name);
            files.Add(current);
        }
Example #2
0
        public void AddSection(String name, String topic)
        {
            current = new MarkdownFile(name);
            current.AddTitle(name);

            if (!topics.ContainsKey(topic))
            {
                topics.Add(topic, new List <String>());
            }

            topics[topic].Add(name);
            files.Add(current);
        }
Example #3
0
        void IDisposable.Dispose()
        {
            var index = new MarkdownFile("Home");
            files.Add(index);
            index.AddTitle("Documentation");

            foreach (var topic in topics)
            {
                index.AddHeading(topic.Key);

                foreach (var link in topic.Value)
                    index.AddLink(link);
            }

            foreach (var file in files)
                file.WriteTo(outputDirectory);

            files.Clear();
        }
Example #4
0
        void IDisposable.Dispose()
        {
            var index = new MarkdownFile("Home");

            files.Add(index);
            index.AddTitle("Documentation");

            foreach (var topic in topics)
            {
                index.AddHeading(topic.Key);

                foreach (var link in topic.Value)
                {
                    index.AddLink(link);
                }
            }

            foreach (var file in files)
            {
                file.WriteTo(outputDirectory);
            }

            files.Clear();
        }