Skip to content

Add documentation site generation for Java SDK#1524

Merged
edburns merged 3 commits into
mainfrom
edburns/dd-3009225-build-documentation-process
Jun 1, 2026
Merged

Add documentation site generation for Java SDK#1524
edburns merged 3 commits into
mainfrom
edburns/dd-3009225-build-documentation-process

Conversation

@edburns
Copy link
Copy Markdown
Collaborator

@edburns edburns commented Jun 1, 2026

Ports Maven Site infrastructure from the standalone repo and adds a deploy-site job to java-publish-maven.yml that triggers site deployment on github/copilot-sdk-java's gh-pages branch.

Changes

  • java/src/site/: Full site content (markdown pages, site.xml, CSS, JaCoCo overlay) ported from copilot-sdk-java at v1.0.0-beta-8-java.0
  • java/pom.xml: Added maven-resources-plugin (site filtering), maven-site-plugin, and <reporting> section (javadoc, JaCoCo, surefire, SpotBugs, taglist, dependency analysis)
  • .github/workflows/java-publish-maven.yml: New deploy-site job that triggers deploy-site.yml on the standalone repo after release

Secrets required

  • JAVA_SITE_DEPLOY_TOKEN on this repo: PAT with actions:write on github/copilot-sdk-java to trigger workflow_dispatch

Companion PR

github/copilot-sdk-java — cross-repo deploy-site.yml rewrite (to be opened)

… SDK

Port src/site/ from the standalone repo (copilot-sdk-java) to the
monorepo's java/ directory. Add maven-resources-plugin executions for
site filtering, maven-site-plugin configuration with doxia-module-markdown,
and a full <reporting> section (javadoc, JaCoCo, surefire, SpotBugs,
taglist, dependency analysis).

Add a deploy-site job to java-publish-maven.yml that triggers the
standalone repo's deploy-site.yml workflow after a release, passing
version and monorepo tag information.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 1, 2026 06:01
@edburns edburns requested a review from a team as a code owner June 1, 2026 06:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Maven Site generation infrastructure for the Java SDK documentation (ported from the standalone repo) and wires release automation to trigger a documentation deployment workflow in github/copilot-sdk-java.

Changes:

  • Adds a full Maven Site source tree under java/src/site/ (site descriptor, markdown docs, CSS/theme assets, JaCoCo CSS overlay).
  • Updates java/pom.xml to generate a filtered site and configure site/reporting plugins (Javadoc, JaCoCo, Surefire report, SpotBugs, etc.).
  • Extends the Java publish workflow to trigger cross-repo site deployment after a release on main.
Show a summary per file
File Description
java/src/site/site.xml Maven Site descriptor (menus, Fluido skin config).
java/src/site/resources/css/site.css Custom site theme layered on Fluido skin.
java/src/site/markdown/index.md Site landing page with requirements, install, and quick example.
java/src/site/markdown/getting-started.md Step-by-step tutorial for first app, streaming, and tools.
java/src/site/markdown/setup.md Deployment/ops guidance (local CLI, OAuth, external server, BYOK).
java/src/site/markdown/documentation.md Core SDK usage guide (events, streaming, session management, etc.).
java/src/site/markdown/advanced.md Advanced feature guide (tools, BYOK, hooks, telemetry, elicitation, etc.).
java/src/site/markdown/mcp.md Guide for MCP server configuration and troubleshooting.
java/src/site/markdown/hooks.md Detailed session hooks documentation and examples.
java/src/site/markdown/cookbook/README.md Cookbook index and recipe links.
java/src/site/markdown/cookbook/error-handling.md Cookbook recipe covering error-handling patterns.
java/src/site/markdown/cookbook/multiple-sessions.md Cookbook recipe for parallel sessions and executor usage.
java/src/site/markdown/cookbook/managing-local-files.md Cookbook recipe for file organization workflows.
java/src/site/markdown/cookbook/persisting-sessions.md Cookbook recipe for session persistence/resume/delete patterns.
java/src/site/markdown/cookbook/pr-visualization.md Cookbook recipe for generating PR-age charts using GitHub MCP server.
java/src/site/jacoco-resources/report.css Custom JaCoCo report stylesheet overlay to match site theme.
java/pom.xml Adds site filtering, site plugin config, and reporting section for site generation.
.github/workflows/java-publish-maven.yml Adds a deploy-site job to trigger cross-repo documentation deployment post-release.

Copilot's findings

  • Files reviewed: 18/20 changed files
  • Comments generated: 3

Comment thread java/src/site/markdown/getting-started.md Outdated
Comment thread java/src/site/markdown/advanced.md Outdated
Comment thread java/src/site/site.xml Outdated
edburns and others added 2 commits May 31, 2026 23:30
Site content (src/site/) and reporting plugins now live in
github/copilot-sdk-java where the gh-pages deployment runs.
The monorepo only triggers the standalone's deploy-site workflow
and provides the Java source at the release tag.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Remove deploy-site job from java-publish-maven.yml (will be re-added
  after validation)
- Add PR-1524-test-java-publish-maven.yml with hardcoded tag
  java/v1.0.0-beta-10-java.5 for testing the cross-repo trigger

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread .github/workflows/PR-1524-test-java-publish-maven.yml Dismissed
@edburns edburns merged commit acb8df0 into main Jun 1, 2026
22 checks passed
@edburns edburns deleted the edburns/dd-3009225-build-documentation-process branch June 1, 2026 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants