Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.9.2
-
Labels:None
-
Number of attachments :
Description
Currently, we can't directly use the pom or velocity in user-documentation.
JSL is applied to the user-docs as-is. I suggest having a property called maven.docs.src.templates (defaults to false) that when set to true treats user-docs as templates.
Then, slightly modify the goal xdoc:jelly-transform.
We need to var's:
<j:set var="mergeUserDocs" value="$
{maven.docs.src.templates}"/>
<j:set var="hasUserDocs" value="$
"/>
If both evaluate to true then velocity:merge the user docs before doing jsl. If they evaluate to false do as before.
It would probably be nice to be able to use jelly as well as user-supplied docs.
Maybe it would be nice to be able to use .jelly also as user-docs. If anybody is interested I'll supply the patch.