mdiggory 2004/08/17 06:29:01
Modified: commons-build commons-site.jsl
Log:
CSS Links are now relative to project. each project maven.xml will maintain a
postGoal to copy css styles from commons-build.
Revision Changes Path
1.11 +10 -26 jakarta-commons/commons-build/commons-site.jsl
Index: commons-site.jsl
===================================================================
RCS file: /home/cvs/jakarta-commons/commons-build/commons-site.jsl,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- commons-site.jsl 1 Jun 2004 20:48:49 -0000 1.10
+++ commons-site.jsl 17 Aug 2004 13:29:01 -0000 1.11
@@ -57,33 +57,17 @@
<title>${pom.name} - ${docTitle}</title>
</x:if>
- <style type="text/css"><![CDATA[
- @import url("http://jakarta.apache.org/commons/style/tigris.css");
- @import url("http://jakarta.apache.org/commons/style/maven.css");
- @import url("http://jakarta.apache.org/commons/style/project.css");
- ]]></style>
+ <style type="text/css" media="all">
+ <![CDATA[ @import url("${relativePath}/style/tigris.css");]]>
+ <[EMAIL PROTECTED] url("${relativePath}/style/maven.css");]]>
+ <![CDATA[ @import url("${relativePath}/style/project.css");]]>
+ </style>
-
- <!--
- <util:file var="projectCssFile" name="${maven.docs.src}/style/project.css"/>
- <j:if test="${projectCssFile.exists()}">
- <style type="text/css"><![CDATA[
- @import url("${relativePath}/style/project.css");
- ]]></style>
- </j:if>
- -->
-
- <!-- FIXME: once someone works out how to stop this breaking
- <x:element name="script"><x:attribute
name="type">text/javascript</x:attribute>
- if (document.layers) {
- document.writeln(''+
- '<link rel="stylesheet" type="text/css"
href="${relativePath}/style/ns4_only.css" media="screen" /><link rel="stylesheet"
type="text/css" href="${relativePath}/style/maven_ns4_only.css" media="screen"/>');
- }
- </x:element>
- -->
- <link rel="stylesheet" type="text/css"
href="http://jakarta.apache.org/commons/style/print.css" media="print"/>
- <meta http-equiv="Content-Type" content="text/html;
charset=${outputencoding}"></meta>
- <x:forEach var="author" select="./properties/author">
+ <link rel="stylesheet" type="text/css"
href="${relativePath}/style/print.css" media="print"/>
+ <meta http-equiv="Content-Type" content="text/html;
charset=${outputencoding}"/>
+
+
+ <x:forEach var="author" select="./properties/author">
<meta name="author" content="${author.text}"/>
<meta name="email" content="${author.attribute('email').value}"/>
</x:forEach>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]