bep / docuapi

Beautiful multilingual API documentation theme for Hugo
https://docuapi.netlify.app/
Other
750 stars 200 forks source link

Bug - Code blocks opening while moving page further down #95

Closed roshanjonah closed 4 months ago

roshanjonah commented 1 year ago

Hi @bep, The page content on the left seems to move when I move through the code examples tab. Each tab takes it to a different part of the section, so the section I am supposed to be on isn't the case anymore. I made a video of how "Slate" works and how "docuapi" seems not to work similarly to clarify this point.

Slate (How it is supposed to work as you switch different code blocks) https://user-images.githubusercontent.com/20136098/233024178-d494ee28-5ce8-441f-a5ec-405f3ee8880e.mp4

Docuapi (How it is currently working) https://user-images.githubusercontent.com/20136098/233023639-4c5aa1ed-c182-4685-8f77-328ffc362859.mp4

roshanjonah commented 1 year ago

Any idea how we can fix this @bep ? Any hint would be much appreciated.

bep commented 1 year ago

Well, someone needs to spend some time looking into why it behaves the way it does., then fix it. I have a little too much on my "work plate" at the moment, so I cannot promise a fast fix, but I will eventually get there. If someone wants to fix it, I welcome a PR.

roshanjonah commented 8 months ago

Sorry, Bjørn. I'm just circling back on this. Do you think it's the way we structured the content that's causing this. I've attached one of the markdown files. Please have a look when you get some spare time. Thanks 11-countries.md

roshanjonah commented 8 months ago

I also think it could be due to multiple headings that say the same thing for different main headings. Not 100% sure.

Example: h2 - List h3 - HTTP request h3 - URL segment

h2 - Campaign h3 - HTTP request h3 - URL segment