Integrated javadoc into site with basic stylesheet
git-svn-id: https://svn.apache.org/repos/asf/db/ddlutils/trunk@1137132 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/pom.xml b/pom.xml
index 817a412..6301858 100644
--- a/pom.xml
+++ b/pom.xml
@@ -287,12 +287,19 @@
<version>2.4</version>
<reportSets>
<reportSet>
- <reports>
- </reports>
+ <reports></reports>
</reportSet>
</reportSets>
</plugin>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <version>2.8</version>
+ <configuration>
+ <stylesheetfile>src/site/javadoc/stylesheet.css</stylesheetfile>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.tomdz.maven</groupId>
<artifactId>sphinx-maven-plugin</artifactId>
<version>1.0.0-SNAPSHOT</version>
diff --git a/src/site/javadoc/stylesheet.css b/src/site/javadoc/stylesheet.css
new file mode 100644
index 0000000..cffaefd
--- /dev/null
+++ b/src/site/javadoc/stylesheet.css
@@ -0,0 +1,83 @@
+/* Javadoc style sheet */
+
+/* Define colors, fonts and other style attributes here to override the defaults */
+
+/* Page background color */
+body {
+ font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif;
+ font-size: 15px;
+ background-color: white;
+ color: #000;
+}
+
+/* Headings */
+h1 { margin-top: 0; padding-top: 0; font-size: 200%; }
+h2 { font-size: 180%; }
+h3 { font-size: 150%; }
+h4 { font-size: 130%; }
+h5 { font-size: 100%; }
+h6 { font-size: 100%; }
+
+pre, code {
+ font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
+ font-size: 0.9em;
+ background: #F0FFEB;
+ color: #222;
+}
+
+pre {
+ padding: 7px 10px;
+ margin: 15px 0;
+ border: 1px solid #C7ECB8;
+ border-radius: 2px;
+ -moz-border-radius: 2px;
+ -webkit-border-radius: 2px;
+ line-height: 1.3em;
+}
+
+p, dd {
+ line-height: 1.4em;
+ font-size: 17px;
+}
+
+a {
+ color: #348613;
+ text-decoration: none;
+ border-bottom: 1px dashed #DCF0D5;
+}
+
+a:hover {
+ color: #59B833;
+ border-bottom: 1px solid #6D4100;
+}
+
+.FrameItemFont a {
+ color: #444;
+ text-decoration: none;
+ border-bottom: 1px dashed #DCF0D5;
+}
+
+.FrameItemFont a:hover {
+ background: #EEE;
+ border-bottom: 1px solid #6D4100;
+}
+
+/* Table colors */
+.TableHeadingColor { background: #CCCCCC; color:#000000 } /* Dark mauve */
+.TableSubHeadingColor { background: #EEEEEE; color:#000000 } /* Light mauve */
+.TableRowColor { background: #FFFFFF; color:#000000 } /* White */
+
+/* Font used in left-hand frame lists */
+.FrameTitleFont { font-size: 100%; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif; color:#000000 }
+.FrameHeadingFont { font-size: 90%; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif; color:#000000 }
+.FrameItemFont { font-size: 90%; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif; color:#000000 }
+
+/* Navigation bar fonts and colors */
+.NavBarCell1 { background-color:#EEE; color:#000} /* Light mauve */
+.NavBarCell1Rev { background-color:#EEE; color:#AAA; } /* Dark Blue */
+.NavBarFont1 { font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif; }
+.NavBarFont1Rev { font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif; }
+
+.NavBarCell2 { font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif; background-color:#FFFFFF; color:#000000}
+.NavBarCell3 { font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif; background-color:#FFFFFF; color:#000000}
+
diff --git a/src/site/sphinx/_templates/sidebarintro.html b/src/site/sphinx/_templates/sidebarintro.html
new file mode 100644
index 0000000..927628c
--- /dev/null
+++ b/src/site/sphinx/_templates/sidebarintro.html
@@ -0,0 +1,4 @@
+<h3>Other resources</h3>
+<ul>
+ <li><a href="apidocs/index.html">Javadoc</a></li>
+</ul>
\ No newline at end of file
diff --git a/src/site/sphinx/conf.py b/src/site/sphinx/conf.py
index fc17909..60cbf19 100644
--- a/src/site/sphinx/conf.py
+++ b/src/site/sphinx/conf.py
@@ -60,6 +60,6 @@
htmlhelp_basename = 'ddlutilsdoc'
html_sidebars = {
- 'index': ['globaltoc.html', 'relations.html', 'searchbox.html'],
- '**': ['globaltoc.html', 'relations.html', 'searchbox.html']
+ 'index': ['globaltoc.html', 'relations.html', 'sidebarintro.html', 'searchbox.html'],
+ '**': ['globaltoc.html', 'relations.html', 'sidebarintro.html', 'searchbox.html']
}
\ No newline at end of file
diff --git a/src/site/sphinx/index.rst b/src/site/sphinx/index.rst
index 333ee82..cd706fa 100644
--- a/src/site/sphinx/index.rst
+++ b/src/site/sphinx/index.rst
@@ -27,4 +27,5 @@
ant-tasks
database-support
databases/index
- schema
\ No newline at end of file
+ schema
+ javadoc </apidocs/index.html>
\ No newline at end of file