Skip to content

Commit e186256

Browse files
committed
change library to artifact to better align with maven
Signed-off-by: Lewis Birks <22620804+lewisbirks@users.noreply.github.com>
1 parent bef4b01 commit e186256

2 files changed

Lines changed: 10 additions & 14 deletions

File tree

docs/asciidoc/execution-model.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ worker executor is used when:
354354

355355
Each web server provides a default *worker executor*:
356356

357-
- Netty: The javadoc:netty.NettyServer[text=Netty server, library=netty] implementation multiply the number of available processors
357+
- Netty: The javadoc:netty.NettyServer[text=Netty server, artifact=jooby-netty] implementation multiply the number of available processors
358358
(with a minimum of 2) by 8.
359359

360360
----
@@ -363,7 +363,7 @@ workerThreads = Math.max(Runtime.getRuntime().availableProcessors(), 2) * 8
363363

364364
For example `8` cores gives us `64` worker threads.
365365

366-
- Undertow: The javadoc:undertow.UndertowServer[text=Undertow server, library=undertow] implementation multiply the number of available processors
366+
- Undertow: The javadoc:undertow.UndertowServer[text=Undertow server, artifact=jooby-undertow] implementation multiply the number of available processors
367367
by 8.
368368

369369
----
@@ -372,7 +372,7 @@ workerThreads = Runtime.getRuntime().availableProcessors() * 8
372372

373373
For `8` cores gives us `64` worker threads.
374374

375-
- Jetty: The javadoc:jetty.JettyServer[text=Jetty server, library=jetty] implementation uses the default configuration
375+
- Jetty: The javadoc:jetty.JettyServer[text=Jetty server, artifact=jooby-jetty] implementation uses the default configuration
376376
with `200` worker threads.
377377

378378
These are sensible defaults suggested by the server implementation. If you need to increase/decrease

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

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,12 @@ public PhraseNode process(StructuralNode parent, String clazz, Map<String, Objec
9595
}
9696

9797
private static StringBuilder generateLink(Map<String, Object> attributes) {
98-
String library = (String) attributes.get("library");
99-
StringBuilder link = new StringBuilder("https://www.javadoc.io/doc/io.jooby/jooby");
100-
if (library != null) {
101-
link.append("-").append(library);
102-
}
103-
link.append("/latest/io.jooby");
104-
if (library != null) {
105-
link.append('.').append(library);
106-
}
107-
link.append("/io/jooby/");
108-
return link;
98+
99+
String artifact = (String) attributes.getOrDefault("artifact", "jooby");
100+
return new StringBuilder("https://www.javadoc.io/doc/io.jooby/")
101+
.append(artifact)
102+
.append("/latest/io.")
103+
.append(artifact.replace('-', '.'))
104+
.append("/io/jooby/");
109105
}
110106
}

0 commit comments

Comments
 (0)