site Site This is a reference for the site 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 SiteModel <site> element is the root of the site decoration descriptor. ]]> 1.0.0+ name The full name of the project site. 1.0.0+ String true merge) or not (override). ]]> combineSelf 1.6.0+ String merge requireParent 2.0.0+ boolean false 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. 1.0.0+ Body true custom $site.custom variable as DOM content. Example: $site.custom.getChild( 'customElement' ).getValue() ]]> 1.0.0+ DOM true lastModified Timestamp of the last modification of this site 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; } ]]> 1.7.0+ /** * @since 1.7 * @see SiteUtils#isLink */ public boolean isLink( String href ) { return SiteUtils.isLink( href ); } 1.8.0+ /** * @since 1.8 * @see SiteUtils#getCustomChild */ public Object getCustomChild( String path ) { return SiteUtils.getCustomChild( (org.codehaus.plexus.util.xml.Xpp3Dom) custom, path ); } /** * @since 1.8 * @see SiteUtils#getCustomValue */ public String getCustomValue( String path ) { return SiteUtils.getCustomValue( (org.codehaus.plexus.util.xml.Xpp3Dom) custom, path ); } /** * @since 1.8 * @see SiteUtils#getCustomValue */ public String getCustomValue( String path, String defaultValue ) { return SiteUtils.getCustomValue( (org.codehaus.plexus.util.xml.Xpp3Dom) custom, path, defaultValue ); } Banner Banner logo on the masthead of the site. 1.0.0+ LinkItem 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. 1.0.0+ 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 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 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 image 2.0.0+ The image for the link. Image 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 site, 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 image 2.0.0+ The image for the menu. Image true items A list of menu item. 1.0.0+ MenuItem * true MenuItem A menu item. 1.0.0+ LinkItem 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 Image An image. 2.0.0+ src The source location. 2.0.0+ String true true position Where to place the image relative to the displayed name (left or right). 2.0.0+ String true left alt The alternative text to use. 2.0.0+ String true width The width to use. 2.0.0+ String true height The height to use. 2.0.0+ String true style The style to use. 2.0.0+ String 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