package site;

import org.apache.felix.ipojo.configuration.Configuration;
import org.apache.felix.ipojo.configuration.Instance;

/**
 * Declares an instance of the asset controller to server $basedir/documentation.
 * The goal is to have the external documentation (reference, mojo and javadoc) structured as follows:
 *
 * {@literal documentation/reference/0.4}
 * {@literal documentation/reference/0.5-SNAPSHOT}
 * {@literal documentation/wisdom-maven-plugin/0.4}
 * {@literal documentation/wisdom-maven-plugin/0.5-SNAPSHOT}
 * {@literal documentation/apidocs/0.4}
 * {@literal documentation/apidocs/0.5-SNAPSHOT}
 * ...
 */
@Configuration
public class DocConfiguration {

    /**
     * Declares the instance of resource controller serving resources from 'basedir/documentation'.
     */
    Instance instance = Instance.instance().of("org.wisdom.resources.ResourceController")
            .named("Documentation-Resources")
            .with("path").setto("documentation");
}

@@ -313,16 +313,21 @@
 lows:%0A *
+ %3Cp/%3E
 %0A * %7B@li
@@ -797,27 +797,83 @@
     
-Instance instance =
+public static Instance declareTheDocumentationController() %7B%0A        return
  Ins
@@ -914,24 +914,21 @@
 sources.
-Resource
+Asset
 Controll
@@ -932,16 +932,20 @@
 oller%22)%0A
+    
         
@@ -994,16 +994,20 @@
         
+    
 .with(%22p
@@ -1036,10 +1036,16 @@
 tion%22);%0A
+    %7D%0A
 %7D%0A

Update the resource controller instance. The class has changed.