Generated HTML API documentation for the Foreman and its plugins via apipie-rails.
The content is hosted at https://apidocs.theforeman.org
For Foreman documentation go to https://docs.theforeman.org
To add or update a Foreman version:
make foreman-version VERSION=X.YThis downloads apidocs from GitHub Actions and either:
- New version: Creates directory, updates index.html, sets
latestsymlink (if newest) - Existing version: Updates apidoc files, preserves static assets (CSS/JS)
Individual steps:
make foreman-download VERSION=X.Y # Download only
./scripts/foreman-process-version.sh X.Y # Process after manual download
make cleanup # Remove i18n/JSON filesStep 1: Generate API docs in a Foreman + Katello development environment
- cd to the katello directory and checkout the relevant release branch
- cd to the foreman directory and checkout the relevant stable branch
APIPIE_RECORD=examples bundle exec rake testRAILS_ENV=production FOREMAN_APIPIE_LANGS=en bundle exec rake apipie:cache
Step 2: Prepare folder for the new version (X.Y)
In the apidocs repository root:
cp -r katello/TEMPLATE katello/X.Yln -snf X.Y katello/latestcp -r /path/to/foreman/public/apipie-cache/apidoc/* katello/X.Y/apidoc- Update index.html with a link to the new version
- Run cleanup script:
./scripts/cleanup.sh
All files are auto-generated and distributed under GNU GPL v3 conditions. See the LICENSE file for more info.