Skip to content

Commit

Permalink
Issue #63: Display the new additional connectors configuration
Browse files Browse the repository at this point in the history
* Changed the additional connectors display format.
* Tested on MetricsHub doc
  • Loading branch information
CherfaElyes committed Oct 22, 2024
1 parent db89612 commit 5338cfd
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -539,12 +539,14 @@ private void produceMetricsHubExamplesContent(

// Connector variable
if (connectorVariables != null && !connectorVariables.isEmpty()) {

Check failure on line 542 in src/main/java/org/sentrysoftware/maven/metricshub/connector/producer/ConnectorPageProducer.java

View workflow job for this annotation

GitHub Actions / Checkstyle

com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineCheck

Line has trailing spaces.
yamlBuilder.append(" additionalConnectors:\n");
yamlBuilder.append(" <ADDITIONAL-CONNECTOR-ID>:\n");
yamlBuilder.append(" " + connectorId);
yamlBuilder.append(": # Unique ID. Use 'uses' if different from the original connector ID\n");
yamlBuilder.append(" uses: " + connectorId);
yamlBuilder.append(" # Id of connector to use\n");
yamlBuilder.append(" force: true/false");
yamlBuilder.append(" # true by default\n");
yamlBuilder.append(" # Optional - Original ID if not in key\n");
yamlBuilder.append(" force: true");
yamlBuilder.append(" # Optional (default: true); false for auto-detection only\n");
yamlBuilder.append(" variables:\n");
connectorVariables
.iterator()
Expand Down

0 comments on commit 5338cfd

Please sign in to comment.