]> source.dussan.org Git - aspectj.git/commitdiff
.css stylesheet parameter for xml-html, used in faq. Did not retrofit devguide ...
authorwisberg <wisberg>
Thu, 5 May 2005 21:52:00 +0000 (21:52 +0000)
committerwisberg <wisberg>
Thu, 5 May 2005 21:52:00 +0000 (21:52 +0000)
docs/build.xml
docs/dist/doc/aspectj-faq.css [new file with mode: 0644]
docs/faq/faq.xml

index 9dff6c8366f83508046fbae70121fd6478299ede..069484884948b112521224476defceeb69a9d020 100644 (file)
@@ -78,8 +78,9 @@
         />
         <!-- default value for xml-html copying (copy all graphics) -->
         <property name="xml-html-copy" value="*.gif,*.png" />
+        <property name="xml-html-stylesheet" value="aspectj-docs.css" />
         <property name="binary.pattern"
-                  value="**/*.gif,**/*.png,**/*.doc,**/*.pdf,**/*.jpg,**/*.JPG"
+                  value="**/*.gif,**/*.png,**/*.doc,**/*.pdf,**/*.jpg,**/*.JPG,**/*.css"
         />
         <uptodate property="local.dist.uptodate"
                   targetfile="${docs.dist.dir}/doc/faq.html"
             <param name="xml-target-file"
                    value="${docs.dist.dir}/doc/faq.html"
             />
+           <param name="xml-html-stylesheet" value="aspectj-faq.css" />
         </antcall>
     </target>
 
      xsl-source-file # xsl transform to apply (use chunk.xsl.source by default) 
      xml-target-dir  # target directory for output (used as xsl param base.dir)
      xml-target-file # full path to output file in xml-source-dir, ignored when chunking
-     xml-html-copy   # copy files to target (defaults to *.gif,*.png"
+     xml-html-copy   # copy files to target (defaults to *.gif,*.png)
+     xml-html-stylesheet   # style sheet to use (defaults to ${xml-html-stylesheet})"
     >
 
         <mkdir dir="${xml-target-dir}" />
             <arg value="${xsl-source-file}" />
             <arg value="base.dir=${xml-target-dir}/" />
             <arg value="use.id.as.filename=1" />
+            <arg value="html.stylesheet=${xml-html-stylesheet}" />
         </java>
     </target>
 
diff --git a/docs/dist/doc/aspectj-faq.css b/docs/dist/doc/aspectj-faq.css
new file mode 100644 (file)
index 0000000..d627302
--- /dev/null
@@ -0,0 +1,88 @@
+body { 
+  font-family: "Lucida Grande", "Trebuchet MS", sans-serif;
+  line-height: 1.1em;
+ }
+
+h2 { 
+     font-size: 130%; 
+     font-weight: bold ; 
+     line-height: 16px;
+     color: #FFFFFF;
+     background-color: #0080C0;
+     padding: 5px;
+}
+
+h3 { 
+     font-size: 110%; 
+     font-weight: bold ; 
+     line-height: 14px;
+     color: #FFFFFF;
+     background-color: orange;
+     padding: 5px;
+}
+
+tt { 
+  font-size: 100%;
+  color: #0080C0;
+ }
+
+tt tt { 
+  font-size: 100%;
+ }
+
+.programlisting {
+  padding-top: 5px; 
+  border: 2px solid #ccc;
+  background: #eee;
+  font-size: 120%;
+  color: #111199;
+
+ }
+
+.term { 
+  color: #111199;
+ }
+
+.variablelist dd { 
+  margin-left: 18px;
+  padding-left: 20px;
+  background: url(dd_arrow.gif) no-repeat 0 2px;
+ }
+
+.toc dt { 
+  font-size: 110%;
+  padding-bottom: 0px;
+  margin-bottom: 5px;
+ }
+
+.toc dl dd dt { 
+  font-size: 100%;
+ }
+
+.toc dt { 
+  font-size: 100%
+  margin-bottom: 0;
+ }
+
+.informaltable table { 
+  margin-left: 5%;
+ }
+
+.informaltable th { 
+  background-color: orange;
+  padding: 1px;
+ }
+
+ul li { 
+  line-height: 1.2em; 
+ }
+
+.keyword { 
+  font-weight: bold;
+  color: purple;
+ }
+ .question {
+   color: #3333CC;
+   border-top: 1px solid silver;
+ }
\ No newline at end of file
index e6332d6378fbfe4e007eeee9b8845d0b7d30f4c3..b571f79fd00a7224df41cc23f94ca68ad51da49e 100644 (file)
@@ -3,8 +3,7 @@
 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
   "../../lib/docbook/docbook-dtd/docbookx.dtd">
 
-<?xml-stylesheet type="text/css"
-    href="../../style.css"?>
+<!-- set style sheet in build.xml using xml-html-stylesheet variable -->
 <!-- `copy-to-register' (C-x r s) then `insert-register' (C-x r i).
       <qandaentry>
         <question id="q:XX" xreflabel="Q:XX">