diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2015-05-19 18:47:14 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2015-05-19 18:47:14 +0530 |
| commit | 1e532189026671e883b5183ecc64671cf5c5af18 (patch) | |
| tree | 2c6fa7e4551e0397ffe7561f3940b8bb02fc3a05 /src/rustllvm/RustWrapper.cpp | |
| parent | 392576b6d8f513a5deab2b8ce2c4560d1dc0dba8 (diff) | |
| parent | 99868f6ba8c3afb56a92e144fe17bdbe018fa8ec (diff) | |
| download | rust-1e532189026671e883b5183ecc64671cf5c5af18.tar.gz rust-1e532189026671e883b5183ecc64671cf5c5af18.zip | |
Rollup merge of #25551 - cllns:add-active-class-to-rustbook-toc, r=alexcrichton
Currently the table of contents for `rustbook` doesn't signify which page you are on. This PR adds an 'active' class to the link for the current page, and defines the CSS rule for that class to make the link underlined and bold. Not sure about two things: 1) Is `current_page` is a good name for the function parameter? At first I thought `current_item` would be good, but then in the `walk_item` function, you'd have `item` and `current_item`. 2) For the CSS, is both bold and underline too much? At first I had it just be underlined, but that's also how the links look when they're hovered over.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
