This was caused by the docusaurus update, version 1.12.0 has the issue.
Hopefully, my patch to Docusaurus will be accepted and then we can have this:
| Before | After |
|---|---|
![]() |
![]() |
Though, also, we may not actually need those <a name="..."></a> tags anymore
The only reason we want to keep them is that some error logs that we output contain links to help sections, so we need the anchors to be stable. We don't have that guarantee with the autogenerated ones, especially since we'd want the anchor to stay the same even if we change the actual title text.
@Nevon okay, this totally makes sense. In which case, my patch will fix the issue. Perhaps you'd like to give it a review?
We don't have that guarantee with the autogenerated ones, especially since we'd want the anchor to stay the same even if we change the actual title text.
I see. I was wondering why you didn't use the autogenerated anchors and instead manually wrote your own. As a suggestion I think it'll be better to shift those anchors to the end of the heading to prevent it from taking up space. Currently by putting it at the start it takes up some one letter space (the pink highlighted "text") on https://kafka.js.org/docs/producing#a-name-custom-partitioner-a-custom-partitioner

Oh! Good point, we could do thar, but we'd still see anchors in the page's ToC without the docusaurus patch linked above
On 13. Sep 2019, at 23:40, Yangshun Tay notifications@github.com wrote:
We don't have that guarantee with the autogenerated ones, especially since we'd want the anchor to stay the same even if we change the actual title text.
I see. I was wondering why you didn't use the autogenerated anchors and instead manually wrote your own. As a suggestion I think it'll be better to shift those anchors to the end of the heading to prevent it from taking up space. Currently by putting it at the start it takes up some one letter space (the pink highlighted "text"):
โ
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
Yep, just merged your PR. Thank you! ๐
Amazing! Thanks โจ
On 13. Sep 2019, at 23:57, Yangshun Tay notifications@github.com wrote:
Yep, just merged your PR. Thank you! ๐
โ
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
Fantastic! Thanks @ThisIsMissEm @yangshun
@Nevon ha, you beat me to it; Had doing that PR to update docusaurus on my todo list for this week :D
Seeing that messed up sidebar had annoyed me greatly. Thanks for taking care of it!
Ha, same here Tommy, same here ๐
On 19. Sep 2019, at 09:19, Tommy Brunn notifications@github.com wrote:
Seeing that messed up sidebar had annoyed me greatly. Thanks for taking care of it!
โ
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.