You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by mc...@apache.org on 2014/12/22 17:10:27 UTC

[1/2] incubator-nifi git commit: NIFI-182: - Updating styles to better match the rest of the documentation.

Repository: incubator-nifi
Updated Branches:
  refs/heads/NIFI-182 24372962a -> fa80827de


NIFI-182:
- Updating styles to better match the rest of the documentation.

Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/b375f015
Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/b375f015
Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/b375f015

Branch: refs/heads/NIFI-182
Commit: b375f01519da33c24c2ad93d229e70918191838f
Parents: 2437296
Author: Matt Gilman <ma...@gmail.com>
Authored: Mon Dec 22 11:05:48 2014 -0500
Committer: Matt Gilman <ma...@gmail.com>
Committed: Mon Dec 22 11:05:48 2014 -0500

----------------------------------------------------------------------
 .../src/main/enunciate/images/bg.png            | Bin 99 -> 0 bytes
 .../src/main/enunciate/override.css             |  45 ++++++++++++++-----
 2 files changed, 34 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/b375f015/nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/enunciate/images/bg.png
----------------------------------------------------------------------
diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/enunciate/images/bg.png b/nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/enunciate/images/bg.png
deleted file mode 100644
index fda98e5..0000000
Binary files a/nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/enunciate/images/bg.png and /dev/null differ

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/b375f015/nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/enunciate/override.css
----------------------------------------------------------------------
diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/enunciate/override.css b/nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/enunciate/override.css
index a96d0a3..d2a95d7 100644
--- a/nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/enunciate/override.css
+++ b/nar-bundles/framework-bundle/framework/web/nifi-web-api/src/main/enunciate/override.css
@@ -13,6 +13,13 @@
   limitations under the License.
 */
 
+@import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic|Noto+Serif:400,400italic,700,700italic|Droid+Sans+Mono:400";
+
+html, html a {
+    -webkit-font-smoothing: antialiased;
+    text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
+}
+
 #site-name {
     padding-left: 0;
 }
@@ -56,7 +63,16 @@
 
 .home {
     color: #444;
-    font-family: Verdana, Arial, Helvetica, sans-serif !important;
+    font-family: "Open Sans","DejaVu Sans",sans-serif !important;
+}
+
+p {
+    font-family: 'Noto Serif', 'DejaVu Serif', serif;
+    font-size: 16px;
+}
+
+p strong {
+    font-weight: bold;
 }
 
 a {
@@ -68,6 +84,7 @@ a:hover {
 }
 
 .container {
+    width: 940px !important;
     padding: 0 10px;
     background-color: #fff;
 }
@@ -77,9 +94,9 @@ a:hover {
 }
 
 #main p.note {
-    background: url(img/bg.png);
-    border: 1px solid #eee;
-    border-left: 4px solid #eee;
+    background-color: #fefefe;
+    border: 1px solid #ccc;
+    border-left: 6px solid #ccc;
     color: #666;
     display: block;
     margin-bottom: 12px;
@@ -89,9 +106,9 @@ a:hover {
 /* tables */
 
 table {
-    background: url(img/bg.png);
-    border: 1px solid #eee;
-    border-left: 4px solid #eee;
+    background-color: #fefefe;
+    border: 1px solid #ccc;
+    border-left: 6px solid #ccc;
     color: #666;
     display: block;
     margin-bottom: 12px;
@@ -118,9 +135,9 @@ table tbody tr th {
 
 code {
     font-size: 14px;
-    background: url(img/bg.png);
-    border: 1px solid #eee;
-    border-left: 4px solid #eee;
+    background-color: #fefefe;
+    border: 1px solid #ccc;
+    border-left: 6px solid #ccc;
     color: #666;
     margin-bottom: 10px;
     padding: 5px 8px;
@@ -133,6 +150,12 @@ code {
     border-top: 3px solid #eee;
 }
 
+/* width */
+
 .span-18 {
-    width: 776px !important;
+    width: 916px !important;
+}
+
+.span-20 {
+    width: 935px !important;
 }
\ No newline at end of file


[2/2] incubator-nifi git commit: NIFI-182: - Making the documentation in the help section for cohesive.

Posted by mc...@apache.org.
NIFI-182:
- Making the documentation in the help section for cohesive.

Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/fa80827d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/fa80827d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/fa80827d

Branch: refs/heads/NIFI-182
Commit: fa80827de9e59026c8cefe640528ee68d3b7ccbc
Parents: b375f01
Author: Matt Gilman <ma...@gmail.com>
Authored: Mon Dec 22 11:09:51 2014 -0500
Committer: Matt Gilman <ma...@gmail.com>
Committed: Mon Dec 22 11:09:51 2014 -0500

----------------------------------------------------------------------
 .../main/webapp/WEB-INF/jsp/documentation.jsp   |  3 +-
 .../src/main/webapp/css/component-usage.css     | 91 ++++++++++++++++----
 .../nifi-web-docs/src/main/webapp/css/main.css  | 29 +++++--
 .../src/main/webapp/js/application.js           |  7 +-
 4 files changed, 95 insertions(+), 35 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/fa80827d/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/WEB-INF/jsp/documentation.jsp
----------------------------------------------------------------------
diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/WEB-INF/jsp/documentation.jsp b/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/WEB-INF/jsp/documentation.jsp
index b350e6b..e31be6f 100644
--- a/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/WEB-INF/jsp/documentation.jsp
+++ b/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/WEB-INF/jsp/documentation.jsp
@@ -27,7 +27,7 @@
         <link href="css/main.css" rel="stylesheet" type="text/css" />
         <link href="css/component-usage.css" rel="stylesheet" type="text/css" />
     </head>
-    <body>
+    <body id="documentation-body">
         <div id="banner-header" class="main-banner-header"></div>
         <div id="banner-footer" class="main-banner-footer"></div>
         <span id="initial-selection" style="display: none;">${param.select}</span>
@@ -105,7 +105,6 @@
                 <div class="component-links">
                     <ul>
                         <li class="component-item"><a class="component-link rest-api" href="rest-api/index.html" target="component-usage">Rest Api</a></li>
-                        <li class="component-item"><a class="component-link" href="javascript:void(0);" target="component-usage">Developer Guide</a></li>
                     </ul>
                 </div>
             </div>

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/fa80827d/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/css/component-usage.css
----------------------------------------------------------------------
diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/css/component-usage.css b/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/css/component-usage.css
index b0f2e46..1728733 100644
--- a/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/css/component-usage.css
+++ b/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/css/component-usage.css
@@ -14,15 +14,24 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
+@import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic|Noto+Serif:400,400italic,700,700italic|Droid+Sans+Mono:400";
+
+html, html a {
+    -webkit-font-smoothing: antialiased;
+    text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
+}
+
 body {
+    width: 62.5em;
+    margin: 0 auto;
     display: block;
-    font-family: Verdana, Arial, Helvetica, sans-serif;
-    font-size: 12px;
+    font-family: "Open Sans","DejaVu Sans",sans-serif;
 }
 
 .title {
     font-weight: bold;
-    color: #294c58;
+    color: #7a2518;
     font-size: 18px;
 }
 
@@ -33,39 +42,85 @@ body {
 /* tables */
 
 table {
-    border-collapse: collapse;
+    background-color: #fefefe;
+    border: 1px solid #ccc;
+    border-left: 6px solid #ccc;
+    color: #666;
+    display: block;
+    margin-bottom: 12px;
+    padding: 5px 8px;
 }
 
-table th {
-    background-image: url(../images/bgTableHeader.png);
-    background-repeat: repeat-x;
-    border-bottom: 1px solid #365C6A;
-    border-right: 1px solid #172B31;
-    height: 26px;
-    padding: 0 2px;
-    color: #fff;
-    white-space: nowrap;
+tr td {
+    font-size: 14px;
+    vertical-align:top;
+    text-align:left;
+    padding: 4px;
+    border-width: 0;
 }
 
-table td {
-    padding: 2px;
+tr th {
+    font-size: 16px;
+    vertical-align:top;
+    text-align:left;
+    padding: 4px;
+    border-width: 0;
 }
 
 /* links */
 
 a, a:link, a:visited {
     cursor: pointer;
-    color: #1e373f;
+    color: #2156a5;
     text-decoration: none;
     border: none;
 }
 
 a:hover, a:active {
-    color: #264c58;
-    text-decoration: underline;
+    color: #2156a5;
+    text-decoration: none;
     border: none;
 }
 
 .clear {
     clear: both;
+}
+
+/* p */
+
+p {
+    font-family: 'Noto Serif', 'DejaVu Serif', serif;
+    font-size: 16px;
+}
+
+p strong {
+    font-weight: bold;
+}
+
+/* ul li */
+
+ul li {
+    font-family: 'Noto Serif', 'DejaVu Serif', serif;
+    font-size: 16px;
+}
+
+ul li strong {
+    font-weight: bold;
+}
+
+h2 {
+    font-weight: normal;
+    color: #ba3925;
+}
+
+/* pre */
+
+pre {
+    font-size: 14px;
+    background-color: #fefefe;
+    border: 1px solid #ccc;
+    border-left: 6px solid #ccc;
+    color: #666;
+    margin-bottom: 10px;
+    padding: 5px 8px;
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/fa80827d/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/css/main.css
----------------------------------------------------------------------
diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/css/main.css b/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/css/main.css
index b4daa6b..918eb7a 100644
--- a/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/css/main.css
+++ b/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/css/main.css
@@ -19,7 +19,8 @@
     padding: 0;
 }
 
-body {
+#documentation-body {
+    width: 100%;
     position: absolute;
     top: 0;
     right: 0;
@@ -111,7 +112,7 @@ div.component-listing {
     left: 0;
     bottom: 40px;
     overflow: auto;
-    font-size: 12px;
+    font-size: 16px;
     padding: 4px;
 }
 
@@ -124,22 +125,32 @@ div.component-listing div.header {
     color: #264c58;
 }
 
-div.component-listing div.component-links {
-    margin-left: 10px;
-    color: #1e373f;
-}
-
 div.component-links ul {
     list-style: none;
 }
 
 li.component-item {
     padding: 2px;
+    padding-left: 4px;
+    border-left: 8px solid transparent;
+    font-family: "Open Sans","DejaVu Sans",sans-serif;
+    font-size: 15px;
+}
+
+li.component-item a {
+    color: #1e373f;
+}
+
+li.component-item:hover {
+    border-left: 8px solid #d1dee5;
+}
+
+li.component-item:hover a {
+    color: #264c58;
 }
 
 li.component-item.selected {
-    background-color: #d1dee5;
-    text-decoration: underline;
+    border-left: 8px solid #7098ad;
 }
 
 div.component-links span.no-components {

http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/fa80827d/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/js/application.js
----------------------------------------------------------------------
diff --git a/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/js/application.js b/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/js/application.js
index 748fc62..ab92aa2 100644
--- a/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/js/application.js
+++ b/nar-bundles/framework-bundle/framework/web/nifi-web-docs/src/main/webapp/js/application.js
@@ -257,15 +257,10 @@ $(document).ready(function () {
         });
         
         // listen for on the rest api and user guide
-        $('a.rest-api a.user-guide').on('click', function() {
+        $('a.rest-api, a.user-guide').on('click', function() {
             selectComponent($(this).text());
         });
 
-	   // listen for on the rest api and user guide
-       $('a.rest-api a.user-guide').on('click', function() {
-           selectComponent($(this).text());
-       });
-       
         // get the initial selection
         var initialComponentLink = $('a.component-link:first');
         var initialSelection = $('#initial-selection').text();