decoration Decoration This is a reference for the site decoration descriptor used in Doxia Sitetools, also known as site.xml: it is used to configure a site template (aka skin).

An XSD is available at:

]]>
package org.apache.maven.doxia.site.decoration DecorationModel <project> element is the root of the site decoration descriptor. ]]> 1.0.0+ name The full name of the project. 1.0.0+ String true merge) or not (override). ]]> combineSelf 1.6.0+ String merge bannerLeft Banner logo on the masthead of the site to the left. 1.0.0+ Banner true bannerRight Banner logo on the masthead of the site to the right. 1.0.0+ Banner true publishDate Modify the date published display properties. 1.0.0+ PublishDate true version Modify the version published display properties. 1.0.0+ Version true edit ${project.scm.url} value should do the job. ]]> 1.8.0+ String true poweredBy Powered by logos list. 1.0.0+ Logo * true skin The artifact containing the skin for the site. 1.0.0+ Skin true body The main site content decoration. 1.0.0+ Body true custom $decoration.custom variable as DOM content. Example: $decoration.custom.getChild( 'customElement' ).getValue() ]]> 1.0.0+ DOM true lastModified Timestamp of the last modification of this decoration model. 1.0.1+ long 1.0.0+ menusByRef; /** * @param key not null * @return the menu ref defined by the given key. */ public Menu getMenuRef( String key ) { if ( menusByRef == null ) { menusByRef = new java.util.HashMap(); if ( body != null ) { for ( Menu menu : body.getMenus() ) { if ( menu.getRef() != null ) { menusByRef.put( menu.getRef(), menu ); } } } } return menusByRef.get( key ); } /** * @param key not null */ public void removeMenuRef( String key ) { if ( body != null ) { for ( java.util.Iterator i = body.getMenus().iterator(); i.hasNext(); ) { Menu menu = i.next(); if ( key.equals( menu.getRef() ) ) { i.remove(); } } } } /** * @return the menus list or EMPTY_LIST. */ public java.util.List getMenus() { java.util.List menus; if ( body != null && body.getMenus() != null ) { menus = body.getMenus(); } else { menus = java.util.Collections.emptyList(); } return menus; } ]]> Banner Banner logo on the masthead of the site. 1.0.0+ name 1.0.0+ The name of the banner. String true src 1.0.0+ The source location of an image for the banner. String true alt 1.0.0+ The alt description for the banner image. String true href 1.0.0+ The href of a link to be used for the banner image. String true border The border to use for the banner image. 1.0.1+ String true width The width to use for the banner image. 1.0.1+ String true height The height to use for the banner image. 1.0.1+ String true title 1.3.0+ The title for the banner image. String true PublishDate Modify display properties for date published. 1.0.0+ position Where to place the date published (left, right, navigation-top, navigation-bottom, bottom). 1.0.0+ String true left format Date format to use. 1.0.0+ String true yyyy-MM-dd timezone system for the default locale for this instance of the Java Virtual Machine. Refer to java.util.TimeZone for details. ]]> 1.8.1+ String true Etc/UTC Version Modify display properties for version published. 1.0.0+ position Where to place the version published (left, right, navigation-top, navigation-bottom, bottom). 1.0.0+ String true left Logo Power by logo on the navigation. 1.0.0+ LinkItem Body The main content decoration. 1.0.0+ head Additional content (like JavaScript) to include in the HEAD block of the generated pages. 1.0.0/1.6.0 DOM true head Additional content (like JavaScript) to include in the HEAD block of the generated pages. 1.7.0+ String true links A list of links to display in the navigation. 1.0.0+ LinkItem * true breadcrumbs A list of breadcrumbs to display in the navigation. 1.0.0+ LinkItem * true menus A list of menus to include in the navigation. 1.0.0+ Menu * true footer If present, the contained text will be used instead of the generated copyright text. 1.7.0+ String true footer If present, the contained text will be used instead of the generated copyright text. 1.1.0/1.6.0 DOM true LinkItem A link in the navigation. 1.0.0+ name The name to display for the link. 1.0.0+ String true href The href to use for the link. 1.0.0+ String true img The source location of an image. 1.0.0+ String true position Where to place the image regarding the displayed name (left or right). 1.0.1+ String true left alt The alt to use for the image. 1.0.1+ String true border The border to use for the image. 1.0.1+ String true width The width to use for the image. 1.0.1+ String true height The height to use for the image. 1.0.1+ String true target Where the new document will be displayed when the user follows a link, i.e. _blank opens the new document in a new window. 1.0.1+ String true title The title to use for the image. 1.3.0+ String true Menu A menu in the navigation. 1.0.0+ name The name to display for the menu. 1.0.0+ String true inherit top, bottom. ]]> 1.0.0+ String true inheritAsRef true means that it will be populated in the project, whereas if it is false, it is populated in the parent and then inherited. ]]> 1.0.0+ boolean ref reports, modules or parent. It will be populated at runtime with corresponding pre-defined content. ]]> 1.0.0+ String true img The source location of an menu image. 1.0.0+ String true alt 1.0.1+ The alt description for the image. String true position Where to place the image regarding the displayed name (left or right). 1.0.1+ String true left border The border to use for the menu image. 1.0.1+ String true width The width to use for the menu image. 1.0.1+ String true height The height to use for the menu image. 1.0.1+ String true title 1.3.0+ The title for the image. String true items A list of menu item. 1.0.0+ MenuItem * true MenuItem A menu item. 1.0.0+ LinkItem description A description of the menu item. This is used on any summary pages for a menu. 1.0.0+ String true collapse Whether to collapse children elements of an item menu (by default). 1.0.0+ boolean true ref A reference to a pre-defined menu item, such as a report (specified by the report goal name). Any elements explicitly given override those from the pre-defined reference. 1.0.0+ String true items A list of menu item. 1.0.0+ MenuItem * true Skin A skin artifact declaration. 1.0.0+ groupId The skin group ID. 1.0.0+ String true true artifactId The skin artifact ID. 1.0.0+ String true true version The skin version. 1.0.0+ String true