]> source.dussan.org Git - jackcess.git/commitdiff
pretty up the site
authorJames Ahlborn <jtahlborn@yahoo.com>
Fri, 30 Oct 2015 03:31:26 +0000 (03:31 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Fri, 30 Oct 2015 03:31:26 +0000 (03:31 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@959 f203690c-595d-4dc9-a70b-905162fa7fd2

pom.xml
src/site/fml/faq.fml
src/site/javadoc/stylesheet.css
src/site/resources/css/site.css [new file with mode: 0644]
src/site/site.xml
src/site/xdoc/cookbook.xml

diff --git a/pom.xml b/pom.xml
index 817a0faeafcefeb1fcf7cee7ab02c732d8983504..b678c1d79bbd5e1c207a445ee6729a334e92da19 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
   <parent>
     <groupId>com.healthmarketscience</groupId>
     <artifactId>openhms-parent</artifactId>
-    <version>1.1.1</version>
+    <version>1.1.2</version>
   </parent>
   <groupId>com.healthmarketscience.jackcess</groupId>
   <artifactId>jackcess</artifactId>
           </execution>
         </executions>
       </plugin>
+      <plugin>
+        <groupId>com.google.code.maven-replacer-plugin</groupId>
+        <artifactId>replacer</artifactId>
+        <version>1.5.3</version>
+        <executions>
+          <execution>
+            <id>no-regex</id>
+            <phase>site</phase>
+            <goals>
+              <goal>replace</goal>
+            </goals>
+        <configuration>
+          <includes>
+            <include>${project.build.directory}/site/apidocs/**/*.html</include>
+          </includes>
+          <regex>false</regex>
+          <replacements>
+            <replacement>
+              <token>&lt;pre&gt;</token>
+              <value>&lt;div class="source"&gt;&lt;pre class="prettyprint linenums"&gt;</value>
+            </replacement>
+            <replacement>
+              <token>&lt;/pre&gt;</token>
+              <value>&lt;/pre&gt;&lt;/div&gt;</value>
+            </replacement>
+          </replacements>
+        </configuration>
+          </execution>
+          <execution>
+            <id>with-regex</id>
+            <phase>site</phase>
+            <goals>
+              <goal>replace</goal>
+            </goals>
+        <configuration>
+          <includes>
+            <include>${project.build.directory}/site/apidocs/**/*.html</include>
+          </includes>
+          <replacements>
+            <replacement>
+              <token>\s+&lt;/pre&gt;</token>
+              <value>&lt;/pre&gt;</value>
+            </replacement>
+          </replacements>
+        </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
   <dependencies>
             </taglet>
           </taglets>
           <quiet>true</quiet>
+          <top><![CDATA[
+          <script type="text/javascript" src="{@docRoot}/../js/apache-maven-fluido-1.4.min.js"></script>
+          ]]></top>
         </configuration>
       </plugin>
     </plugins>
index 3d3715874be4746c246e7d91c4fc14128e6671b9..03f52555325b11e44ae45e900cd197d5a7724eea 100644 (file)
@@ -39,7 +39,8 @@
         <p>Data validation in Access is controlled via a variety of
            mechanisms, not all of which are supported by Jackces.  See the
            table below for details:</p>
-        <table>
+        <div class="indented">
+        <table border="1">
           <tr>
             <th>Data Validation Type</th>
             <th>Support</th>
@@ -66,6 +67,7 @@
             <td>No (but Jackcess does provide access to the Properties)</td>
           </tr>
         </table>
+        </div>
       </answer>
     </faq>
 
index ca1bb5edef267a0209fb1c0b27703aac74199e20..e877e692eb6e54906e1fff010c777c509b455180 100644 (file)
@@ -70,3 +70,183 @@ a:link.selfref, a:visited.selfref {
 .UsageGeneral       { background: #efefef }
 .UsageIntermediate  { background: #efefef }
 .UsageAdvanced      { background: #efefef }
+
+
+/* Customizations pulled in from fluido 1.4 (and custom site.css) */
+ul,ol {
+    padding:0;
+    margin:0 0 10px 25px
+}
+ul ul,ul ol,ol ol,ol ul {
+    margin-bottom:0
+}
+li {
+    line-height:20px
+}
+ul.unstyled,ol.unstyled {
+    margin-left:0;
+    list-style:none
+}
+ul.inline,ol.inline {
+    margin-left:0;
+    list-style:none
+}
+ul.inline>li,ol.inline>li {
+    display:inline-block;
+    *display:inline;
+    padding-right:5px;
+    padding-left:5px;
+    *zoom:1
+}
+
+
+pre.prettyprint {
+    border:1px solid #999;
+    page-break-inside:avoid
+}
+pre.prettyprint {
+    padding:0 3px 2px;
+    font-family:Monaco,Menlo,Consolas,"Courier New",monospace;
+    font-size:12px;
+    color:#333;
+    -webkit-border-radius:3px;
+    -moz-border-radius:3px;
+    border-radius:3px
+}
+/* code { */
+/*     padding:2px 4px; */
+/*     color:#d14; */
+/*     white-space:nowrap; */
+/*     background-color:#f7f7f9; */
+/*     border:1px solid #e1e1e8 */
+/* } */
+pre.prettyprint {
+    display:block;
+    padding:9.5px;
+    margin:0 0 10px;
+    font-size:13px;
+    line-height:20px;
+    word-break:break-all;
+    word-wrap:break-word;
+    white-space:pre;
+    white-space:pre-wrap;
+    background-color:#f5f5f5;
+    border:1px solid #ccc;
+    border:1px solid rgba(0,0,0,0.15);
+    -webkit-border-radius:4px;
+    -moz-border-radius:4px;
+    border-radius:4px
+}
+pre.prettyprint {
+    margin-bottom:20px
+}
+pre.prettyprint code {
+    padding:0;
+    color:inherit;
+    white-space:pre;
+    white-space:pre-wrap;
+    background-color:transparent;
+    border:0
+}
+.pre-scrollable {
+    max-height:340px;
+    overflow-y:scroll
+}
+
+.pln {
+    color:#000
+}
+@media screen {
+    .str {
+        color:#080
+    }
+    .kwd {
+        color:#008
+    }
+    .com {
+        color:#800
+    }
+    .typ {
+        color:#606
+    }
+    .lit {
+        color:#066
+    }
+    .pun,.opn,.clo {
+        color:#660
+    }
+    .tag {
+        color:#008
+    }
+    .atn {
+        color:#606
+    }
+    .atv {
+        color:#080
+    }
+    .dec,.var {
+        color:#606
+    }
+    .fun {
+        color:red
+    }
+
+}
+@media print,projection {
+    .str {
+        color:#060
+    }
+    .kwd {
+        color:#006;
+        font-weight:bold
+    }
+    .com {
+        color:#600;
+        font-style:italic
+    }
+    .typ {
+        color:#404;
+        font-weight:bold
+    }
+    .lit {
+        color:#044
+    }
+    .pun,.opn,.clo {
+        color:#440
+    }
+    .tag {
+        color:#006;
+        font-weight:bold
+    }
+    .atn {
+        color:#404
+    }
+    .atv {
+        color:#060
+    }
+
+}
+pre.prettyprint {
+    padding:2px;
+    border:1px solid #888
+}
+ol.linenums {
+    margin-top:0;
+    margin-bottom:0;
+    padding-left:15px
+}
+li.L1,li.L3,li.L5,li.L7,li.L9 {
+    background:#eee
+}
+
+li.L1,li.L3,li.L5,li.L7,li.L9 {
+    color:#888
+}
+li.L0,li.L2,li.L4,li.L6,li.L8 {
+    color:#888
+}
+.source
+{
+    padding-left: 10pt;
+    padding-right: 10pt;    
+}
diff --git a/src/site/resources/css/site.css b/src/site/resources/css/site.css
new file mode 100644 (file)
index 0000000..2448bf1
--- /dev/null
@@ -0,0 +1,71 @@
+/* You can override this file with your own styles */
+
+li.L1,li.L3,li.L5,li.L7,li.L9 {
+    color:#888
+}
+li.L0,li.L2,li.L4,li.L6,li.L8 {
+    color:#888
+}
+a.externalLink[href^=https] {
+    background:url('../images/internet-web-browser.png') right center no-repeat;
+    padding-right:18px
+}
+tt {
+    background:#eee
+}
+.indented {
+    padding-left: 10pt;
+    padding-right: 100pt;
+}
+.source {
+    padding-top: 5pt;
+    padding-left: 10pt;
+    padding-right: 100pt;
+}
+dl {
+    background-color: #ffc;
+    border: 1px solid #aaa;
+    padding: 4px 4px 4px 6px;
+}
+dd {
+    padding-top:5pt;
+}
+dt {
+    padding:5pt;
+}
+hr {
+    border-color:#aaa;
+}
+.table-striped tbody>tr:nth-child(even)>td {
+    background-color:#EEE
+}
+th {
+    background-color: #BBB;
+}
+.section h3 {
+    padding: 0px 8px;
+    border: 1px solid #AAA;
+    background-color: #EEE;
+    color: #BF7D30;
+    font-size: large;
+}
+.section h2 {
+    padding: 0px 8px;
+    border: 1px solid #999;
+    background-color: #DDD;
+    color: #BF7D30;
+    font-size: x-large;
+}    
+.table-striped tbody>tr:nth-child(even)>th,.table-striped tbody>tr:nth-child(odd)>th {
+    background-color:#BBB;
+    color: #FFF;
+}
+.section h2 > a,.section h3 > a {
+    color: #BF7D30;
+}
+#bannerLeft h2 {
+    color: #005985;
+}
+#breadcrumbs > ul {
+    padding-right: 50pt;    
+}
index 4da8ce2863920094c5a8581b1cc60083fa670f56..cbeaf24465c21c87b54f35f816dfaf6859738d26 100644 (file)
@@ -1,6 +1,14 @@
 <?xml version="1.0"?>
 
 <project name="Jackcess">
+  <skin>
+    <groupId>org.apache.maven.skins</groupId>
+    <artifactId>maven-fluido-skin</artifactId>
+    <version>1.4</version>
+  </skin>
+  <bannerLeft>
+    <name>${project.name}</name>
+  </bannerLeft>
   <body>
     <menu name="Jackcess">
       <item name="About" href="index.html"/>
     <menu ref="reports"/>
 
   </body>
+
+  <custom>
+    <fluidoSkin>
+      <sourceLineNumbersEnabled>true</sourceLineNumbersEnabled>
+      <copyrightClass>center</copyrightClass>
+      <gitHub>
+        <projectId>jahlborn/jackcess</projectId>
+        <ribbonOrientation>right</ribbonOrientation>
+        <ribbonColor>gray</ribbonColor>        
+      </gitHub>
+    </fluidoSkin>
+  </custom>
   
 </project>
index 477f2f7b8b7fc273fc03c857473ddfbd6dbd8d9b..f164676c710ce1f4486ff75a146e0152623d6719 100644 (file)
@@ -89,8 +89,8 @@
           So, what's in a row?  Well, let's assume your "Test" table is
           defined in the following way in Access:
         </p>
-        <blockquote>
-          <table>
+        <div class="indented">
+          <table border="1">
             <tr>
               <th>Field Name</th><th>Data Type</th>
             </tr>
               <td>StartDate</td><td>Date/Time</td>
             </tr>
           </table>
-        </blockquote>
+        </div>
         <p>
           Then, given a row of data, we could inspect the various <a href="apidocs/com/healthmarketscience/jackcess/Column.html">Columns</a> and
           their values like so: