Auto merge of #34372 - ollie27:rustdoc_sidebar, r=steveklabnik

rustdoc: Add more types to the sidebar

They're displayed in the same order as they are on modules pages.

You can test [here](https://ollie27.github.io/rust_doc_test/std/).
For example:
[before](https://doc.rust-lang.org/nightly/std/char/constant.MAX.html) [after](https://ollie27.github.io/rust_doc_test/std/char/constant.MAX.html)
[before](https://doc.rust-lang.org/nightly/std/os/raw/type.c_char.html) [after](https://ollie27.github.io/rust_doc_test/std/os/raw/type.c_char.html)
This commit is contained in:
bors 2016-06-23 10:56:38 -07:00 committed by GitHub
commit ad7fe6521b

View File

@ -884,12 +884,16 @@
sidebar.append(div);
}
block("primitive", "Primitive Types");
block("mod", "Modules");
block("macro", "Macros");
block("struct", "Structs");
block("enum", "Enums");
block("constant", "Constants");
block("static", "Statics");
block("trait", "Traits");
block("fn", "Functions");
block("macro", "Macros");
block("type", "Type Definitions");
}
window.initSidebarItems = initSidebarItems;