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-javadocrepository. -
Get the generated
com.ibm.openliberty.javadoc.doc.jarfile from the Liberty GM build. -
Change the extension of the file from
com.ibm.openliberty.javadoc.doc.jartocom.ibm.openliberty.javadoc.doc.zip. -
Extract the
com.ibm.openliberty.javadoc.doc.zipto a temporary directory on your local machine. -
Create a branch off the
prodbranch ofdocs-javadocand give it a descriptive name. -
In the
modules/referencedirectory of thedocs-javadocrepository, create a new folder and name it based on the version for that release, for examplemodules/reference/23.0.0.7. -
Copy all the
-javadocfolders from your local extracted copy of thecom.ibm.openliberty.javadoc.docfolder 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.adocandfeature-nav-spi-openliberty.adocfiles from thenavdirectory of your local extracted copy of thecom.ibm.openliberty.javadoc.docfolder to themodules/reference/partialsdirectory in the docs-generated repo.c. Copy the
apiandspidirectories from theiframedirectory of your local extracted copy of thecom.ibm.openliberty.javadoc.docfolder to themodules/reference/pages/javadocdirectory in the docs-generated repo.d. Create a PR from your working branch to the
draftbranch of the docs-generated repo, get it reviewed and merge it in.e. Create a PR from the
draftbranch to thestagingbranch 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
stagingbranch of thedocs-generatedrepo 1-2 days before the release. -
In the
docs-javadocrepository, create a PR from thestagingbranch into theprodbranch. -
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.