You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by jw...@apache.org on 2017/07/23 18:32:36 UTC
nifi git commit: NIFI-917 Improve Rendering of Component Docs
Repository: nifi
Updated Branches:
refs/heads/master 082919f91 -> 10692256d
NIFI-917 Improve Rendering of Component Docs
Signed-off-by: James Wing <jv...@gmail.com>
This closes #2025.
Project: http://git-wip-us.apache.org/repos/asf/nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/10692256
Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/10692256
Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/10692256
Branch: refs/heads/master
Commit: 10692256d62348b3616d95ed3252eb58a8ce05ef
Parents: 082919f
Author: Pierre Villard <pi...@gmail.com>
Authored: Thu Jul 20 22:50:13 2017 +0200
Committer: James Wing <jv...@gmail.com>
Committed: Sun Jul 23 11:30:04 2017 -0700
----------------------------------------------------------------------
.../nifi/documentation/html/HtmlDocumentationWriter.java | 2 +-
.../nifi-web-docs/src/main/webapp/css/component-usage.css | 6 ++++++
.../nifi-web/nifi-web-docs/src/main/webapp/css/main.css | 1 +
3 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/nifi/blob/10692256/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java
index 7a39d19..15f3e5a 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/main/java/org/apache/nifi/documentation/html/HtmlDocumentationWriter.java
@@ -641,7 +641,7 @@ public class HtmlDocumentationWriter implements DocumentationWriter {
xmlStreamWriter.writeEmptyElement("br");
if (implementations.length > 0) {
- final String title = implementations.length > 1 ? "Implementations: " : "Implementation:";
+ final String title = implementations.length > 1 ? "Implementations: " : "Implementation: ";
writeSimpleElement(xmlStreamWriter, "strong", title);
iterateAndLinkComponents(xmlStreamWriter, implementations, null, "<br>");
} else {
http://git-wip-us.apache.org/repos/asf/nifi/blob/10692256/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/webapp/css/component-usage.css
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/webapp/css/component-usage.css b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/webapp/css/component-usage.css
index 83574a0..1ae578b 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/webapp/css/component-usage.css
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/webapp/css/component-usage.css
@@ -48,6 +48,7 @@ table {
-webkit-border-radius:3px;
border-radius:3px;
width: 100%;
+ word-wrap: break-word;
}
table th {
@@ -113,6 +114,11 @@ table tr:last-child td:last-child {
}
td#allowable-values, td#default-value, td#name, td#value {
+ max-width: 200px;
+}
+
+td#description {
+ vertical-align: middle;
}
/* links */
http://git-wip-us.apache.org/repos/asf/nifi/blob/10692256/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/webapp/css/main.css
----------------------------------------------------------------------
diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/webapp/css/main.css b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/webapp/css/main.css
index ddd7d72..8b50064 100644
--- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/webapp/css/main.css
+++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-docs/src/main/webapp/css/main.css
@@ -117,6 +117,7 @@ div.documentation-header {
#component-listing-container {
flex-grow: 1;
min-width: 312px;
+ max-width: 350px;
padding: 0px 4px 0px 4px;
}