Create chunked HTML as well as single HTML

git-svn-id: https://svn.apache.org/repos/asf/servicemix/documentation/trunk@940593 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/common/src/main/resources/theme/master.css b/common/src/main/resources/theme/master.css
index 595a5f4..c676fa8 100644
--- a/common/src/main/resources/theme/master.css
+++ b/common/src/main/resources/theme/master.css
@@ -1,5 +1,5 @@
 body {
-  font-family: sans-serif;
+  font-family: verdana, helvetica, sans-serif;
 }
 
 table.reference tbody tr {
@@ -14,4 +14,5 @@
 
 .legalnotice {
   font-size: 0.8em;
+  background-color: #E0E0E0; 
 }
\ No newline at end of file
diff --git a/docs/pom.xml b/docs/pom.xml
index 3b763b5..486ead0 100644
--- a/docs/pom.xml
+++ b/docs/pom.xml
@@ -97,8 +97,9 @@
         <artifactId>docbkx-maven-plugin</artifactId>
         <version>2.0.9</version>
         <executions>
+
           <execution>
-            <id>generate-html</id>
+            <id>generate-chuncked-html</id>
             <goals>
               <goal>generate-html</goal>
             </goals>
@@ -108,7 +109,7 @@
               <chunkToc>false</chunkToc>
               <chunkedOutput>true</chunkedOutput>
               <postProcess>
-                <property name="theme" location="${project.build.directory}/docbkx/html/theme"/>
+                <property name="theme" location="${project.build.directory}/site/html/theme"/>
                 <mkdir dir="${theme}"/>
                 <copy todir="${theme}">
                   <fileset dir="${project.build.directory}/common/theme"/>
@@ -117,6 +118,27 @@
               <targetDirectory>${project.reporting.outputDirectory}/html</targetDirectory>
             </configuration>
           </execution>
+
+          <execution>
+            <id>generate-single-html</id>
+            <goals>                                                                                                                                                       
+              <goal>generate-html</goal>
+            </goals>
+            <phase>verify</phase>
+            <configuration>
+              <htmlStylesheet>theme/master.css</htmlStylesheet>
+              <chunkedOutput>false</chunkedOutput>
+              <postProcess>
+                <property name="theme" location="${project.build.directory}/site/single/theme"/>
+                <mkdir dir="${theme}"/>
+                <copy todir="${theme}">
+                  <fileset dir="${project.build.directory}/common/theme"/>
+                </copy>
+              </postProcess>
+              <targetDirectory>${project.reporting.outputDirectory}/single</targetDirectory>
+            </configuration>
+          </execution>
+
           <execution>
             <id>generate-pdf</id>
             <goals>
diff --git a/pom.xml b/pom.xml
index 06dd3dd..20e9507 100644
--- a/pom.xml
+++ b/pom.xml
@@ -59,6 +59,7 @@
             <phase>initialize</phase>
             <configuration>
               <tasks>
+                <!-- a little hack to ensure site:deploy works fine -->
                 <mkdir dir="target/site" />
                 <touch file="target/site/UPDATE" />
               </tasks>