NIFI-917 Improve Rendering of Component Docs

Signed-off-by: James Wing <jvwing@gmail.com>

This closes #2025.
This commit is contained in:
Pierre Villard 2017-07-20 22:50:13 +02:00 committed by James Wing
parent 082919f919
commit 10692256d6
3 changed files with 8 additions and 1 deletions

View File

@ -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 {

View File

@ -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 */

View File

@ -117,6 +117,7 @@ div.documentation-header {
#component-listing-container {
flex-grow: 1;
min-width: 312px;
max-width: 350px;
padding: 0px 4px 0px 4px;
}