Skip to content

Commit

Permalink
build(docs): exclude References if urls empty (#21986)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed May 8, 2023
1 parent 1fa64d5 commit 5d3549f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/docs/manager.ts
Expand Up @@ -75,9 +75,10 @@ sidebar_label: ${displayName}
.join(', ');
md += `This manager supports extracting the following datasources: ${escapedDatasources}.\n\n`;

md += '## References';
md += formatUrls(urls).replace('**References**:', '');

if (urls?.length) {
md += '## References';
md += formatUrls(urls).replace('**References**:', '');
}
md += '## Default config\n\n';
md += '```json\n';
md += JSON.stringify(definition.defaultConfig, null, 2) + '\n';
Expand Down

0 comments on commit 5d3549f

Please sign in to comment.