Skip to content
Permalink
Browse files
Undo the effects of d778d9c from yesterday and fix comments to indica…
…te actual locations
  • Loading branch information
djencks committed Oct 26, 2021
1 parent beb682e commit 66dc117449b8f0f4bbe399c882618ba8f44bb8f1
Showing 3 changed files with 4 additions and 4 deletions.
@@ -44,7 +44,7 @@
import static org.apache.camel.tooling.util.PackageHelper.writeText;

/**
* Updates the documentation in: - docs/modules/ROOT/pages/connectors.adoc
* Generates the table of connectors in: - docs/modules/ROOT/pages/reference/index.adoc
*/
@Mojo(name = "update-doc-connectors-list", threadSafe = true)
public class UpdateDocComponentsListMojo extends AbstractMojo {
@@ -543,10 +543,10 @@ private void createClassesAndDocumentation(String sanitizedName, File connectorD
}

// Generate documentation in src/main/docs and
// docs/modules/ROOT/pages/connectors
// docs/modules/ROOT/pages/reference/connectors
File docFolder = new File(connectorDir, "src/main/docs/");
File docFile = new File(docFolder, getMainDepArtifactId() + "-kafka-" + ct.name().toLowerCase() + "-connector.adoc");
File docFolderWebsite = new File(projectBaseDir, "docs/modules/ROOT/pages/connectors/");
File docFolderWebsite = new File(projectBaseDir, "docs/modules/ROOT/pages/reference/connectors/");
File docFileWebsite = new File(docFolderWebsite, getMainDepArtifactId() + "-kafka-" + ct.name().toLowerCase() + "-connector.adoc");
String changed = templateAutoConfigurationOptions(listOptions, kamelet.getDescription(), connectorDir, ct, packageName + "." + javaClassConnectorName, convertersList,
transformsList, aggregationStrategiesList);
@@ -563,7 +563,7 @@ public boolean test(BaseOptionModel optionModel) {
}

// Generate documentation in src/main/docs and
// docs/modules/ROOT/pages/connectors
// docs/modules/ROOT/pages/reference/connectors
File docFolder = new File(connectorDir, "src/main/docs/");
File docFile = new File(docFolder, getMainDepArtifactId() + "-kafka-" + ct.name().toLowerCase() + "-connector.adoc");
File docFolderWebsite = new File(projectBaseDir, "docs/modules/ROOT/pages/reference/connectors/");

0 comments on commit 66dc117

Please sign in to comment.