This repository contains the Javadoc that is published on https://openliberty.io, including the following models:
- Open Liberty APIs
- Open Liberty SPIs
- MicroProfile APIs
- Jakarta EE APIs
- Java EE APIs
MicroProfile and Jakarta API documentation is updated with each major release from those platforms. The Open Liberty API and SPI documentation is updated with each 4-week release of the runtime.
The following steps document the procedure the Open Liberty Docs team follows to prepare the Open Liberty API and SPI Javadoc files for publication with each release.
Complete these steps 2-3 days before the release to ensure that you have time to verify the Javadoc on the staging site. However, the Javadoc doesn't appear on the staging site until after the other autogenerated files for the release are committed to the staging branch of the docs-generated repository and the resulting staging site build finishes. The autogenerated files are typically added to the staging
branch of the docs-generated
repo 1-2 days before the release.
-
Clone the
docs-javadoc
repository. -
Get the generated
com.ibm.openliberty.javadoc.doc.jar
file from the Liberty GM build. -
Change the extension of the file from
com.ibm.openliberty.javadoc.doc.jar
tocom.ibm.openliberty.javadoc.doc.zip
. -
Extract the
com.ibm.openliberty.javadoc.doc.zip
to a temporary directory on your local machine. -
Create a branch off the
prod
branch ofdocs-javadoc
and give it a descriptive name. -
In the
modules/reference
directory of thedocs-javadoc
repository, create a new folder and name it based on the version for that release, for examplemodules/reference/23.0.0.7
. -
Copy all the
-javadoc
folders from your local extracted copy of thecom.ibm.openliberty.javadoc.doc
folder into the newmodules/reference/<version>
folder that you created in the previous step. -
Commit your changes to the branch that you created in step 5.
-
Create a pull request from your branch to
staging
. Do not add the files todraft
. -
Get the PR reviewed by a docs team member and merge it.
-
Add the javadoc nav file and iframe files to the docs-generated repo.
a. In the docs-generated repo, create a new vNext-based branch and give it a descriptive name.
b. Copy the
feature-nav-api-openliberty.adoc
andfeature-nav-spi-openliberty.adoc
files from thenav
directory of your local extracted copy of thecom.ibm.openliberty.javadoc.doc
folder to themodules/reference/partials
directory in the docs-generated repo.c. Copy the
api
andspi
directories from theiframe
directory of your local extracted copy of thecom.ibm.openliberty.javadoc.doc
folder to themodules/reference/pages/javadoc
directory in the docs-generated repo.d. Create a PR from your working branch to the
draft
branch of the docs-generated repo, get it reviewed and merge it in.e. Create a PR from the
draft
branch to thestaging
branch of the docs-generated repo, get it reviewed and merge it in. -
Verify the updated Javadoc on the docs staging site. The Javadoc doesn't appear on the staging site until after the autogenerated files for the release are committed to the staging branch of the docs-generated repository and the resulting staging site build finishes. The autogenerated files are typically added to the
staging
branch of thedocs-generated
repo 1-2 days before the release. -
In the
docs-javadoc
repository, create a PR from thestaging
branch into theprod
branch. -
Get the PR reviewed by a docs team member and merge it.
The updated Javadoc publishes to openliberty.io with the rest of the 4-week release. For more information about the publishing process, see Publishing a new release of the open Liberty Docs.