public ReadmeFileOutput(ClassEntry classEntry, DirectoryEntry directoryEntry, string outputPath) { this.outputPath = outputPath; this.classEntry = classEntry; this.directoryEntry = directoryEntry; }
public void GenerateReadme(ClassEntry classEntry, DirectoryEntry directoryEntry, string outputPath) { OpenFile(outputPath + "\\" + classEntry.ClassName + ".md"); CloseFile(); }
private void GenerateReadmeFile(ClassEntry moduleEntry, DirectoryEntry directoryEntry, string outputPath) { }
private ClassEntry ProcessExampleClass(List<string> lines, int classIndex, ClassType classType) { ClassEntry returnEntry = new ClassEntry { ClassName = GetClassName(lines[classIndex]), ClassType = classType }; int commentBeginIndex = classIndex - 1; while (commentBeginIndex >= 0 && lines[commentBeginIndex].Contains("///")) { commentBeginIndex--; } commentBeginIndex++; string commentString = ""; for (int i = commentBeginIndex; i < classIndex; i++) { if (lines[i].Contains("<summary>") || lines[i].Contains("</summary>")) { continue; } commentString += lines[i].TrimStart(' ', '/', '\t') + Environment.NewLine; } returnEntry.Description = commentString; StringBuilder stringBuilder = new StringBuilder(); for (int i = classIndex; i < lines.Count; i++) { stringBuilder.AppendLine(lines[i]); } returnEntry.Class = stringBuilder.ToString(); lines.RemoveRange(commentBeginIndex, lines.Count - commentBeginIndex); return returnEntry; }