Awesome
Foreman API documentation
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
Adding new version
Follow these steps to add a new version:
Foreman
Generate API docs in Foreman:
- cd to foreman directory and checkout the relevant stable branch
- disable any plugins installed locally
APIPIE_RECORD=examples bundle exec rake test
FOREMAN_APIPIE_LANGS=en bundle exec rake apipie:cache
Prepare folder for the new version (X.Y)
- cd to foreman directory
cp -r TEMPLATE X.Y
ln -snf X.Y latest
cp -r dir/to/foreman/public/apipie-cache/apidoc/* X.Y/apidoc
- run cleanup script in apidocs repo:
cleanup.sh
- update index.html file with a link to the new page
Katello
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 test
RAILS_ENV=production FOREMAN_APIPIE_LANGS=en bundle exec rake apipie:cache
Prepare folder for the new version (X.Y)
- cd to the apidocs/katello directory
cp -r TEMPLATE X.Y
ln -snf X.Y latest
cp -r dir/to/foreman/public/apipie-cache/apidoc/* X.Y/apidoc
- run cleanup script in apidocs repo:
cleanup.sh
- update index.html file with a link to the new page
LICENSE
All files are auto-generated and distributed under GNU GPL v3 conditions. See the LICENSE file for more info.