summary refs log tree commit diff
path: root/src/librustdoc/html/static
AgeCommit message (Collapse)AuthorLines
2020-02-27Remove "important traits" featureGuillaume Gomez-187/+3
2020-02-15Auto merge of #68668 - GuillaumeGomez:struct-variant-field-search, r=ollie27bors-8/+22
Struct variant field search Fixes #16017. Reopening of #64724. cc @tomjakubowski cc @ollie27 r? @kinnison
2020-02-11[ImgBot] Optimize imagesImgBotApp-3/+3
*Total -- 10.65kb -> 8.44kb (20.82%) /src/etc/installer/gfx/rust-logo.png -- 5.71kb -> 3.82kb (33.11%) /src/librustdoc/html/static/down-arrow.svg -- 0.63kb -> 0.50kb (20.44%) /src/librustdoc/html/static/wheel.svg -- 3.86kb -> 3.68kb (4.66%) /src/librustdoc/html/static/brush.svg -- 0.47kb -> 0.44kb (4.61%) Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-01-30rustdoc: emit JS paths for struct-like variantsTom Jakubowski-8/+22
On the backend, rustdoc now emits `paths` entries to a crate's search index for struct-like enum variants, and index items of type structfield which belong to such variants point to their variant parents in the `paths` table, rather than their enum grandparents. The path entry for a variant is the fully qualified module path plus the enum name. On the frontend, the search code recognizes structfields belonging to structlike variants in the `paths` table and re-constructs the URL to the field's anchor on the enum documentation page. closes #16017
2020-01-29Rollup merge of #68598 - GuillaumeGomez:fix-null-synthetic_implementors, ↵Yuki Okushi-14/+16
r=ollie27 Fix null synthetic_implementors error Fixes #68584. r? @ollie27 cc @kinnison
2020-01-28Fix null synthetic_implementors errorGuillaume Gomez-14/+16
2020-01-26Fix run button positionning in case of scrollingGuillaume Gomez-1/+3
2020-01-20Remove usage of global variable "inlined_types"Guillaume Gomez-2/+18
2020-01-14Rollup merge of #68166 - ollie27:rustdoc_help_escape, r=GuillaumeGomezYuki Okushi-2/+2
rustdoc: HTML escape arrows on help popup r? @GuillaumeGomez
2020-01-12rustdoc: HTML escape arrows on help popupOliver Middleton-2/+2
2020-01-09rustdoc: use another stability mark arrow, no rotate.Liigo Zhuang-3/+2
2020-01-09rustdoc: improve stability mark arrowsLiigo Zhuang-4/+9
2019-12-22Fix invalid results showing backGuillaume Gomez-0/+4
2019-12-22Improve code readabilityGuillaume Gomez-43/+37
2019-12-22Improve JS code a bit by avoid erasing all event handlersGuillaume Gomez-4/+5
2019-12-15Fix JS error when loading page with searchGuillaume Gomez-1/+1
2019-12-02Add missing checkGuillaume Gomez-1/+1
2019-11-25Rollup merge of #65613 - Mark-Simulacrum:rustdoc-preserve-ws, r=GuillaumeGomezPietro Albini-1/+1
Preserve whitespace inside one-backtick codeblocks Previously this was only done inside short docblocks (e.g., summary lines), but we should also do so in general. Fixes #65555
2019-11-21Revert "Update Source Code Pro and include italics"Guillaume Gomez-10/+3
This reverts commit ea9519bf16f0be137a814a49c9fbaf232ba49a43.
2019-11-20Rollup merge of #66514 - GuillaumeGomez:fix-search-filter-save, r=kinnisonMazdak Farrokhzad-15/+10
Fix selected crate search filter Fixes #62929. r? @kinnison
2019-11-20Rollup merge of #66298 - Ppjet6:disable-search-field, r=GuillaumeGomezMazdak Farrokhzad-5/+13
rustdoc: fixes #64305: disable search field instead of hidding it The result seems to be ok but I wasn't entirely sure how to get there. I tried to stay generic a bit but maybe it's not required at all. @GuillaumeGomez Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-20Rollup merge of #65665 - tspiteri:italic-and-update-SourceCodePro, ↵Mazdak Farrokhzad-3/+10
r=GuillaumeGomez Update Source Code Pro and include italics Fixes #65502. A few notes: * As stated in #65502, this does increase the download size. * Since this PR changes the font set, I think docs.rs would have to be updated if this PR is merged. * The fonts have a double extension (.ttf.woff); this is to keep the names consistent with the upstream font release which does that to distinguish these from the .otf.woff files ([Source Code Pro otf renders poorly on older Windows system apps](https://github.com/adobe-fonts/source-code-pro/issues/25#issuecomment-9019600)).
2019-11-20Change background-color of search input if disabledGuillaume Gomez-0/+8
2019-11-20rustdoc: fixes #64305: disable search field instead of hidding itMaxime “pep” Buquet-5/+5
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2019-11-19Rollup merge of #66430 - dns2utf8:fix_code_selection_click_handler, ↵Mazdak Farrokhzad-24/+37
r=GuillaumeGomez [doc] Fix the source code highlighting on source comments The code would always forget the previous selection. r? @GuillaumeGomez
2019-11-18Fix selected crate search filterGuillaume Gomez-15/+10
2019-11-15Prevent jumps when selecting one or many linesStefan Schindler-0/+5
2019-11-15Fix the source code highlighting on source commentsStefan Schindler-24/+32
2019-11-15Code cleanup to remove douplacte var definitionStefan Schindler-3/+2
Also move the declaration outside the loop since they accumulate state with each iteration
2019-11-15Remove unused argumentStefan Schindler-1/+1
2019-11-08Rollup merge of #66123 - GuillaumeGomez:no-more-hidden-elements, r=Dylan-DPCYuki Okushi-15/+51
No more hidden elements Fixes #66046. Follow-up of #66082. r? @kinnison
2019-11-07Rollup merge of #64696 - GuillaumeGomez:rustdoc-sub-settings, r=kinnisonMazdak Farrokhzad-4/+48
[rustdoc] add sub settings This PR is to give a finer control over what types are automatically expanded or not as well as the possibility to add sub-settings in the settings page. ![Screenshot from 2019-09-23 00-46-14](https://user-images.githubusercontent.com/3050060/65395521-15aff300-dd9c-11e9-9437-429ca347d455.png) r? @Mark-Simulacrum
2019-11-07Only call onHashChange instead of both functionsGuillaume Gomez-3/+2
2019-11-07Remove old isHidden functionGuillaume Gomez-5/+1
2019-11-06When a URL hash refers to a hidden element, it makes the element visibleGuillaume Gomez-10/+51
2019-11-04clean highlightSourceLines codeGuillaume Gomez-42/+54
2019-11-04Change sub-setting CSS class to sub-settingsGuillaume Gomez-1/+1
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-29add sub settings in rustdocGuillaume Gomez-4/+48
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-21Update Source Code Pro and include italicsTrevor Spiteri-3/+10
2019-10-21Add option to disable keyboard shortcuts in docsGuillaume Gomez-1/+2
2019-10-19Preserve whitespace inside one-backtick codeblocksMark Rousskov-1/+1
Previously this was only done inside short docblocks (e.g., summary lines), but we should also do so in general.
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