kwin commented on code in PR #627:
URL:
https://github.com/apache/maven-doxia-sitetools/pull/627#discussion_r3000758122
##########
doxia-site-model/src/main/mdo/site.mdo:
##########
@@ -368,6 +368,54 @@ under the License.
<identifier>true</identifier>
<defaultValue>Etc/UTC</defaultValue>
</field>
+ <field xml.attribute="true">
+ <name>value</name>
+ <description>
+ <![CDATA[
+ The Velocity context key to use as source for the date. Usually
one of "publishDate" or "scmLastModified". Must have a value of type
<code>java.util.Date</code>.
+ ]]>
+ </description>
+ <version>2.1.0+</version>
+ <type>String</type>
+ <identifier>true</identifier>
+ <defaultValue>publishDate</defaultValue>
+ </field>
+ <field xml.attribute="true">
+ <name>prefix</name>
+ <description>
+ <![CDATA[
+ The prefix to emit in front of the date. When starting with
<code>template.</code> it is assumed to reference a key from the
<code>site-renderer.properties</code>, otherwise it is a literal value.
+ ]]>
+ </description>
+ <version>2.1.0+</version>
+ <type>String</type>
+ <identifier>true</identifier>
+ <defaultValue>template.lastpublished</defaultValue>
+ </field>
+ <field xml.attribute="true">
+ <name>fallbackValue</name>
+ <description>
+ <![CDATA[
+ The Velocity context key to use as source for the date. Used as
fallback when the context given in "value" is not available. Must have a value
of type <code>java.util.Date</code>. This is useful when the context given in
"value" is only available for Doxia source documents (but not for reports).
+ ]]>
+ </description>
+ <version>2.1.0+</version>
+ <type>String</type>
+ <identifier>true</identifier>
+ <defaultValue>date</defaultValue>
Review Comment:
What should be the default fallback? Rather `publishDate` as well?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]