Skip to content

Commit

Permalink
allow options[] to be undefined (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
samruddhikhandale authored Oct 11, 2022
1 parent 818e4a8 commit 13e6807
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/generateDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ const FEATURES_README_TEMPLATE = `
}
\`\`\`
## Options
#{OptionsTable}
#{Notes}
Expand All @@ -34,8 +32,6 @@ const TEMPLATE_README_TEMPLATE = `
#{Description}
## Options
#{OptionsTable}
#{Notes}
Expand Down Expand Up @@ -107,7 +103,7 @@ async function _generateDocumentation(basePath: string, readmeTemplate: string,
})
.join('\n');

return '| Options Id | Description | Type | Default Value |\n' + '|-----|-----|-----|-----|\n' + contents;
return '## Options\n\n' + '| Options Id | Description | Type | Default Value |\n' + '|-----|-----|-----|-----|\n' + contents;
};

const generateNotesMarkdown = () => {
Expand Down

0 comments on commit 13e6807

Please sign in to comment.