-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Broken Sidebar on website API for master #15200
Comments
Hey, this is the MXNet Label Bot. |
Bad news
Good news |
I tried rolling back to some older commits and found the site to work.
Maybe something was going on with CI (and still is?). |
Have you tried to rebuild one of those commits locally? |
I built every commit backwards until I narrowed it down to this one: Should I revert this commit? I can't see how it would be causing the issues, but the commit just prior comes out ok. |
I noticed that the content is in the page, but not visible. I don't know why this bug would only affect master, but I imagine the solution is in the javascript that moves the sidebars around. This area of code is the source of several bugs - from the footer overlapping content when the page toc is too short to not opening the page you expect. I pointed the website default to 1.4.1 to lessen the disruption for users for now. I don't think I should do a revert on the commit I narrowed down to because the changes wouldn't have this kind of impact. It has to be something else. I think we need someone to focus on the core issue - the js hacks on the theme and try to fix those directly. |
Could it be the changes from HTML to md in the links? |
Can you try to use the browser Dev tools and debug keepExpand to see why the links are not generated? Could be that they don't come from sphynx from a quick look I didn't see anything obvious with the markdown vs HTML. |
Yes. It seems like there are quite a few bugs in there - variables that should be tracking what's an API page that are undefined. Seems to be less a doc problem and more a front-end engineering problem to me. |
Well. I tried to compare the working V1.4.1 vs master Ideal Condition. V1.4.1MasterDiv Any idea what am I missing? |
I don't know much about sphinx. This seems to reference localtoc: https://github.com/sphinx-doc/sphinx/blob/master/sphinx/themes/basic/localtoc.html Which seems to be missing. So I guess the toc is not being generated correctly. Let me generate the docs and see if there's some error message with the TOC. |
I think the problem is in sidebar.js that component is loaded dynamically in JS. It has to be debugged with the browser dev tools. I would recommend side to side debugging with 1.4 and 1.5 to find out what's the problem. A breakpoint in render_lefttoc or render_left_helper... from sidebar.js |
I think the problem is in the generated html,is missing the element ul class "current" so the selector gets an empty text. Looks like generation problem. |
It's quite puzzling, I have look at many places, compared with 1.4.1 and don't find the root cause. We are using the same sphinx version, the templates are not changed... but somehow the left sidebar is not generated properly. |
Yup. Went through the steps you mentioned, (breakpoints, comparison with previous version, debug) |
We need to bisect, to find out when it was broken. I have a script to do that. |
@larroy Not sure if it is worth the effort. We're hoping to launch a refactored website soon and we won't be using any of this old js or sphinx theme. But, if it's easy and you want to try... don't let me stop you! |
OK, I have other things to do, I thought this was important for the release. |
New site makes this a moot issue. |
See https://mxnet.incubator.apache.org/versions/master/api/python/index.html
vs
The text was updated successfully, but these errors were encountered: