This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-doxia-sitetools.git
The following commit(s) were added to refs/heads/master by this push:
new e3aded9 Clarify image attributes in site descriptor
e3aded9 is described below
commit e3aded99c1fc261e238f9089fa12b7f4d5af4bad
Author: Konrad Windszus <[email protected]>
AuthorDate: Sat Feb 14 13:53:56 2026 +0100
Clarify image attributes in site descriptor
Mention in which HTML element and attribute they end up in to clarify
the syntax.
This relates to #618
---
doxia-site-model/src/main/mdo/site.mdo | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/doxia-site-model/src/main/mdo/site.mdo
b/doxia-site-model/src/main/mdo/site.mdo
index 9d04432..a4fa81f 100644
--- a/doxia-site-model/src/main/mdo/site.mdo
+++ b/doxia-site-model/src/main/mdo/site.mdo
@@ -582,12 +582,12 @@ under the License.
<class java.clone="deep">
<name>Image</name>
- <description>An image.</description>
+ <description>An image. Generates an "img" element
(https://html.spec.whatwg.org/#the-img-element).</description>
<version>2.0.0+</version>
<fields>
<field xml.attribute="true">
<name>src</name>
- <description>The source location.</description>
+ <description>The source location. Ends up in the "img src" attribute
(https://html.spec.whatwg.org/#attr-img-src).</description>
<version>2.0.0+</version>
<type>String</type>
<required>true</required>
@@ -603,28 +603,28 @@ under the License.
</field>
<field xml.attribute="true">
<name>alt</name>
- <description>The alternative text to use.</description>
+ <description>The alternative text to use. Ends up in the "img alt"
attribute (https://html.spec.whatwg.org/#alt).(</description>
<version>2.0.0+</version>
<type>String</type>
<identifier>true</identifier>
</field>
<field xml.attribute="true">
<name>width</name>
- <description>The width to use.</description>
+ <description>The width to use. Added to the generated "img style"
attribute (https://html.spec.whatwg.org/#the-style-attribute) prefixed by
"width: ".</description>
<version>2.0.0+</version>
<type>String</type>
<identifier>true</identifier>
</field>
<field xml.attribute="true">
<name>height</name>
- <description>The height to use.</description>
+ <description>The height to use. Added to the generated "img style"
attribute (https://html.spec.whatwg.org/#the-style-attribute) prefixed by
"height: ".</description>
<version>2.0.0+</version>
<type>String</type>
<identifier>true</identifier>
</field>
<field xml.attribute="true">
<name>style</name>
- <description>The style to use.</description>
+ <description>The style to use. Ends up in the "img style" attribute
(https://html.spec.whatwg.org/#the-style-attribute) as is.</description>
<version>2.0.0+</version>
<type>String</type>
<identifier>true</identifier>