-
Notifications
You must be signed in to change notification settings - Fork 75
Open
Description
Automate the generation of API doc for OpenJ9. Simon Rushton added the ARCHIVE_JAVADOC: true
param to the nightly builds to generate API doc for Java 8 and 11, now we need a process to get that into the hosted user doc. Here are suggested steps, kicked off when a developer commits an update that includes API doc comments in the code:
- Run a compile after every PR is merged so that only a single PR is "tested" for doc changes. Specify the
ARCHIVE_JAVADOC: true
param to generate the API doc. - Create a branch on the functional ID's fork of openj9-docs repo.
- Take the docs zip from the compile, extract and move as necessary to overlay (populate the
docs/api/jdk8
anddocs/api/jdk11
folders), check for changes, commit, push a branch to the bot account's fork. - Open a PR to commit the update to the openj9-docs repo.
- Add a "Jenkins doc stage" comment to the PR, to stage the update in the OpenJ9 draft docs.
- Possibly send a notification to the developer that the draft API doc is ready to be checked (with a link), or the build instructions tell developers to look the following day (if we compile nightly), or the instructions tell developers to look for a relevant PR in the openj9-docs repo.
ID team can then merge the PR manually once a feature is definitely in the release, like they do already for user doc.
Build instructions will need updating to explain.
- Saves manual effort for developers and ID in getting API doc published.
- Avoids API doc updates being missed or forgotten.
- Published API doc
- Eclipse builds
- API folder
Possible TODO list:
- Merge builds (per jdk version) (on the fastest platform) with ARCHIVE_JAVADOC
true
- Follow-up build to pull javadoc, overlay, commit, push
- Tie together merge build and api doc build
- Automated PR from new branch
- Kick off doc stage from PR
- Ping
@
dev who made change from PR
Metadata
Metadata
Assignees
Labels
No labels