summaryrefslogtreecommitdiffstats
path: root/vpp-integration/api-docs/core
diff options
context:
space:
mode:
Diffstat (limited to 'vpp-integration/api-docs/core')
-rw-r--r--vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/CoverageGenerator.java3
-rw-r--r--vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/VppApiUtils.java8
2 files changed, 5 insertions, 6 deletions
diff --git a/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/CoverageGenerator.java b/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/CoverageGenerator.java
index ff6c9b78b..bc94a74cb 100644
--- a/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/CoverageGenerator.java
+++ b/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/CoverageGenerator.java
@@ -54,7 +54,6 @@ public class CoverageGenerator implements VppApiUtils {
}
public PluginCoverage generateConfigCoverage(final Class<?> pluginClass,
- final String version,
final List<Module> scannedModules,
final YangTypeLinkIndex yangTypeIndex,
final ClassPathTypeIndex classPathIndex) {
@@ -90,7 +89,7 @@ public class CoverageGenerator implements VppApiUtils {
final CoverageUnit.CoverageUnitBuilder builder = new CoverageUnit.CoverageUnitBuilder();
// binds vpp api name and generateLink bind with version
- builder.setVppApi(fromJvppApi(version, jvppMethodName));
+ builder.setVppApi(fromJvppApi(jvppMethodName));
//binds java api reference
builder.setJavaApi(new JavaApiMessage(jvppMethodName));
diff --git a/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/VppApiUtils.java b/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/VppApiUtils.java
index c978abae5..d510221e8 100644
--- a/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/VppApiUtils.java
+++ b/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/VppApiUtils.java
@@ -22,18 +22,18 @@ import io.fd.hc2vpp.docs.api.VppApiMessage;
public interface VppApiUtils {
- static String generateVppApiDocLink(final String version, final String vppMessageName) {
+ static String generateVppApiDocLink(final String vppMessageName) {
//https://docs.fd.io/vpp/17.07/d9/d1d/structvl__api__create__subif__t.html
// links are using double underscore
//final String doubleUnderscoreApiName = vppApi.replace("_", "__");
//return format("https://docs.fd.io/vpp/%s/d9/d1d/structvl__api__%s__t.html", version, doubleUnderscoreApiName);
// FIXME - generateLink has dynamic part that can be resolved from api name
- return "https://docs.fd.io/vpp/17.07/annotated.html";
+ return "https://docs.fd.io/vpp/{project-vpp-version}/annotated.html";
}
- default VppApiMessage fromJvppApi(final String version, final String jvppMethodName) {
+ default VppApiMessage fromJvppApi(final String jvppMethodName) {
final String vppMessageName = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, jvppMethodName);
- return new VppApiMessage(vppMessageName, generateVppApiDocLink(version, vppMessageName));
+ return new VppApiMessage(vppMessageName, generateVppApiDocLink(vppMessageName));
}
}