Conversation
- Fix indendation of code blocks - Add links to all SMTs and Predicates
| <pre class="brush: bash;"> | ||
| > bin/connect-standalone.sh config/connect-standalone.properties connector1.properties [connector2.properties ...] | ||
| > bin/connect-standalone.sh config/connect-standalone.properties connector1.properties [connector2.properties ...] | ||
| </pre> |
There was a problem hiding this comment.
There was a problem hiding this comment.
Good point! I've pushed an update
showuon
left a comment
There was a problem hiding this comment.
Thanks for the update. The only thing I'm not sure is that if the SMT and predicate link is correct or not. Other than that, LGTM! Thank you.
|
@dajac can you take a look? Thanks |
| return configs; | ||
| } | ||
| </pre> | ||
| @Override |
There was a problem hiding this comment.
Does putting this in a CDATA let us avoid the eye-bleeding HTML escaping?
There was a problem hiding this comment.
I'm not familiar with CDATA but from a quick search it seems it shouldn't be used in HTML documents.
https://developer.mozilla.org/en-US/docs/Web/API/CDATASection states:
Note: CDATA sections should not be used within HTML they are considered as comments and not displayed.
|
|
||
| out.print("<h5>"); | ||
| out.print(docInfo.predicateName); | ||
| out.print("<a href=\"#" + docInfo.predicateName + "\">" + docInfo.predicateName + "</a>"); |
There was a problem hiding this comment.
Are this really href not name? If so what are they linking to?
There was a problem hiding this comment.
It's linking to the existing <div id="..."> just above on line 61
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
|
@showuon @tombentley Can you take another look? Thanks |
showuon
left a comment
There was a problem hiding this comment.
@mimaison , for the html changes, I think they are good to be merged. But for the doc tool part, I am still not sure if the change is good or not since I don't know how these tool work. Might need your help to explain to me.
Or, maybe we can first merge the html changes, and discuss the tools change in a separate PR. Up to you. Thanks.
|
|
||
| out.print("<h5>"); | ||
| out.print(docInfo.predicateName); | ||
| out.print("<a href=\"#" + docInfo.predicateName + "\">" + docInfo.predicateName + "</a>"); |
There was a problem hiding this comment.
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.
|
|
||
| out.print("<h5>"); | ||
| out.print(docInfo.predicateName); | ||
| out.print("<a href=\"#" + docInfo.predicateName + "\">" + docInfo.predicateName + "</a>"); |
There was a problem hiding this comment.
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.
|
@tombentley , sorry, I found I forgot to ask you if you have other comments. If you have any comments, please raise it. Sorry! |
* apache-kafka/trunk: (49 commits) KAFKA-12738: send LeaveGroup request when thread dies to optimize replacement time (apache#11801) MINOR: Skip fsync on parent directory to start Kafka on ZOS (apache#11793) KAFKA-12738: track processing errors and implement constant-time task backoff (apache#11787) MINOR: Cleanup admin creation logic in integration tests (apache#11790) KAFKA-10199: Add interface for state updater (apache#11499) KAFKA-10000: Utils methods for overriding user-supplied properties and dealing with Enum types (apache#11774) KAFKA-10000: Add new metrics for source task transactions (apache#11772) KAFKA-13676: Commit successfully processed tasks on error (apache#11791) KAFKA-13511: Add support for different unix precisions in TimestampConverter SMT (apache#11575) MINOR: Improve Connect docs (apache#11642) ...

Committer Checklist (excluded from commit message)