Skip to content

Commit

Permalink
build(docs): exclude References if urls empty (renovatebot#21986)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins authored and mjunker committed May 17, 2023
1 parent 62ab03d commit 5a5fc7a
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 5a5fc7a

Please sign in to comment.