-
Notifications
You must be signed in to change notification settings - Fork 13.3k
std libs collapse doesn't work anymore #24918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Comments
beta doesn't work either. |
The problem is in "main.js" in the "toggle-all-docs" event handler, which is attempting to use the HTML entities for '+'/'−' in a javascript string. This was likely broken when '[-]' was changed to '[−]'. It should use a unicode escape sequence. |
bors
added a commit
that referenced
this issue
May 7, 2015
My change in #24797 had a bug, described in that issue’s comments, and first discovered in issue #24918. This fixes it. I tested this new `main.js` by changing the `main.js` content of [a rendered docs page](https://doc.rust-lang.org/std/option/) to this new content. The ‘[−]’ button worked again. I am also including another related fix, because it would require manual merging if I made a separate pull request for it. The page-global ‘[−]’ button currently adds `#` to the end of the URL whenever it is clicked. I am changing its `href` from `#` to `javascript:void(0)` (the same as the `href` for section-specific ‘[−]’ links) to fix that.
The pull request has been merged and it looks like the collapse button is working in the nightly docs now. This should be closed. |
Yup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The collapse button at the top right on the std lib docs doesn't work anymore. It should.
The text was updated successfully, but these errors were encountered: