Kafkajs: Raw HTML shows on the documentation right side

Created on 29 Jul 2019  ยท  12Comments  ยท  Source: tulios/kafkajs

This was caused by the docusaurus update, version 1.12.0 has the issue.

https://github.com/facebook/docusaurus/issues/1703

bug help wanted

All 12 comments

Hopefully, my patch to Docusaurus will be accepted and then we can have this:

Before After
Screenshot 2019-08-18 at 04 35 36 Screenshot 2019-08-18 at 04 35 26

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

Screen Shot 2019-09-13 at 2 39 50 PM

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.

Was this page helpful?
0 / 5 - 0 ratings