mirror of https://github.com/apache/nifi.git
NIFI-917 Improve Rendering of Component Docs
Signed-off-by: James Wing <jvwing@gmail.com> This closes #2025.
This commit is contained in:
parent
082919f919
commit
10692256d6
|
@ -641,7 +641,7 @@ public class HtmlDocumentationWriter implements DocumentationWriter {
|
||||||
|
|
||||||
xmlStreamWriter.writeEmptyElement("br");
|
xmlStreamWriter.writeEmptyElement("br");
|
||||||
if (implementations.length > 0) {
|
if (implementations.length > 0) {
|
||||||
final String title = implementations.length > 1 ? "Implementations: " : "Implementation:";
|
final String title = implementations.length > 1 ? "Implementations: " : "Implementation: ";
|
||||||
writeSimpleElement(xmlStreamWriter, "strong", title);
|
writeSimpleElement(xmlStreamWriter, "strong", title);
|
||||||
iterateAndLinkComponents(xmlStreamWriter, implementations, null, "<br>");
|
iterateAndLinkComponents(xmlStreamWriter, implementations, null, "<br>");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -48,6 +48,7 @@ table {
|
||||||
-webkit-border-radius:3px;
|
-webkit-border-radius:3px;
|
||||||
border-radius:3px;
|
border-radius:3px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
table th {
|
table th {
|
||||||
|
@ -113,6 +114,11 @@ table tr:last-child td:last-child {
|
||||||
}
|
}
|
||||||
|
|
||||||
td#allowable-values, td#default-value, td#name, td#value {
|
td#allowable-values, td#default-value, td#name, td#value {
|
||||||
|
max-width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
td#description {
|
||||||
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* links */
|
/* links */
|
||||||
|
|
|
@ -117,6 +117,7 @@ div.documentation-header {
|
||||||
#component-listing-container {
|
#component-listing-container {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
min-width: 312px;
|
min-width: 312px;
|
||||||
|
max-width: 350px;
|
||||||
padding: 0px 4px 0px 4px;
|
padding: 0px 4px 0px 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue