From 6d8943c45e01438960a699af41151aecfd1bc097 Mon Sep 17 00:00:00 2001 From: aheritier Date: Mon, 10 May 2004 22:25:05 +0000 Subject: [PATCH] MPXDOC-97 git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115217 13f79535-47bb-0310-9956-ffa450edef68 --- xdoc/plugin.jelly | 23 ++++++- .../plugin-resources/css/maven-classic.css | 12 +++- xdoc/src/plugin-resources/css/maven-theme.css | 14 +++- .../images/external-classic.png | Bin 0 -> 956 bytes xdoc/src/plugin-resources/images/external.png | Bin 0 -> 230 bytes .../images/newwindow-classic.png | Bin 0 -> 951 bytes .../src/plugin-resources/images/newwindow.png | Bin 0 -> 220 bytes xdoc/src/plugin-resources/navigation.jelly | 12 +--- xdoc/src/plugin-resources/site.jsl | 61 ++++++++++++------ .../templates/maven-reports.xml | 2 +- 10 files changed, 87 insertions(+), 37 deletions(-) create mode 100644 xdoc/src/plugin-resources/images/external-classic.png create mode 100644 xdoc/src/plugin-resources/images/external.png create mode 100644 xdoc/src/plugin-resources/images/newwindow-classic.png create mode 100644 xdoc/src/plugin-resources/images/newwindow.png diff --git a/xdoc/plugin.jelly b/xdoc/plugin.jelly index cb6e0c48..d84c0f15 100644 --- a/xdoc/plugin.jelly +++ b/xdoc/plugin.jelly @@ -55,6 +55,7 @@ @pluginName the name of the plugin. @plugin:report goal must exist @description text description of report @link the nav-bar link for this report + @target the target for the new page (_self, _blank, ...) --> @@ -73,6 +74,7 @@ ${report.put('pluginName', pluginName)} ${report.put('description', description)} ${report.put('link', link)} + ${report.put('target', target)} ${reports.add(report)} @@ -182,13 +184,28 @@ @name @img @state - expanded / collapsed / none + @target --> - + + ${pathTool.calculateLink(link,relativePath)} + + + newWindow + New Window + + + externalLink + External Link + + + + ${target} + ${name} - ${name} - + ${name} + diff --git a/xdoc/src/plugin-resources/css/maven-classic.css b/xdoc/src/plugin-resources/css/maven-classic.css index 77f5188b..31964ee5 100755 --- a/xdoc/src/plugin-resources/css/maven-classic.css +++ b/xdoc/src/plugin-resources/css/maven-classic.css @@ -96,6 +96,16 @@ a:link.selfref, a:visited.selfref { color: @UI_HREF_LINK_SELFREF@ !important; } +a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover { + background: url(../images/external-classic.png) right center no-repeat; + padding-right: 15px; +} + +a.newWindow:link, a.newWindow:visited, a.newWindow:active, a.newWindow:hover { + background: url(../images/newwindow-classic.png) right center no-repeat; + padding-right: 18px; +} + h2, h3 { margin-top: 1em; margin-bottom: 0; @@ -114,7 +124,7 @@ img.handle { #navcolumn div div { padding-left: 10px; } -/* $Id: maven-classic.css,v 1.1 2004/05/03 23:51:22 brett Exp $ +/* $Id: maven-classic.css,v 1.2 2004/05/10 22:25:05 aheritier Exp $ This file defines basic default formatting for HTML conforming to Tigris application style. To extend or override these rules for your instance, edit inst.css instead of this file. */ diff --git a/xdoc/src/plugin-resources/css/maven-theme.css b/xdoc/src/plugin-resources/css/maven-theme.css index 6a378fb7..f5a14d1b 100644 --- a/xdoc/src/plugin-resources/css/maven-theme.css +++ b/xdoc/src/plugin-resources/css/maven-theme.css @@ -14,6 +14,14 @@ a:visited { a:active, a:hover { color:#69c; } +a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover { + background: url(../images/external.png) right center no-repeat; + padding-right: 15px; +} +a.newWindow:link, a.newWindow:visited, a.newWindow:active, a.newWindow:hover { + background: url(../images/newwindow.png) right center no-repeat; + padding-right: 18px; +} h2 { padding: 4px 4px 4px 6px; border: 1px solid #999; @@ -45,9 +53,9 @@ p { background-color: #eee; } #navcolumn h5 { - font-size: smaller; - border-bottom: 1px solid #aaaaaa; - padding-top: 2px; + font-size: smaller; + border-bottom: 1px solid #aaaaaa; + padding-top: 2px; } table.bodyTable th { diff --git a/xdoc/src/plugin-resources/images/external-classic.png b/xdoc/src/plugin-resources/images/external-classic.png new file mode 100644 index 0000000000000000000000000000000000000000..09a54252754acec46bc3942acb761b9c59b089ed GIT binary patch literal 956 zcmeAS@N?(olHy`uVBq!ia0vp^+(699!3-oX?^2ToQtTz3zOL+7Sh++kSYB8*eF4cA zctjR6FvuMQVaCImA;CaFmUKs7M+SzC{oH>NSs56Z83KGlTp0`!8X6k@|NjqEFbYOP zV5EgWYGaoa(9g^zL4Lu&OmO`aFEEQR7bP0l+XkKO`|>) literal 0 HcmV?d00001 diff --git a/xdoc/src/plugin-resources/images/external.png b/xdoc/src/plugin-resources/images/external.png new file mode 100644 index 0000000000000000000000000000000000000000..3f999fc88b360074e41f38c3b4bc06ccb3bb7cf8 GIT binary patch literal 230 zcmeAS@N?(olHy`uVBq!ia0vp^+(699!3-oX?^2ToQY`6?zK#qG>ra@ocD)4hB}-f* zN`mv#O3D+9QW+dm@{>{(JaZG%Q-e|yQz{EjrrH1%@dWsUxR#cd{{R1fCIbVIy!atN z8e~{WkY6y6%iy53@(Yk3;OXKRQgJIOfsI*BO@UFsfhWLBc>*(#PB?Jn2*(o!76E4F z2oaVU3``tH+Kgs0GI5+@Tg}d)z%jd%F@?{8!SRZ5b1yT80-FZIMn)zc2Ca66y`pzY R*nws4CEd~2k%3`jKlh(RRt5%Uh5(-sR|bQGhK7d!|NjFOjDpb+ z7-=Dp+Snxp^fPlwkY6w`6I?&V3(O)6+MX_sAr-fh6OxjW8W_~r1ZH<~`WP7)87bX3 o@u=d4L9xWarUaoBK8}VP4AR#a+M`ate-8>dPgg&ebxsLQ0LjKR?*IS* literal 0 HcmV?d00001 diff --git a/xdoc/src/plugin-resources/images/newwindow.png b/xdoc/src/plugin-resources/images/newwindow.png new file mode 100644 index 0000000000000000000000000000000000000000..6287f72bd08a870908e7361d98c35ee0d6dcbc82 GIT binary patch literal 220 zcmeAS@N?(olHy`uVBq!ia0vp^+(699!3-oX?^2ToQY`6?zK#qG>ra@ocD)4hB}-f* zN`mv#O3D+9QW+dm@{>{(JaZG%Q-e|yQz{EjrrH1%@dWsUxR#cd&SYTt4+aeuCvSob zD+%%o1`04ZXs!GLj7%Iec?BF2%&y2ZFfeUwWbk2P5nvW+xWT~4#-PT{uyM;F);OSv44$rjF6*2U FngH~|K)3(^ literal 0 HcmV?d00001 diff --git a/xdoc/src/plugin-resources/navigation.jelly b/xdoc/src/plugin-resources/navigation.jelly index f2471998..327c9cd9 100644 --- a/xdoc/src/plugin-resources/navigation.jelly +++ b/xdoc/src/plugin-resources/navigation.jelly @@ -54,20 +54,10 @@ - + - diff --git a/xdoc/src/plugin-resources/site.jsl b/xdoc/src/plugin-resources/site.jsl index 5957abfb..ac0f1b69 100644 --- a/xdoc/src/plugin-resources/site.jsl +++ b/xdoc/src/plugin-resources/site.jsl @@ -253,6 +253,7 @@ + @@ -262,10 +263,10 @@
  • - + - +
      @@ -279,15 +280,17 @@ + + ${maven.xdoc.crumb.separator} - + @@ -446,25 +449,47 @@ - - - - - - - - + + + + + ${attr.value} + + + + + + + ${href} + externalLink + External Link + - ${attr.value} + ${href} - - - - - - + + + ${attr.value} + + newWindow + New Window + + ${target} + + + + + + + + ${attr.value} + + + + + diff --git a/xdoc/src/plugin-resources/templates/maven-reports.xml b/xdoc/src/plugin-resources/templates/maven-reports.xml index 751b75e2..ae491d0d 100644 --- a/xdoc/src/plugin-resources/templates/maven-reports.xml +++ b/xdoc/src/plugin-resources/templates/maven-reports.xml @@ -39,7 +39,7 @@ #foreach ($report in $reports) #if ($report.link && $report.link.length() != 0) - $report.name + $report.name $report.description #end