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 and docs/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.
Possible TODO list:
Automate the generation of API doc for OpenJ9. Simon Rushton added the
ARCHIVE_JAVADOC: trueparam 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:ARCHIVE_JAVADOC: trueparam to generate the API doc.docs/api/jdk8anddocs/api/jdk11folders), check for changes, commit, push a branch to the bot account's fork.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.
Possible TODO list:
true@dev who made change from PR