- Revision
- 1265
- Author
- rfscholte
- Date
- 2011-06-18 13:03:49 -0500 (Sat, 18 Jun 2011)
Log Message
Refactor site-generation. No need to use xsite-m-p, because m-site-p + doxia can do the same trick. No need to hack around in the pom anymore.
Modified Paths
Added Paths
- trunk/qdox/src/site/resources/css/
- trunk/qdox/src/site/resources/css/style.css
- trunk/qdox/src/site/resources/images/
- trunk/qdox/src/site/resources/images/blue2white.jpg
- trunk/qdox/src/site/resources/images/breadcrumbs.jpg
- trunk/qdox/src/site/resources/images/logo.gif
- trunk/qdox/src/site/resources/images/tekton_logo.png
- trunk/qdox/src/site/resources/images/white2blue.jpg
- trunk/qdox/src/site/site.xml
- trunk/qdox/src/site/templates/site.vm
Removed Paths
Diff
Modified: trunk/qdox/pom.xml (1264 => 1265)
--- trunk/qdox/pom.xml 2011-06-18 09:51:37 UTC (rev 1264) +++ trunk/qdox/pom.xml 2011-06-18 18:03:49 UTC (rev 1265) @@ -348,84 +348,11 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <configuration> - <templateFile>${basedir}/src/site/templates/site-template.vm</templateFile> + <templateFile>${basedir}/src/site/templates/site.vm</templateFile> </configuration> </plugin> <plugin> - <groupId>org.codehaus.xsite</groupId> - <artifactId>xsite-maven-plugin</artifactId> - <version>1.2</version> - <configuration> - <sitemapPath>content/website.xml</sitemapPath> - <skinPath>templates/skin.html</skinPath> - <sourceDirectoryPath>${xsite.sourceDirectoryPath}</sourceDirectoryPath> - <outputDirectoryPath>${project.build.directory}/site</outputDirectoryPath> - <resourcePaths>resources</resourcePaths> - </configuration> - <executions> - <execution> - <phase>site</phase> - <goals> - <goal>run</goal> - </goals> - </execution> - </executions> - </plugin> - <plugin> <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-resources-plugin</artifactId> - <version>2.4.3</version> - <executions> - <execution> - <id>pre-copy-resources</id> - <phase>pre-site</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>${xsite.sourceDirectoryPath}</outputDirectory> - <resources> - <resource> - <directory>src/site</directory> - <excludes> - <exclude>**/download.html</exclude> - <exclude>**/skin.html</exclude> - </excludes> - </resource> - <resource> - <directory>src/site</directory> - <includes> - <include>**/download.html</include> - <include>**/skin.html</include> - </includes> - <filtering>true</filtering> - </resource> - </resources> - </configuration> - </execution> - <execution> - <id>post-copy-resources</id> - <phase>site</phase> - <goals> - <goal>copy-resources</goal> - </goals> - <configuration> - <outputDirectory>${project.build.directory}/site</outputDirectory> - <resources> - <resource> - <directory>${xsite.sourceDirectoryPath}/content</directory> - <includes> - <include>images/*.*</include> - <include>apidocs/**/*.*</include> - </includes> - </resource> - </resources> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.1</version> <configuration> @@ -565,7 +492,6 @@ <!-- Reports --> <reporting> - <outputDirectory>${xsite.sourceDirectoryPath}/content</outputDirectory> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId>
Deleted: trunk/qdox/src/site/resources/blue2white.jpg
(Binary files differ)
Deleted: trunk/qdox/src/site/resources/breadcrumbs.jpg
(Binary files differ)
Added: trunk/qdox/src/site/resources/css/style.css (0 => 1265)
--- trunk/qdox/src/site/resources/css/style.css (rev 0) +++ trunk/qdox/src/site/resources/css/style.css 2011-06-18 18:03:49 UTC (rev 1265) @@ -0,0 +1,435 @@ +/*--------------------------------------------------------------------------- + * Two- and three-column layout + */ + +#banner { + margin 5px; +} + +#left { + position: absolute; + z-index: 2; + left: 8px; + width: 184px; + top: 125px; + bottom: 8px; + margin: 0px; + padding: 0px; +} + +#right { + position: absolute; + z-index: 1; + right: 8px; + width: 184px; + top: 125px; + bottom: 8px; + margin: 0px; + padding: 0px; +} + +.Content3Column { + position: absolute; + top: 125px; + bottom: 8px; + left: 208px; + right: 216px; +} + +.Content2Column { + position: absolute; + top: 125px; + bottom: 8px; + left: 208px; + right: 16px; +} + +#center { + z-index: 3; + margin: 0px; + border: none; + padding-bottom: 8px; +} + +/*--------------------------------------------------------------------------- + * Bradcrumbs + */ +.xleft, #bannerLeft img { + float:left; +} +.xright, #bannerRight { + float:right; +} +div.clear { + clear:both; + visibility:hidden; +} +#breadcrumbs { + background-image:url(../images/breadcrumbs.jpg); + height:13px; + padding:5px 10px 14px 20px; +} +#breadcrumbs { + font-size:x-small; + margin:0; +} + +/*--------------------------------------------------------------------------- + * Default element styles + */ + +body { + padding: 0px; + margin: 0px; + border: 0px; + + font-family: helvetica, arial, sans-serif; + font-size: 12px; + + background-color: white; + color: black; +} + +h1, h2, h3, h4, h5, h6 { + margin: 0px; + border: 0px; + padding: 0px; + font-weight: normal; +} + +a:link { color: #9cf; } +a:active { color: red; } +a:hover { color: red; } +a:visited { color: black; } + +iframe { + width:100%; + height: 800px; + border: 0px; +} + +img { + border: 0px; + padding: 0px; + margin: 0px; +} + +p { + border: 0px; + padding: 0px; + margin: 0px; + margin-bottom: 10px; +} + +blockquote { + margin-bottom: 10px; +} + +table { + width:100%; + padding-bottom: 6px; +} +td { + font-size: 12px; + padding: 2px; +} + +th { + font-size: 12px; + font-weight: bold; + white-space: nowrap; + padding: 2px; +} + +th.Row { + text-align: left; + vertical-align: top; +} + +ul, ol { + border: 0px; + padding: 0px; + margin-top: 0px; + margin-bottom: 12px; + margin-left: 20px; +} +tr.a { + background-color: #7EB2E4; +} +tr.b { + background-color: #BDD7F0; +} + + +/*--------------------------------------------------------------------------- + * Page banner + */ + +#banner { + margin: 5px; + border: 0px; + padding: 0px; + background-color: white; + color: #06c; + vertical-align: bottom; +} + +#banner a { text-decoration: none; } +#banner a:visited { color: #9cf; } +#banner a:hover { color: red; } +#banner a:active { color: red; } + +#versions { + position: absolute; + width: auto; + right: 0px; + top: 0px; + margin: 8px; + font-weight: normal; +} + +/*--------------------------------------------------------------------------- + * Page content + */ + +#content { + margin: 0px; + background-color: white; + color: black; + height: 100%; +} + +#content h1 { + width: 100%; + font-size: 18px; + background-color: #06c; + color: white; + padding: 2px; + padding-left: 6px; + margin-top: 24px; + margin-bottom: 12px; +} + +#content .FirstChild { /* IE doesn't understand first-child pseudoelement */ + margin-top: 0px; +} + +#content a { text-decoration: underline; } +#content a:link { color: #06c; } +#content a:visited { color: #06c; } +#content a:active { color: red; } +#content a:hover { color: red; } + +#content h2 { + margin-top: 24px; + border-top: 1px solid #99CCFF; + margin-bottom: 16px; + font-size: 15px; + font-weight: bold; + background: transparent url(../images/blue2white.jpg) repeat-y; + padding: 2px; +} +#content h3 { + padding-left: 13px; + border-bottom: 1px solid #99CCFF; +} + +#content li { + margin-bottom: 6px; +} + +#content th { + background-color: #3E8BD9; +} + +.Source pre { + padding: 4px; + font-family: courier new, monospace; + font-size: 11px; + border: 1px dashed #06c; + background-color: #eeeeee; + color: black; +} + +.Source:before { + margin: 0px; + padding: 0px; + border: 0px; + font-size: inherit; + line-spacing: 100%; +} + +.highlight { + background-color: #cff; + border: 1px dotted #06c; + padding: 5px; +} + +/* The following are for images, but can also apply to div's containing images. */ + +#content .Float { + float: right; + margin-left: 8px; + margin-right: 0px; + margin-top: 8px; + margin-bottom: 8px; +} + +#content .Diagram { + display: block; + margin-left: auto; + margin-right: auto; + margin-top: 8px; + margin-bottom: 8px; +} + + +#content .Inline { + display: inline; +} + +ul.referenceSummary { + list-style: none; + font-family: monospace; + display: inline-table; +} + +.RuleOfThumb { + font-weight: bold; +} + +/*--------------------------------------------------------------------------- + * Side panels + */ + +.SidePanel { + background-color: white; + padding: 0px; + font-size: 12px; +} + +.SidePanel h5 { /* menugroup-headers */ + margin: 0px; + border: 0px; + padding: 4px; + color: #06c; + font-size: 12px; + font-weight: bold; + background: url(../images/white2blue.jpg); +} + + +.SidePanel a { text-decoration: none; } +.SidePanel a:link { color: #06c; } +.SidePanel a:visited { color: #06c; } +.SidePanel a:active { color: red; } +.SidePanel a:hover { color: red; } + +/*--------------------------------------------------------------------------- + * Menus + */ + +.MenuGroup { + border-top: 2px solid #06c; + + margin-bottom: 8px; + background: white; + + color: #06c; +} + +.MenuGroup ul { + margin: 0px; + padding-left: 20px; + list-style-type: none; +} + +.MenuGroup ul ul { + padding-left: 0px; +} + +.MenuGroup li { + padding: 2px; + list-style-position: outside; +} + +.MenuGroup .currentLink { + color: #06c; +} + +.MenuGroup li.collapsed { + list-style-image: url(../images/arrow_blue_collapsed.png); +} + +.MenuGroup li.expanded { + list-style-image: url(../images/arrow_blue_expanded.png); +} +.MenuGroup li.expanded ul { + margin-left: 5px; +} +.MenuGroup li.none { + list-style-image: none; +} + +/*--------------------------------------------------------------------------- + * News panel + */ + +.NewsGroup { + border-left: 1px solid #06c; + border-top: 1px solid #06c; + border-bottom: 1px solid white; /* IE workaround */ + margin-bottom: 8px; + + color: #06c; +} + +.NewsItem { + margin: 4px; +} + +.NewsDate { + font-weight: bold; + margin: 0px; + padding: 0px; +} + +.NewsText { + padding: 0px; + margin: 0px; + margin-bottom: 8px; +} + +.NewsText a { text-decoration: underline; } +.NewsText a:link { color: #06c; } +.NewsText a:visited { color: #06c; } +.NewsText a:active { color: red; } +.NewsText a:hover { color: red; } + +.NewsMore { + font-size: smaller; + margin: 4px; + margin-top: 8px; + text-align: left; +} + +.NewsGroup td { + font-size: 12px; +} + +/*--------------------------------------------------------------------------- + * Document meta-information + */ + +.Meta { + margin-top: 64px; + font-size: smaller; + color: #C0C0C0; + text-align: right; +} + +.Meta a { text-decoration: underline; } +.Meta a:link { color: #C0C0C0; } +.Meta a:visited { color: #C0C0C0; } +.Meta a:active { color: red; } +.Meta a:hover { color: red; } \ No newline at end of file
Copied: trunk/qdox/src/site/resources/images/blue2white.jpg (from rev 1258, trunk/qdox/src/site/resources/blue2white.jpg)
(Binary files differ)
Copied: trunk/qdox/src/site/resources/images/breadcrumbs.jpg (from rev 1258, trunk/qdox/src/site/resources/breadcrumbs.jpg)
(Binary files differ)
Copied: trunk/qdox/src/site/resources/images/logo.gif (from rev 1258, trunk/qdox/src/site/resources/logo.gif)
(Binary files differ)
Copied: trunk/qdox/src/site/resources/images/tekton_logo.png (from rev 1258, trunk/qdox/src/site/resources/tekton_logo.png)
(Binary files differ)
Copied: trunk/qdox/src/site/resources/images/white2blue.jpg (from rev 1258, trunk/qdox/src/site/resources/white2blue.jpg)
(Binary files differ)
Deleted: trunk/qdox/src/site/resources/logo.gif
(Binary files differ)
Deleted: trunk/qdox/src/site/resources/style.css (1264 => 1265)
--- trunk/qdox/src/site/resources/style.css 2011-06-18 09:51:37 UTC (rev 1264) +++ trunk/qdox/src/site/resources/style.css 2011-06-18 18:03:49 UTC (rev 1265) @@ -1,417 +0,0 @@ -/*--------------------------------------------------------------------------- - * Two- and three-column layout - */ - -#banner { - margin 5px; -} - -#left { - position: absolute; - z-index: 2; - left: 8px; - width: 184px; - top: 125px; - bottom: 8px; - margin: 0px; - padding: 0px; -} - -#right { - position: absolute; - z-index: 1; - right: 8px; - width: 184px; - top: 125px; - bottom: 8px; - margin: 0px; - padding: 0px; -} - -.Content3Column { - position: absolute; - top: 125px; - bottom: 8px; - left: 208px; - right: 216px; -} - -.Content2Column { - position: absolute; - top: 125px; - bottom: 8px; - left: 208px; - right: 16px; -} - -#center { - z-index: 3; - margin: 0px; - border: none; - padding-bottom: 8px; -} - -/*--------------------------------------------------------------------------- - * Bradcrumbs - */ -.xleft, #bannerLeft img { - float:left; -} -.xright, #bannerRight { - float:right; -} -div.clear { - clear:both; - visibility:hidden; -} -#breadcrumbs { - background-image:url(breadcrumbs.jpg); - height:13px; - padding:5px 10px 14px 20px; -} -#breadcrumbs { - font-size:x-small; - margin:0; -} - -/*--------------------------------------------------------------------------- - * Default element styles - */ - -body { - padding: 0px; - margin: 0px; - border: 0px; - - font-family: helvetica, arial, sans-serif; - font-size: 12px; - - background-color: white; - color: black; -} - -h1, h2, h3, h4, h5, h6 { - margin: 0px; - border: 0px; - padding: 0px; - font-weight: normal; -} - -a:link { color: #9cf; } -a:active { color: red; } -a:hover { color: red; } -a:visited { color: black; } - -iframe { - width:100%; - height: 800px; - border: 0px; -} - -img { - border: 0px; - padding: 0px; - margin: 0px; -} - -p { - border: 0px; - padding: 0px; - margin: 0px; - margin-bottom: 10px; -} - -blockquote { - margin-bottom: 10px; -} - -table { - width:100%; - padding-bottom: 6px; -} -td { - font-size: 12px; - padding: 2px; -} - -th { - font-size: 12px; - font-weight: bold; - white-space: nowrap; - padding: 2px; -} - -th.Row { - text-align: left; - vertical-align: top; -} - -ul, ol { - border: 0px; - padding: 0px; - margin-top: 0px; - margin-bottom: 12px; - margin-left: 20px; -} -tr.a { - background-color: #7EB2E4; -} -tr.b { - background-color: #BDD7F0; -} - - -/*--------------------------------------------------------------------------- - * Page banner - */ - -#banner { - margin: 5px; - border: 0px; - padding: 0px; - background-color: white; - color: #06c; - vertical-align: bottom; -} - -#banner a { text-decoration: none; } -#banner a:visited { color: #9cf; } -#banner a:hover { color: red; } -#banner a:active { color: red; } - -#versions { - position: absolute; - width: auto; - right: 0px; - top: 0px; - margin: 8px; - font-weight: normal; -} - -/*--------------------------------------------------------------------------- - * Page content - */ - -#content { - margin: 0px; - background-color: white; - color: black; - height: 100%; -} - -#content h1 { - width: 100%; - font-size: 18px; - background-color: #06c; - color: white; - padding: 2px; - padding-left: 6px; - margin-top: 24px; - margin-bottom: 12px; -} - -#content .FirstChild { /* IE doesn't understand first-child pseudoelement */ - margin-top: 0px; -} - -#content a { text-decoration: underline; } -#content a:link { color: #06c; } -#content a:visited { color: #06c; } -#content a:active { color: red; } -#content a:hover { color: red; } - -#content h2 { - margin-top: 24px; - border-top: 1px solid #99CCFF; - margin-bottom: 16px; - font-size: 15px; - font-weight: bold; - background: transparent url(blue2white.jpg) repeat-y; - padding: 2px; -} -#content h3 { - padding-left: 13px; - border-bottom: 1px solid #99CCFF; -} - -#content li { - margin-bottom: 6px; -} - -#content th { - background-color: #3E8BD9; -} - -.Source pre { - padding: 4px; - font-family: courier new, monospace; - font-size: 11px; - border: 1px dashed #06c; - background-color: #eeeeee; - color: black; -} - -.Source:before { - margin: 0px; - padding: 0px; - border: 0px; - font-size: inherit; - line-spacing: 100%; -} - -.highlight { - background-color: #cff; - border: 1px dotted #06c; - padding: 5px; -} - -/* The following are for images, but can also apply to div's containing images. */ - -#content .Float { - float: right; - margin-left: 8px; - margin-right: 0px; - margin-top: 8px; - margin-bottom: 8px; -} - -#content .Diagram { - display: block; - margin-left: auto; - margin-right: auto; - margin-top: 8px; - margin-bottom: 8px; -} - - -#content .Inline { - display: inline; -} - -ul.referenceSummary { - list-style: none; - font-family: monospace; - display: inline-table; -} - -.RuleOfThumb { - font-weight: bold; -} - -/*--------------------------------------------------------------------------- - * Side panels - */ - -.SidePanel { - background-color: white; - padding: 0px; - font-size: 11px; -} - -.SidePanel h1 { - margin: 0px; - border: 0px; - padding: 4px; - color: #06c; - font-size: 12px; - font-weight: bold; - background: url(white2blue.jpg); -} - - -.SidePanel a { text-decoration: none; } -.SidePanel a:link { color: #06c; } -.SidePanel a:visited { color: #06c; } -.SidePanel a:active { color: red; } -.SidePanel a:hover { color: red; } - -/*--------------------------------------------------------------------------- - * Menus - */ - -.MenuGroup { - border-top: 2px solid #06c; - - margin-bottom: 8px; - background: white; - - color: #06c; -} - -.MenuGroup ul { - margin: 0px; - padding-left: 4px; - list-style-type: none; -} - -.MenuGroup li { - padding: 2px; -} - -.MenuGroup .currentLink { - color: #06c; -} - - -/*--------------------------------------------------------------------------- - * News panel - */ - -.NewsGroup { - border-left: 1px solid #06c; - border-top: 1px solid #06c; - border-bottom: 1px solid white; /* IE workaround */ - margin-bottom: 8px; - - color: #06c; -} - -.NewsItem { - margin: 4px; -} - -.NewsDate { - font-weight: bold; - margin: 0px; - padding: 0px; -} - -.NewsText { - padding: 0px; - margin: 0px; - margin-bottom: 8px; -} - -.NewsText a { text-decoration: underline; } -.NewsText a:link { color: #06c; } -.NewsText a:visited { color: #06c; } -.NewsText a:active { color: red; } -.NewsText a:hover { color: red; } - -.NewsMore { - font-size: smaller; - margin: 4px; - margin-top: 8px; - text-align: left; -} - -.NewsGroup td { - font-size: 12px; -} - -/*--------------------------------------------------------------------------- - * Document meta-information - */ - -.Meta { - margin-top: 64px; - font-size: smaller; - color: #C0C0C0; - text-align: right; -} - -.Meta a { text-decoration: underline; } -.Meta a:link { color: #C0C0C0; } -.Meta a:visited { color: #C0C0C0; } -.Meta a:active { color: red; } -.Meta a:hover { color: red; } \ No newline at end of file
Deleted: trunk/qdox/src/site/resources/tekton_logo.png
(Binary files differ)
Deleted: trunk/qdox/src/site/resources/white2blue.jpg
(Binary files differ)
Added: trunk/qdox/src/site/site.xml (0 => 1265)
--- trunk/qdox/src/site/site.xml (rev 0) +++ trunk/qdox/src/site/site.xml 2011-06-18 18:03:49 UTC (rev 1265) @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<project xmlns="http://maven.apache.org/DECORATION/1.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd" + name="QDox"> + <bannerLeft> + <name>Codehaus QDox</name> + <src>./images/tekton_logo.png</src> + <href>http://qdox.codehaus.org/index.html</href> + </bannerLeft> + <publishDate position="right"/> + <version position="right"/> + <body> + <menu name="Overview"> + <item name="Introduction" href="" + <item name="Frequently asked questions" href="" + </menu> + <menu name="Evaluating QDox"> + <item name="Download" href="" + <item name="Upgrading" href="" + <item name="Who is using QDox" href="" + </menu> + <menu name="Using QDox"> + <item name="Usage" href="" + <item name="Model" href="" + </menu> + <menu ref="reports"/> + </body> +</project>
Added: trunk/qdox/src/site/templates/site.vm (0 => 1265)
--- trunk/qdox/src/site/templates/site.vm (rev 0) +++ trunk/qdox/src/site/templates/site.vm 2011-06-18 18:03:49 UTC (rev 1265) @@ -0,0 +1,369 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +#macro ( link $href $name ) + #if ( ( $href.toLowerCase().startsWith("http") || $href.toLowerCase().startsWith("https") ) ) + <a href="" class="externalLink">$name</a> + #else + <a href="" + #end +#end + +#macro ( banner $banner $id ) + <!-- banner $banner --> + #if ( $banner ) + #if( $banner.href ) + <a href="" id="$id" #if( $banner.alt ) title="$banner.alt" #end > + #else + <div id="$id"> + #end + + #if( $banner.src ) + #set ( $src = "" ) + #if ( ! ( $src.toLowerCase().startsWith("http") || $src.toLowerCase().startsWith("https") ) ) + #set ( $src = "" $src, $relativePath ) ) + #set ( $src = "" "\\", "/" ) ) + #end + #if ( $banner.alt ) + #set ( $alt = $banner.alt ) + #else + #set ( $alt = $banner.name ) + #end + <img src="" alt="${alt}" /> + #else + $banner.name + #end + + #if( $banner.href ) + </a> + #else + </div> + #end + #end +#end + +#macro ( links $links ) + #set ( $counter = 0 ) + #foreach( $item in $links ) + #set ( $counter = $counter + 1 ) + #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) ) + #set ( $currentItemHref = $currentItemHref.replaceAll( "\\", "/" ) ) + #link( $currentItemHref $item.name ) + #if ( $links.size() > $counter ) + | + #end + #end +#end + +#macro ( breadcrumbs $breadcrumbs ) + #set ( $counter = 0 ) + #foreach( $item in $breadcrumbs ) + #set ( $counter = $counter + 1 ) + #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) ) + #set ( $currentItemHref = $currentItemHref.replaceAll( "\\", "/" ) ) + + #if ( $currentItemHref == $alignedFileName || $currentItemHref == "" ) + $item.name + #else + #link( $currentItemHref $item.name ) + #end + #if ( $breadcrumbs.size() > $counter ) + > + #end + #end +#end + +#macro ( displayTree $display $item ) + #if ( $item && $item.items && $item.items.size() > 0 ) + #foreach( $subitem in $item.items ) + #set ( $subitemHref = $PathTool.calculateLink( $subitem.href, $relativePath ) ) + #set ( $subitemHref = $subitemHref.replaceAll( "\\", "/" ) ) + #set ( $display = false ) + #if ( $alignedFileName == $subitemHref ) + #set ( $display = true ) + #end + + #displayTree( $display $subitem ) + #end + #end +#end + +#macro ( menuItem $item ) + #set ( $collapse = "none" ) + #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) ) + #set ( $currentItemHref = $currentItemHref.replaceAll( "\\", "/" ) ) + + #if ( $item && $item.items && $item.items.size() > 0 ) + #if ( $item.collapse == false ) + #set ( $collapse = "expanded" ) + #else + ## By default collapsed + #set ( $collapse = "collapsed" ) + #end + + #set ( $display = false ) + #displayTree( $display $item ) + + #if ( $alignedFileName == $currentItemHref || $display ) + #set ( $collapse = "expanded" ) + #end + #end + <li class="$collapse"> + #if ( $item.img ) + #if ( ! ( $item.img.toLowerCase().startsWith("http") || $item.img.toLowerCase().startsWith("https") ) ) + #set ( $src = "" $item.img, $relativePath ) ) + #set ( $src = "" "\\", "/" ) ) + <img src="" + #else + <img src="" align="absbottom" style="border-width: 0"/> + #end + #end + #if ( $alignedFileName == $currentItemHref ) + <strong>$item.name</strong> + #else + #link( $currentItemHref $item.name ) + #end + #if ( $item && $item.items && $item.items.size() > 0 ) + #if ( $collapse == "expanded" ) + <ul> + #foreach( $subitem in $item.items ) + #menuItem( $subitem ) + #end + </ul> + #end + #end + </li> +#end + +#macro ( mainMenu $menus ) + #foreach( $menu in $menus ) + <div class="MenuGroup"> + #if ( $menu.name ) + <h5>$menu.name</h5> + #end + #if ( $menu.items && $menu.items.size() > 0 ) + <ul> + #foreach( $item in $menu.items ) + #menuItem( $item ) + #end + </ul> + #end + </div> + #end +#end + +#macro ( copyright ) + #if ( $project ) + #set ( $currentYear = ${currentDate.year} + 1900 ) + + #if ( ${project.inceptionYear} && ( ${project.inceptionYear} != ${currentYear.toString()} ) ) + ${project.inceptionYear}-${currentYear} + #else + ${currentYear} + #end + + #if ( ${project.organization} && ${project.organization.name} ) + ${project.organization.name} + #end + #end +#end + +#macro ( publishDate $position $publishDate $version ) + #if ( $publishDate && $publishDate.format ) + #set ( $format = $publishDate.format ) + #else + #set ( $format = "yyyy-MM-dd" ) + #end + + $dateFormat.applyPattern( $format ) + + #set ( $dateToday = $dateFormat.format( $currentDate ) ) + + #if ( $publishDate && $publishDate.position ) + #set ( $datePosition = $publishDate.position ) + #else + #set ( $datePosition = "left" ) + #end + + #if ( $version ) + #if ( $version.position ) + #set ( $versionPosition = $version.position ) + #else + #set ( $versionPosition = "left" ) + #end + #else + #set ( $version = "" ) + #set ( $versionPosition = "left" ) + #end + + #set ( $breadcrumbs = $decoration.body.breadcrumbs ) + #set ( $links = $decoration.body.links ) + + #if ( $datePosition.equalsIgnoreCase( "right" ) && $links && $links.size() > 0 ) + #set ( $prefix = " |" ) + #else + #set ( $prefix = "" ) + #end + + #if ( $datePosition.equalsIgnoreCase( $position ) ) + #if ( ( $datePosition.equalsIgnoreCase( "right" ) ) || ( $datePosition.equalsIgnoreCase( "bottom" ) ) ) + $prefix $i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday + #if ( $versionPosition.equalsIgnoreCase( $position ) ) + | $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} + #end + #elseif ( ( $datePosition.equalsIgnoreCase( "navigation-bottom" ) ) || ( $datePosition.equalsIgnoreCase( "navigation-top" ) ) ) + <div id="lastPublished"> + $i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday + #if ( $versionPosition.equalsIgnoreCase( $position ) ) + | $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} + #end + </div> + #elseif ( $datePosition.equalsIgnoreCase("left") ) + <div class="xleft"> + $i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday + #if ( $versionPosition.equalsIgnoreCase( $position ) ) + | $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} + #end + #if ( $breadcrumbs && $breadcrumbs.size() > 0 ) + | #breadcrumbs( $breadcrumbs ) + #end + </div> + #end + #elseif ( $versionPosition.equalsIgnoreCase( $position ) ) + #if ( ( $versionPosition.equalsIgnoreCase( "right" ) ) || ( $versionPosition.equalsIgnoreCase( "bottom" ) ) ) + $prefix $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} + #elseif ( ( $versionPosition.equalsIgnoreCase( "navigation-bottom" ) ) || ( $versionPosition.equalsIgnoreCase( "navigation-top" ) ) ) + <div id="lastPublished"> + $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} + </div> + #elseif ( $versionPosition.equalsIgnoreCase("left") ) + <div class="xleft"> + $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} + #if ( $breadcrumbs && $breadcrumbs.size() > 0 ) + | #breadcrumbs( $breadcrumbs ) + #end + </div> + #end + #elseif ( $position.equalsIgnoreCase( "left" ) ) + #if ( $breadcrumbs && $breadcrumbs.size() > 0 ) + <div class="xleft"> + #breadcrumbs( $breadcrumbs ) + </div> + #end + #end +#end + +#macro ( poweredByLogo $poweredBy ) + #if( $poweredBy ) + #foreach ($item in $poweredBy) + #if( $item.href ) + #set ( $href = "" $item.href, $relativePath ) ) + #set ( $href = "" "\\", "/" ) ) + #else + #set ( $href="" ) + #end + + #if( $item.name ) + #set ( $name = $item.name ) + #else + #set ( $name = $i18n.getString( "site-renderer", $locale, "template.builtby" ) ) + #set ( $name = "${name} Maven" ) + #end + + #if( $item.img ) + #set ( $img = $item.img ) + #else + #set ( $img = "images/logos/maven-feather.png" ) + #end + + <a href="" title="$name" class="poweredBy"> + #set ( $img = $PathTool.calculateLink( $img, $relativePath ) ) + #set ( $img = $img.replaceAll( "\\", "/" ) ) + <img class="poweredBy" + alt="$name" + src="" + width="90" + height="30" + /> + </a> + #end + #if( $poweredBy.isEmpty() ) + <a href="" title="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" class="poweredBy"> + <img class="poweredBy" + alt="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" + src="" + width="90" + height="30" + border="1" /> + </a> + #end + #else + <a href="" title="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" class="poweredBy"> + <img class="poweredBy" + alt="$i18n.getString( "site-renderer", $locale, "template.builtby" ) Maven" + src="" + width="90" + height="30" + border="1" + /> + </a> + #end +#end + +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>$title</title> + <style type="text/css" media="all"> + @import url("$relativePath/css/style.css"); + </style> + #foreach( $author in $authors ) + <meta name="author" content="$author" /> + #end + <meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" /> + #if ( $decoration.body.head ) + #foreach( $item in $decoration.body.head.getChildren() ) + ## Workaround for DOXIA-150 due to a non-desired behaviour in p-u + ## @see org.codehaus.plexus.util.xml.Xpp3Dom#toString() + ## @see org.codehaus.plexus.util.xml.Xpp3Dom#toUnescapedString() + #set ( $documentHeader = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" ) + #set ( $documentHeader = $documentHeader.replaceAll( "\\", "" ) ) + #if ( $item.name == "script" ) + $StringUtils.replace( $item.toUnescapedString(), $documentHeader, "" ) + #else + $StringUtils.replace( $item.toString(), $documentHeader, "" ) + #end + #end + #end + </head> + <body> + <div id="breadcrumbs"> + #publishDate( "left" $decoration.publishDate $decoration.version ) + <div class="xright">#links( $decoration.body.links )#publishDate( "right" $decoration.publishDate $decoration.version )</div> + <div class="clear"> + <hr/> + </div> + </div> + <div id="banner"> + #banner( $decoration.bannerLeft "bannerLeft" ) + #banner( $decoration.bannerRight "bannerRight" ) + <div class="clear"> + <hr/> + </div> + </div> + + <div id="center" class="Content2Column"> <!-- Content3Column for index --> + <div id="content"> + <h1 class="FirstChild">${title}</h1> + ${bodyContent}<br/> + </div> + </div> + + <div class="SidePanel" id="left"> + #mainMenu( $decoration.body.menus ) + <div style="padding: 25px 57px 5px;"> + <script type="text/_javascript_" src="" + </div> + </div> + + </body> +</html> +
To unsubscribe from this list please visit:
