From 10692256d62348b3616d95ed3252eb58a8ce05ef Mon Sep 17 00:00:00 2001 From: Pierre Villard Date: Thu, 20 Jul 2017 22:50:13 +0200 Subject: [PATCH] NIFI-917 Improve Rendering of Component Docs Signed-off-by: James Wing This closes #2025. --- .../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(-) 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 7a39d19e56..15f3e5a238 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, "
"); } else { 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 83574a012b..1ae578bd71 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 */ 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 ddd7d7285f..8b50064dc7 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; }