rust/src/librustdoc/html
kennytm 15d71d3285
Rollup merge of #48631 - focusaurus:remember-collapse-setting, r=QuietMisdreavus
Remember state of top-level collapse toggle widget

This change allows the big top-right expand/collapse toggle to remember its setting across navigation or page reloads. Prior to this change, there was this annoyance:

- browse to some docs
- Click the minus button to collapse them
- browse to other docs (or reload the page)
- Everything is expanded again

The solution is based on storing a simple boolean flag in localStorage. I think it's a good improvement, but it does introduce the following potentially surprising behavior:

- browse to some docs
- click the minus button to collapse them
- click to expand a particular item (not the main top-right big one)
- reload the page, everything is collapsed

Paired with @debugsteven on this.
2018-03-13 05:01:15 +08:00
..
static Rollup merge of #48631 - focusaurus:remember-collapse-setting, r=QuietMisdreavus 2018-03-13 05:01:15 +08:00
escape.rs try! -> ? 2016-03-22 22:01:37 -05:00
format.rs Remove hoedown from rustdoc 2018-02-16 23:17:15 +01:00
highlight.rs Use PathBuf instead of String where applicable 2017-12-14 11:22:08 +01:00
item_type.rs Resolve foreign macros 2018-01-22 15:24:29 +05:30
layout.rs Add resource-suffix option for rustdoc 2018-03-05 23:45:27 +01:00
markdown.rs Rollup merge of #48382 - GuillaumeGomez:fix-rustdoc-test-panic, r=estebank 2018-02-21 16:29:56 +01:00
render.rs Auto merge of #48755 - GuillaumeGomez:rustdoc-fixes, r=QuietMisdreavus 2018-03-10 08:24:08 +00:00
toc.rs Rollup merge of #43891 - Fourchaux:master, r=steveklabnik 2017-08-17 10:44:07 -04:00