Doxia Sitetool Site Model
This is the model of the site descriptor, site.xml, which the Maven Site Plugin reads to build menus, breadcrumbs and other decoration around the pages: see Doxia Site Renderer for how a site is rendered. To write a site.xml, start with the site descriptor guide; the descriptor reference lists every element.
The following are generated from this model:
- Java sources with Reader and Writers for the Xpp3 XML parser
- A Descriptor Reference
- An XSD referenced in the Descriptor Reference.
Inheritance
Site model can be merged from a parent site.xml into a child site.xml using SiteModelInheritanceAssembler (javadoc) with its DefaultSiteModelInheritanceAssembler implementation (source).
By default, the child's links and breadcrumbs are added to the parent's. Since site descriptor 2.2.0, combine.links="override" and combine.breadcrumbs="override" on the child's <body> keep only the child's own entries; for breadcrumbs, the entry generated for the child project is left out too, so an empty list stays empty:
<body combine.breadcrumbs="override">
<breadcrumbs>
<item name="My project" href="https://example.com/"/>
</breadcrumbs>
</body>
<site combine.self="override"> drops the whole parent descriptor.
Model versions
A descriptor declares its model version in its namespace, for example http://maven.apache.org/SITE/2.2.0. Since 2.2.0, reading a site or skin descriptor that declares a newer model than this release supports logs a warning naming both versions: the descriptor's unknown elements would otherwise fail with less obvious parse errors. Older model versions are read without a warning.
Interpolation
Interpolation is not done here: see Doxia Integration Tools documentation for more details.


