From beb77e7da50a2e9bc761e08010491e2eee98a138 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Fri, 30 Oct 2015 03:31:26 +0000 Subject: [PATCH] pretty up the site git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@959 f203690c-595d-4dc9-a70b-905162fa7fd2 --- pom.xml | 53 +++++++++- src/site/fml/faq.fml | 4 +- src/site/javadoc/stylesheet.css | 180 ++++++++++++++++++++++++++++++++ src/site/resources/css/site.css | 71 +++++++++++++ src/site/site.xml | 20 ++++ src/site/xdoc/cookbook.xml | 6 +- 6 files changed, 329 insertions(+), 5 deletions(-) create mode 100644 src/site/resources/css/site.css diff --git a/pom.xml b/pom.xml index 817a0fa..b678c1d 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ com.healthmarketscience openhms-parent - 1.1.1 + 1.1.2 com.healthmarketscience.jackcess jackcess @@ -208,6 +208,54 @@ + + com.google.code.maven-replacer-plugin + replacer + 1.5.3 + + + no-regex + site + + replace + + + + ${project.build.directory}/site/apidocs/**/*.html + + false + + + <pre> + <div class="source"><pre class="prettyprint linenums"> + + + </pre> + </pre></div> + + + + + + with-regex + site + + replace + + + + ${project.build.directory}/site/apidocs/**/*.html + + + + \s+</pre> + </pre> + + + + + + @@ -293,6 +341,9 @@ true + + ]]> diff --git a/src/site/fml/faq.fml b/src/site/fml/faq.fml index 3d37158..03f5255 100644 --- a/src/site/fml/faq.fml +++ b/src/site/fml/faq.fml @@ -39,7 +39,8 @@

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:

- +
+
@@ -66,6 +67,7 @@
Data Validation Type SupportNo (but Jackcess does provide access to the Properties)
+ diff --git a/src/site/javadoc/stylesheet.css b/src/site/javadoc/stylesheet.css index ca1bb5e..e877e69 100644 --- a/src/site/javadoc/stylesheet.css +++ b/src/site/javadoc/stylesheet.css @@ -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 index 0000000..2448bf1 --- /dev/null +++ b/src/site/resources/css/site.css @@ -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; +} diff --git a/src/site/site.xml b/src/site/site.xml index 4da8ce2..cbeaf24 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -1,6 +1,14 @@ + + org.apache.maven.skins + maven-fluido-skin + 1.4 + + + ${project.name} + @@ -16,5 +24,17 @@ + + + + true + center + + jahlborn/jackcess + right + gray + + + diff --git a/src/site/xdoc/cookbook.xml b/src/site/xdoc/cookbook.xml index 477f2f7..f164676 100644 --- a/src/site/xdoc/cookbook.xml +++ b/src/site/xdoc/cookbook.xml @@ -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:

-
- +
+
@@ -107,7 +107,7 @@
Field NameData Type
StartDateDate/Time
-
+

Then, given a row of data, we could inspect the various Columns and their values like so: -- 2.39.5