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); }
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); }
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(); }
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(); }