This page is a supplement to the main release procedure. The release manager may or may not also be the docs release manager.
You'll need (at least) three things to build and publish the documentation:
The Apache CloudStack documentation requires Publican to build and (of course) the source code to the documentation itself. You can use the source tarball from a release once it's been approved via the VOTE or use source from Git.
You'll also need a checkout of the Web site via SVN. If you don't have this already, you'll need to get it, like so:
co svn https://svn.apache.org/repos/asf/cloudstack/
You should have two source code directories: the Apache CloudStack source and the source for the Apache CloudStack Web site.
Use Publican to build the docs:
publican build --embedtoc --formats=html,epub,pdf,html-single --langs=en-US --publish --config=publican-adminguide.cfg
Replace the .cfg filename in "--config=" with the appropriate configuration file. We currently have four guides that need to be built with each release.
Replace the --langs= with the appropriate language(s) that should be built.
After you build and install the docs successfully, look under the publish directory under cloudstack/docs/
in the source tree.
You'll see directories for each language and version there, like en-US/4.0.2, and for each format (epub,html,html-single,pdf). You can (and should) look these over to make sure the build looks like what you expect it to.
Next you're going to add the current version of the documentation to the existing documentation. You'll stage this in the docsite directory, and then copy it over to the source tree where the site documentation actually lives.
publican install_book --site_config ~/src/web/cloudstack/docsite/acsdocs.cfg --config=publican-adminguide.cfg --lang en-US
Note that you'll need to edit the acsdocs.cfg file to match your environment. Again, replace the variable (filename) after --config= to the appropriate value, like publican-install.cfg, etc. All of the appropriate config files are under the cloudstack/docs directory, just do 'ls *cfg' and you'll see all of them. Note that some of them are unusued.
Replace the --langs= with the appropriate language(s) that should be built.
Next you'll need to copy the documentation from the docsite
directory to the docs
directory:
cp -R docsite/html/docs/* site/trunk/content/docs/.