Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private static void printPredicateHtml(PrintStream out, DocInfo docInfo) {
out.println("<div id=\"" + docInfo.predicateName + "\">");

out.print("<h5>");
out.print(docInfo.predicateName);
out.print("<a href=\"#" + docInfo.predicateName + "\">" + docInfo.predicateName + "</a>");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are this really href not name? If so what are they linking to?

Copy link
Copy Markdown
Member Author

@mimaison mimaison Feb 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's linking to the existing <div id="..."> just above on line 61

Copy link
Copy Markdown
Member

@showuon showuon Feb 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you let me know where does these predicateName appear in the doc?
here? https://kafka.apache.org/documentation/#connect_predicates
And what will be the expected output? What hyperlink destination we expected to link to?

Thank you.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Predicates are listed in this section: https://kafka.apache.org/documentation/#connect_predicates

Currently the names of predicates are listed but they are not links so we can't easily copy direct links to them.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, I got it. You want to add an anchor point in each predicate and transformation. I see now. I've checked, there is already the HTML element id = predicate names and transformation names, so adding an anchor link with the name can link to the position. Looks good to me. Thanks for the explanation.

out.println("</h5>");

out.println(docInfo.overview);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private static void printTransformationHtml(PrintStream out, DocInfo docInfo) {
out.println("<div id=\"" + docInfo.transformationName + "\">");

out.print("<h5>");
out.print(docInfo.transformationName);
out.print("<a href=\"#" + docInfo.transformationName + "\">" + docInfo.transformationName + "</a>");
out.println("</h5>");

out.println(docInfo.overview);
Expand Down
Loading