Tags: robyoung/rust
Tags
Auto merge of rust-lang#24973 - roryokane:fix-minus-doc-buttons, r=al… …excrichton My change in rust-lang#24797 had a bug, described in that issue’s comments, and first discovered in issue rust-lang#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.
PreviousNext