diff --git a/src/scripts/parser/command-parser.ts b/src/scripts/parser/command-parser.ts index c7ec970..5255f5a 100644 --- a/src/scripts/parser/command-parser.ts +++ b/src/scripts/parser/command-parser.ts @@ -19,8 +19,6 @@ export interface CommandGroup { tags: string[]; // command category tag(s) } -const githubFunctionUrl = "https://git.jabber.space/devs/cproof/src/branch/master/src/command/cmd_defs.c"; - export class CommandParser { private buffer: string; private readonly preamblePattern: RegExp = @@ -142,19 +140,6 @@ export class CommandParser { }; } - private capitalizeFirstLetter(str: string) { - if (!str) return ""; - if (str.charAt(0) === "/") { - if (str.length > 1) { - return str.charAt(0) + str.charAt(1).toUpperCase() + str.slice(2); - } else { - return str; - } - } else { - return str.charAt(0).toUpperCase() + str.slice(1); - } - } - toMD() { let stream = ""; const output: MDOutput = { filename: "command-reference.md", buffer: "" }; @@ -204,10 +189,6 @@ export class CommandParser { return `${isChild ? "####" : "##"} ${!isChild ? "`" : ""}${sectionName}${!isChild ? "`" : ""}\n\n`; } - private writeGenericBlock(blockName: string, content: string) { - return `**${blockName}** ${content}
\n`; - } - private writeSynopsisBlock(syntaxList: string[]) { let stream = ""; // No need for Synopsis section, it's self-explanatory