We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df8e569 commit 37a2510Copy full SHA for 37a2510
1 file changed
docs/src/main/java/io/jooby/adoc/DocGenerator.java
@@ -46,7 +46,7 @@ public static void generate(Path basedir, boolean publish, boolean v1, boolean d
46
String version = version();
47
// 2.x/3.x/main
48
var branch = new Git("jooby-project", "jooby", Paths.get(System.getProperty("user.dir"))).currentBranch();
49
- var uiVersion = branch.equals("main") ? "" : "/v" + branch.replace(".x", "");
+ var uiVersion = branch.endsWith(".x") ? "/v" + branch.replace(".x", "") : "";
50
51
Path asciidoc = basedir.resolve("asciidoc");
52
0 commit comments