Exemple #1
0
        private MdTable GetCommandsTable()
        {
            var table = new MdTable(new MdTableRow("Name", "Description"));

            foreach (var command in m_Model.Commands)
            {
                var commandPage = m_DocumentSet[m_PathProvider.GetPath(command)];

                var link = m_DocumentSet.GetLink(this, commandPage, command.Name);

                table.Add(new MdTableRow(link, command.Description ?? ""));
            }
            return(table);
        }
Exemple #2
0
        private MdBlock GetApplicationInfo()
        {
            var applicationPage = m_DocumentSet[m_PathProvider.GetPath(m_Command.Application)];
            var link            = m_DocumentSet.GetLink(this, applicationPage, m_Command.Application.Name);

            var span = new MdCompositeSpan()
            {
                new MdStrongEmphasisSpan("Application:"),
                " ",
                link
            };

            if (m_Conifguration.Template.Default.IncludeVersion && !String.IsNullOrEmpty(m_Command.Application.Version))
            {
                span.Add(new MdRawMarkdownSpan("\r\n"));
                span.Add(new MdStrongEmphasisSpan("Version:"));
                span.Add(" ");
                span.Add(m_Command.Application.Version);
            }

            return(new MdParagraph(span));
        }