Esempio n. 1
0
        public void Finish()
        {
            var    sb = new StringBuilder();
            string finalString;

            sb.Append("### Member Summary\n");
            foreach (var key in this.docs.Keys)
            {
                finalString = this.docs[key].ToString();
                var typeName = this.memberFormats[key];
                typeName    = typeName.Replace("&", "&");
                typeName    = typeName.Replace("<", "&lt;");
                typeName    = typeName.Replace(">", "&gt;");
                typeName    = "[" + typeName + "](#" + key + ")";
                finalString = Regex.Replace(finalString, "\\s+", " ");
                if (finalString.IndexOf(".", StringComparison.Ordinal) >= 0)
                {
                    finalString = finalString.Substring(
                        0,
                        finalString.IndexOf(".", StringComparison.Ordinal) + 1);
                }
                sb.Append("* <code>" + typeName + "</code> - ");
                sb.Append(finalString + "\n");
            }
            finalString        = DocGenUtil.NormalizeLines(sb.ToString());
            this.summaryString = finalString;
        }
Esempio n. 2
0
        public void Finish()
        {
            var    sb = new StringBuilder();
            string finalString;

            sb.Append("## API Documentation\r\n\r\n");
            foreach (var key in this.docs.Keys)
            {
                finalString = this.docs[key].Builder.ToString();
                sb.Append(" * " + this.docs[key].TypeLink + " - ");
                sb.Append(finalString + "\n");
            }
            finalString = DocGenUtil.NormalizeLines(
                sb.ToString());
            DocGenUtil.FileEdit(this.filename, finalString);
        }
Esempio n. 3
0
        public void Finish()
        {
            var    sb = new StringBuilder();
            string finalString;

            sb.Append("### Member Summary\n");
            foreach (var key in this.docs.Keys)
            {
                finalString = this.docs[key].ToString();
                var typeName = this.memberFormats[key];
                typeName    = "[" + DocGenUtil.HtmlEscape(typeName) + "](#" + key + ")";
                finalString = Regex.Replace(finalString, "\\s+", " ");
                sb.Append("* <code>" + typeName + "</code> - ");
                sb.Append(finalString + "\n");
            }
            finalString        = DocGenUtil.NormalizeLines(sb.ToString());
            this.summaryString = finalString;
        }
Esempio n. 4
0
 public void Finish()
 {
     foreach (var key in this.docs.Keys)
     {
         var finalString = this.docs[key].ToString();
         this.memSummaries[key].Finish();
         var memSummaryString = this.memSummaries[key].ToString();
         var filename         = Path.Combine(
             this.directory,
             this.typeIDs[key] + ".md");
         finalString = DocGenUtil.NormalizeLines(finalString);
         finalString = Regex.Replace(
             finalString,
             "<<<MEMBER_SUMMARY>>>",
             memSummaryString);
         DocGenUtil.FileEdit(filename, finalString);
     }
 }
Esempio n. 5
0
        public void Finish()
        {
            var    sb = new StringBuilder();
            string finalString;

            sb.Append("## API Documentation\r\n\r\n");
            foreach (var key in this.docs.Keys)
            {
                finalString = this.docs[key].Builder.ToString();
                if (finalString.IndexOf(".", StringComparison.Ordinal) >= 0)
                {
                    finalString = finalString.Substring(
                        0,
                        finalString.IndexOf(".", StringComparison.Ordinal) + 1);
                }
                sb.Append(" * " + this.docs[key].TypeLink + " - ");
                sb.Append(finalString + "\n");
            }
            finalString = DocGenUtil.NormalizeLines(
                sb.ToString());
            DocGenUtil.FileEdit(this.filename, finalString);
        }