about summary refs log tree commit diff
path: root/src/librustdoc/html/static
AgeCommit message (Collapse)AuthorLines
2019-11-03Auto merge of #65780 - GuillaumeGomez:move-help-popup-generation-code, ↵bors-2/+49
r=Mark-Simulacrum Move help popup generation code The first commit is just a small cleanup. The idea behind this PR is to reduce a bit more the generated HTML files by moving the duplicated code into one place instead. r? @kinnison
2019-10-29Rollup merge of #65741 - GuillaumeGomez:help-popup, r=Dylan-DPCTyler Mandry-3/+7
Prevent help popup to disappear when clicking on it Fixes #65736. r? @kinnison
2019-10-27reduce size of generated HTML files by moving the popup helper code to the JSGuillaume Gomez-0/+47
2019-10-27Cleanup search element getterGuillaume Gomez-2/+2
2019-10-25Improve help popup detectionGuillaume Gomez-3/+4
2019-10-24Prevent help popup to disappear when clicking on itGuillaume Gomez-2/+5
2019-10-24Fix default "disable-shortcuts" feature valueGuillaume Gomez-1/+1
2019-10-21Add option to disable keyboard shortcuts in docsGuillaume Gomez-1/+2
2019-10-04Auto merge of #64994 - GuillaumeGomez:fix-rustdoc-display-js-disabled, ↵bors-0/+8
r=Mark-Simulacrum Fix rustdoc display with js disabled Fixes #64988. Currently, all sections are collapsed when the page is loading, and then is displayed once done. However, if js is disabled, they never get expanded. Therefore, they need to be shown by default. r? @Mark-Simulacrum
2019-10-02Fix rustdoc display with js disabledGuillaume Gomez-0/+8
2019-10-01Improve sidebar styling to make its integration easierGuillaume Gomez-4/+4
2019-09-09Rollup merge of #64312 - GuillaumeGomez:rustdoc-better-esc-handling, ↵Mazdak Farrokhzad-18/+29
r=Mark-Simulacrum Unify escape usage Fixes #63443. I chose to keep the search text when pressing escape so when we focus on the search bar, we got the results again without needing to load them again. I also unified a bit a few things (maybe I should have done it in another commit, sorry...). r? @Mark-Simulacrum
2019-09-09Unify escape usageGuillaume Gomez-18/+29
2019-09-08Auto merge of #64096 - GuillaumeGomez:theme-regex-fix, r=Mark-Simulacrumbors-1/+1
Fix regex replacement in theme detection Fixes #64061. This is sadly a lot of bad luck: after making the changes and re-build the docs, I just forgot to force reload the page. Hence having the old (working) version with two replacements instead of the failing regex. Sorry again about that... cc @fenhl r? @Mark-Simulacrum
2019-09-06Rollup merge of #64094 - kawa-yoiko:rustdoc-search, r=GuillaumeGomezMazdak Farrokhzad-10/+6
Improve searching in rustdoc and add tests 👋 I have made searching in rustdoc more intuitive, added a couple more tests and made a little shell script to aid testing. Closes #63005. It took me quite a while to figure out how to run the tests for rustdoc (instead of running tests for other crates with rustdoc); the only pointer I found was [hidden in the rustc book](https://rust-lang.github.io/rustc-guide/rustdoc.html#cheat-sheet). Maybe this could be better documented? I shall be delighted to help if it is desirable.
2019-09-05Rollup merge of #63774 - chocol4te:fix_63707, r=GuillaumeGomezMazdak Farrokhzad-1/+1
Fix `window.hashchange is not a function` Closes #63707.
2019-09-04Improve searching in rustdoc and add testsShiqing-10/+6
2019-09-02Fix regex replacement in theme detectionGuillaume Gomez-1/+1
2019-08-30Rollup merge of #63847 - GuillaumeGomez:system-theme-detection, r=kinnisonMazdak Farrokhzad-1/+2
[rustdoc] Fix system theme detection Fixes #63830 The problem is that it returns the property "entirely" (so with the quotes in our case). Removing them fixes the issue. cc @fenhl r? @kinnison
2019-08-29Rollup merge of #62734 - GuillaumeGomez:hide-default-methods, r=Mark-SimulacrumMazdak Farrokhzad-1/+1
Hide trait default methods Fixes #62499. However, the question remains: do we want to extend it to this point or not? r? @QuietMisdreavus
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-25Fix system theme detectionGuillaume Gomez-1/+2
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-21Fix `window.hashchange is not a function`Ferdia McKeogh-1/+1
2019-08-21take into account the system themeGuillaume Gomez-3/+28
2019-07-16code formattingGuillaume Gomez-1/+1
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