about summary refs log tree commit diff
path: root/src/librustdoc/html/static
AgeCommit message (Collapse)AuthorLines
2019-08-28Auto merge of #62941 - GuillaumeGomez:save-crate-filter, r=Mark-Simulacrumbors-3/+19
Save crate filtering on rustdoc Fixes #62929. I added a hashmap and a hash encoding for the current crate list in case you have multiple crates handling on a same website (who talked about docs.rs?!). Like that, for each context, you have the filter crate selected. r? @QuietMisdreavus
2019-08-28Save crate filtering on rustdocGuillaume Gomez-3/+19
2019-08-22Rollup merge of #63782 - GuillaumeGomez:theme-switch-fix, r=kinnisonMazdak Farrokhzad-6/+6
Fix confusion in theme picker functions To reproduce the bug currently: click on the theme picker button twice (to show it then hide it). Then click anywhere else: the dropdown menu appears again. The problem was coming from a confusion of what the `hideThemeButtonState` and `showThemeButtonState` were supposed to do. I switched their codes and updated the `switchThemeButtonState` function. It now works as expected. r? @kinnison
2019-08-21Fix confusion in theme picker functionsGuillaume Gomez-6/+6
2019-08-21Replaced skipStorage with saveTheme variableGuillaume Gomez-3/+3
2019-08-21take into account the system themeGuillaume Gomez-3/+28
2019-07-12Auto merge of #61462 - GuillaumeGomez:fix-local-storage, r=Manishearthbors-3/+1
[rustdoc] Fix storage usage when disabled Fixes #61239. @starblue: Can you give a try to this change please? I tried on chrome and firefox and both worked so if you're using another web browser, that might be useful. :) r? @Manishearth
2019-07-07Prevent shrinking of "crate select" element on FirefoxDmitry Murzin-0/+1
2019-06-29Fix code block information icon positionGuillaume Gomez-0/+4
2019-06-11Fix storage usage when disabledGuillaume Gomez-3/+1
2019-06-03Auto merge of #61008 - GuillaumeGomez:fix-rustdoc-code-highlighting, ↵bors-3/+14
r=Manishearth Fix lines highlighting in rustdoc source view Fixes #60948. This PR fixes how we handle the lines highlighting from the URL (so in "/doc/src/alloc/string.rs.html#285-283", the "285-283" part). We got a hard limit on 50000, for some unknown and lost reasons which was used in case only one line is selected. r? @Manishearth
2019-05-21Fix lines highlighting in rustdoc source viewGuillaume Gomez-3/+14
2019-05-20Rollup merge of #60487 - GuillaumeGomez:fix-search-sidebar-width-colors, ↵Mazdak Farrokhzad-9/+10
r=Dylan-DPC Fix search sidebar width when no crate select is present Fixes #60480. I also fixed the box-shadow that seemed to have been kind of removed? r? @QuietMisdreavus
2019-05-20Rollup merge of #60383 - ↵Mazdak Farrokhzad-207/+214
GuillaumeGomez:fix-position-source-code-files-toggle, r=Manishearth Fix position source code files toggle Fixes #60381. The second commit is a big cleanup of the media queries. r? @rust-lang/rustdoc cc @Manishearth screenshot of the fix: <img width="501" alt="Screenshot 2019-04-29 at 23 42 56" src="https://user-images.githubusercontent.com/3050060/56929111-112b2b00-6ad9-11e9-9a23-e0a8e3641395.png">
2019-05-19Auto merge of #60272 - Jakst:patch-1, r=Manishearthbors-2/+21
Explicitly set height on rust logo <img> element in docs The layout of the left side menu in docs reflows when navigating between pages because of missing height on the <img> element of rust logo. Setting height='100' tells the browser to reserve that vertical space, leading to a less janky experience.
2019-05-18Auto merge of #60093 - GuillaumeGomez:fix-attrs-pos, r=Manishearthbors-3/+7
Fix attrs pos Fixes #60042. Screenshot: <img width="438" alt="Screenshot 2019-05-12 at 15 02 25" src="https://user-images.githubusercontent.com/3050060/57582606-1455ec00-74c7-11e9-9d4e-5ec4da4de7dd.png"> r? @rust-lang/rustdoc
2019-05-07Rollup merge of #60489 - GuillaumeGomez:remove-hamburger, r=QuietMisdreavusMazdak Farrokhzad-0/+4
Remove hamburger button from source code page Fixes #60483. Screenshot: <img width="575" alt="Screenshot 2019-05-03 at 00 12 51" src="https://user-images.githubusercontent.com/3050060/57110298-61ec8f00-6d38-11e9-85fd-d13be94b9c52.png"> cc @rust-lang/rustdoc
2019-05-03use span instead of div for since versionAndy Russell-1/+1
2019-05-03Remove hamburger button from source code pageGuillaume Gomez-0/+4
2019-05-02Fix search sidebar width when no crate select is presentGuillaume Gomez-9/+10
2019-04-30Rollup merge of #60382 - Manishearth:revert-code-font, r=GuillaumeGomezMazdak Farrokhzad-1/+1
Revert "Update Source Code Pro fonts to version 2.030" Temporary fix for https://github.com/rust-lang/rust/issues/60365 https://github.com/rust-lang/rust/pull/60146 updated all fonts (not just the fonts that were buggy), however it looks like the new Source Code Pro is buggy. We should test this out of tree: `cargo doc` on anything, replace the font in `target/doc`, and use `python -m SimpleHTTPServer` to see what's going on. Till we figure that out, I'll just back this out. r? @GuillaumeGomez This reverts commit 6bafc58cedc6f409dbcd8919a25b2f5d425f42ae.
2019-04-30Cleanup media queriesGuillaume Gomez-184/+179
2019-04-30Improve file sidebar in source code view page on mobileGuillaume Gomez-33/+45
2019-04-29Revert "Update Source Code Pro fonts to version 2.030"Manish Goregaokar-1/+1
This reverts commit 6bafc58cedc6f409dbcd8919a25b2f5d425f42ae.
2019-04-29Fix line number display in source viewGuillaume Gomez-0/+4
2019-04-29Fix image position and displayGuillaume Gomez-6/+20
2019-04-29Wrap logo in container to prevent layout reflowJakob Ståhl-0/+5
2019-04-28Fix default value for setting "Auto-hide item methods' documentation"Dmitry Murzin-1/+1
2019-04-24Rollup merge of #59822 - GuillaumeGomez:fix-dark-theme-css, r=ManishearthMazdak Farrokhzad-3/+3
Fix dark css rule Fixes #59817. r? @rust-lang/rustdoc
2019-04-20Update Fira Sans to version 4.202Manish Goregaokar-8/+3
From https://github.com/mozilla/Fira
2019-04-20Update Source Code Pro fonts to version 2.030Manish Goregaokar-1/+1
Pulled in from https://github.com/adobe-fonts/source-code-pro/
2019-04-20Update Source Serif Pro fonts to version 2.010Manish Goregaokar-1/+1
Pulled in from https://github.com/adobe-fonts/source-serif-pro/ See https://bugzilla.mozilla.org/show_bug.cgi?id=1545317
2019-04-18Fixes attributes position in types declGuillaume Gomez-3/+7
2019-04-17Remove unwanted z-index changeGuillaume Gomez-1/+0
2019-04-16Fix dark css ruleGuillaume Gomez-3/+3
2019-04-15change word wrapping modevlad-boroda-1/+1
2019-04-14Fix rustdoc sidebar z-indexvlad-boroda-0/+1
2019-04-14Auto merge of #59950 - Centril:rollup-hpmr62i, r=Centrilbors-15/+19
Rollup of 6 pull requests Successful merges: - #59776 (Apply resource-suffix to search-index and source-files scripts as well) - #59784 (Suggest importing macros from the crate root) - #59812 (Exclude profiler-generated symbols from MSVC __imp_-symbol workaround.) - #59874 (Clean up handling of `-Z pgo-gen` commandline option.) - #59890 (Don't generate empty json variables) - #59911 (Revert "compile crates under test w/ -Zemit-stack-sizes") Failed merges: r? @ghost
2019-04-14Rollup merge of #59890 - GuillaumeGomez:empty-json-variables, r=QuietMisdreavusMazdak Farrokhzad-15/+19
Don't generate empty json variables r? @rust-lang/rustdoc
2019-04-14Rollup merge of #59855 - GuillaumeGomez:fix-attr-position-in-type-decl, ↵Mazdak Farrokhzad-0/+14
r=QuietMisdreavus Fix attributes position in type declaration Fixes #59797. r? @rust-lang/rustdoc
2019-04-12Don't generate empty json variablesGuillaume Gomez-15/+19
2019-04-12Auto merge of #59622 - GuillaumeGomez:improve-one-char-search, r=QuietMisdreavusbors-3/+7
Ensure that exact matches come first in rustdoc search Fixes #59287. cc @scottmcm r? @QuietMisdreavus
2019-04-10Fix attributes position in type declarationGuillaume Gomez-0/+14
2019-04-02Ensure that exact matches come first in rustdoc searchGuillaume Gomez-3/+7
2019-03-30Rollup merge of #59534 - laurmaedje:collapse-blanket-impls, r=GuillaumeGomezMazdak Farrokhzad-0/+8
rustdoc: collapse blanket impls in the same way as normal impls If the rustdoc setting _Auto-hide trait implementations documentation_ is activated (on by default), normal trait implementations are collapsed by default. Blanket impls on the other hand are not collapsed. I'm not sure whether this is intended, but considering that the blanket impls for `From`, `Into`, `TryFrom`, ... are on every type, it would reduce the documentation bloat if these would also be collapsed when the setting is active. (I'm not really familiar with the codebase and therefore just copied the code for the normal impl collapsing, but I could deduplicate it into a method, of course, too.)
2019-03-30Rollup merge of #59376 - davidtwco:finally-rfc-2008-variants, ↵Mazdak Farrokhzad-0/+5
r=petrochenkov,QuietMisdreavus RFC 2008: Enum Variants Part of #44109. See [Zulip topic](https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/rfc-2008/near/132663140) for previous discussion. r? @petrochenkov cc @nikomatsakis
2019-03-29Collapse blanket impls in the same way as normal implsLaurenz-0/+8
2019-03-29Support non-exhaustive enum variants in rustdoc.David Wood-0/+5
This commit adds support for non-exhaustive enum variants in rustdoc, extending the existing support for non-exhaustive enums and structs.
2019-03-26Rollup merge of #59424 - GuillaumeGomez:fix-stability-css, r=QuietMisdreavusGuillaume Gomez-0/+8
Fix code block display in portability element in dark theme Fixes #59261. r? @QuietMisdreavus A little screenshot: <img width="521" alt="Screenshot 2019-03-26 at 00 37 49" src="https://user-images.githubusercontent.com/3050060/54961082-9a41c600-4f5f-11e9-8040-ae6f26d368ff.png">
2019-03-26Rollup merge of #59026 - GuillaumeGomez:search-tabs-header, r=QuietMisdreavusGuillaume Gomez-1/+1
Fix moving text in search tabs headers Fixes #59005. Now, the text in the search tabs headers isn't moving anymore. r? @QuietMisdreavus