Skip to content

Commit ad7fe65

Browse files
authored
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)
2 parents bca6868 + b8bddb0 commit ad7fe65

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/librustdoc/html/static/main.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -884,12 +884,16 @@
884884
sidebar.append(div);
885885
}
886886

887+
block("primitive", "Primitive Types");
887888
block("mod", "Modules");
889+
block("macro", "Macros");
888890
block("struct", "Structs");
889891
block("enum", "Enums");
892+
block("constant", "Constants");
893+
block("static", "Statics");
890894
block("trait", "Traits");
891895
block("fn", "Functions");
892-
block("macro", "Macros");
896+
block("type", "Type Definitions");
893897
}
894898

895899
window.initSidebarItems = initSidebarItems;

0 commit comments

Comments
 (0)