Skip to content

Commit 6dd9f24

Browse files
committed
feat: add Javadoc verification step in build workflow and update example usage formatting
1 parent 6a9d666 commit 6dd9f24

File tree

3 files changed

+20
-8
lines changed

3 files changed

+20
-8
lines changed

.github/workflows/build-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ jobs:
4747
- name: Build SDK and clone test harness
4848
run: mvn test-compile
4949

50+
- name: Verify Javadoc generation
51+
run: mvn javadoc:javadoc -q
52+
5053
- name: Install Copilot CLI from cloned SDK
5154
id: setup-copilot
5255
run: |

pom.xml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,20 @@
7272
</dependencies>
7373

7474
<build>
75+
<pluginManagement>
76+
<plugins>
77+
<plugin>
78+
<groupId>org.apache.maven.plugins</groupId>
79+
<artifactId>maven-javadoc-plugin</artifactId>
80+
<version>3.12.0</version>
81+
<configuration>
82+
<show>public</show>
83+
<nohelp>true</nohelp>
84+
<doclint>none</doclint>
85+
</configuration>
86+
</plugin>
87+
</plugins>
88+
</pluginManagement>
7589
<plugins>
7690
<plugin>
7791
<groupId>org.apache.maven.plugins</groupId>
@@ -292,12 +306,6 @@
292306
<plugin>
293307
<groupId>org.apache.maven.plugins</groupId>
294308
<artifactId>maven-javadoc-plugin</artifactId>
295-
<version>3.12.0</version>
296-
<configuration>
297-
<show>public</show>
298-
<nohelp>true</nohelp>
299-
<doclint>none</doclint>
300-
</configuration>
301309
<reportSets>
302310
<reportSet>
303311
<reports>
@@ -330,7 +338,6 @@
330338
<plugin>
331339
<groupId>org.apache.maven.plugins</groupId>
332340
<artifactId>maven-javadoc-plugin</artifactId>
333-
<version>3.12.0</version>
334341
<executions>
335342
<execution>
336343
<id>attach-javadocs</id>

src/main/java/com/github/copilot/sdk/CopilotSession.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,9 @@ public Closeable on(Consumer<AbstractSessionEvent> handler) {
312312
* {@code instanceof} checks. The handler will only be called for events
313313
* matching the specified type.
314314
*
315-
* <h2>Example Usage</h2>
315+
* <p>
316+
* <b>Example Usage</b>
317+
* </p>
316318
*
317319
* <pre>{@code
318320
* // Handle assistant messages

0 commit comments

Comments
 (0)