Пример #1
0
 /// <summary>
 /// Automatically build documentation of the implemented modules
 /// Returns a formatted string according to the outputType
 /// Currently HTML and markdown are supported
 /// </summary>
 public static string BuildDocumentation(CommandService commandService, DocumentationOutputType outputType = DocumentationOutputType.HTML)
 {
     return(outputType switch
     {
         DocumentationOutputType.HTML => BuildHtmlDocumentation(commandService),
         DocumentationOutputType.MarkDown => BuildMarkdownDocumentation(commandService),
         _ => string.Empty,
     });
Пример #2
0
 /// <summary>
 /// Automatically build documentation of the implemented modules
 /// Returns a formatted string according to the outputType
 /// Currently HTML and markdown are supported
 /// </summary>
 public static string BuildDocumentation(CommandsNextExtension commandsNext, DocumentationOutputType outputType = DocumentationOutputType.HTML)
 {
     return(outputType switch
     {
         DocumentationOutputType.HTML => BuildHtmlDocumentation(commandsNext),
         DocumentationOutputType.MarkDown => BuildMarkdownDocumentation(commandsNext),
         _ => string.Empty,
     });