How to build the site locally
This page explains how to build the Cocoon documentation site with the maven-site-plugin.
Existing site checkout
The live website is generated from XDOC sources and published via Svnpubsub
You can fetch a copy of the live website with
svn co https://svn.apache.org/repos/asf/cocoon/site/site $LIVEWEBSITE
Site sources checkout
- For Cocoon 2.2:
where $SITESOURCES22 is the root directory for 2.2 site sources.
svn co https://svn.apache.org/repos/asf/cocoon/trunk/site $SITESOURCES22
- For Cocoon 3.0:
where $SITESOURCES30 is the directory for 3.0 site sources.
svn co https://svn.apache.org/repos/asf/cocoon/cocoon3/trunk/parent $SITESOURCES30
Building the website
- Once you have made some modifications, cd into one of $SITESOURCES22 subdirectories or into $SITESOURCES30 (depending on what portion of the site you would like to build) and launch
mvn site-deploy -Ddocs.deploymentBaseUrl=file://$LIVEWEBSITE
- Point your favorite browser to file://$LIVEWEBSITE