Skip to content

Commit

Permalink
chore: fix documentation CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
jeluard committed Mar 19, 2024
1 parent e840ea0 commit 21acc05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/docsgen/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ function renderExamplesSection(examples: CliExample[], sectionTitle?: string, lo
function renderOption(optionName: string, option: CliOptionDefinition): string | undefined {
if (option.hidden) return;

const commandOption = [`<h3 id='-${optionName}'><code>--${optionName}</code><a href="#-${optionName}" class="hash-link" title="--${optionName}"></a></h3>`];
const commandOption = [`### --${optionName} {#-${optionName}}`];
//const commandOption = [`<h3 id='-${optionName}'><code>--${optionName}</code><a href="#-${optionName}" class="hash-link" title="--${optionName}"></a></h3>`];
if (option.description) commandOption.push(`description: ${sanitizeDescription(option.description)}`);

if (option.demandOption === true) {
Expand Down

0 comments on commit 21acc05

Please sign in to comment.