Skip to content

Commit 37a2510

Browse files
committed
doc: fix legacy vs current path for modules
1 parent df8e569 commit 37a2510

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/main/java/io/jooby/adoc/DocGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static void generate(Path basedir, boolean publish, boolean v1, boolean d
4646
String version = version();
4747
// 2.x/3.x/main
4848
var branch = new Git("jooby-project", "jooby", Paths.get(System.getProperty("user.dir"))).currentBranch();
49-
var uiVersion = branch.equals("main") ? "" : "/v" + branch.replace(".x", "");
49+
var uiVersion = branch.endsWith(".x") ? "/v" + branch.replace(".x", "") : "";
5050

5151
Path asciidoc = basedir.resolve("asciidoc");
5252

0 commit comments

Comments
 (0)