Publish Uyuni API Documentation
Uyuni API documentation is maintained and published from uyuni-project/uyuni-docs-api. API source files are generated upstream into an apidoc RPM during Uyuni project builds.
For prerequisites and toolchain setup, see Container setup.
1. Obtain the API Documentation RPM
The API content is packaged in an RPM produced by Uyuni project builds:
-
Browse to the openSUSE repository for Uyuni Master: download.opensuse.org/repositories/systemsmanagement:/Uyuni:/Master/
Distribution VersionSelect the correct distribution version for the current release (for example,
openSUSE_Leap_16.0/noarch/). The distribution segment changes across major releases, so navigate from theMaster/root to find the current target distribution tree. -
Once in the
noarch/directory:- Click Show all entries.
- Search for
apidoc(for example,spacewalk-java-apidoc-*.noarch.rpm). - Download the
apidocRPM for the latest release.
2. Extract and Update API Content
-
Extract the downloaded RPM into a temporary directory:
mkdir -p /tmp/uyuni-apidoc-extract
cd /tmp/uyuni-apidoc-extract
rpm2cpio /path/to/spacewalk-java-apidoc-*.noarch.rpm | cpio -idmv -
In your local clone of uyuni-docs-api, ensure you are on
master:cd uyuni-docs-api
git checkout master
git pull origin master -
Copy the extracted AsciiDoc content into
modules/api/pages/:cp -r /tmp/uyuni-apidoc-extract/usr/share/doc/packages/spacewalk-java/asciidoc/* modules/api/pages/ -
Remove the
handlersdirectory if present:rm -rf modules/api/pages/handlers -
Stage, commit, and push the updated content to
master:git add modules/api/pages/
git commit -m "Update API documentation sources from latest apidoc RPM"
git push origin master
3. Update config.yaml
Update the release attributes in config.yaml.
Consult with the release engineers to check if an API version number bump is required for this release.
Update the following attributes under the Uyuni product definition:
productnumber: "2026.11"
apiversion: "30"
Commit and push your configuration changes:
git add config.yaml
git commit -m "Bump productnumber and apiversion for release"
git push origin master
4. Build the API Documentation
Run the publish build using the documentation container:
task container:publish:uyuni
Output is generated into the build/ directory on your host. Verify the generated output and debug logs for missing attributes or errors before continuing.
5. Deploy to gh-pages
Publish the built site by pushing to a feature branch targeting gh-pages:
-
Back up the build output to a temporary directory:
cp -r build/ /tmp/uyuni-api-build-temp/ -
Check out the
gh-pagesbranch and pull latest changes:git checkout gh-pages
git pull origin gh-pages -
Create and check out a new feature branch:
git checkout -b uyuni-YYYY.MM-ghpages-update -
Copy the build contents from the temporary directory into your repository root:
cp -r /tmp/uyuni-api-build-temp/* . -
Commit and push your changes to upstream:
git add .
git commit -m "Deploy Uyuni API documentation for release"
git push -u origin uyuni-YYYY.MM-ghpages-update -
Create a Pull Request:
In GitHub, open a pull request with base
gh-pagesand compareuyuni-YYYY.MM-ghpages-update. -
Notify Release Engineers:
Share the pull request link with the release engineers so they can review and complete the release.