summary refs log tree commit diff
path: root/src/librustdoc/html
AgeCommit message (Collapse)AuthorLines
2018-09-16Rollup merge of #53941 - kzys:sort-impls, r=GuillaumeGomezGuillaume Gomez-4/+20
rustdoc: Sort implementors Fixes #53812
2018-09-14Auto merge of #52962 - GuillaumeGomez:few-things, r=QuietMisdreavusbors-10/+36
Fix trait item doc setting, add new setting, start hiding elements by default and then showing them up r? @QuietMisdreavus
2018-09-12rustdoc: Sort implementorsKazuyoshi Kato-4/+20
Fixes #53812
2018-09-12Auto merge of #53409 - GuillaumeGomez:associated-const-value, r=QuietMisdreavusbors-44/+27
Don't show associated const value anymore Part of #44348. Before: <img width="1440" alt="screen shot 2018-08-16 at 00 48 30" src="https://user-images.githubusercontent.com/3050060/44177414-20ef1480-a0ee-11e8-80d4-7caf082cf0de.png"> After: <img width="1440" alt="screen shot 2018-08-16 at 00 48 23" src="https://user-images.githubusercontent.com/3050060/44177417-251b3200-a0ee-11e8-956a-4229275e3342.png"> cc @nox r? @QuietMisdreavus
2018-09-09rustdoc: Remove generated blanket impls from trait pagesOliver Middleton-14/+12
2018-09-06Don't show default docsGuillaume Gomez-16/+11
2018-09-06Fix implementors generation as wellGuillaume Gomez-3/+6
2018-09-06Fix hover on implsGuillaume Gomez-37/+43
2018-09-05Apply method docs collapse to all impl-items sectionsGuillaume Gomez-1/+3
2018-09-01Rollup merge of #53801 - GuillaumeGomez:duplicated-foreign-type-impls, ↵kennytm-5/+9
r=QuietMisdreavus Prevent duplicated impl on foreign types Fixes #53689. r? @QuietMisdreavus
2018-08-31Auto merge of #51384 - QuietMisdreavus:extern-version, r=GuillaumeGomezbors-2/+14
rustdoc: add flag to control the html_root_url of dependencies The `--extern-html-root-url` flag in this PR allows one to override links to crates whose docs are not already available locally in the doc bundle. Docs.rs currently uses a version of this to make sure links to other crates go into that crate's docs.rs page. See the included test for intended use, but the idea is as follows: Calling rustdoc with `--extern-html-root-url crate=https://some-url.com` will cause rustdoc to override links that point to that crate to instead be replaced with a link rooted at `https://some-url.com/`. (e.g. for docs.rs this would be `https://docs.rs/crate/0.1.0` or the like.) Cheekily, rustup could use these options to redirect links to std/core/etc to instead point to locally-downloaded docs, if it so desired. Fixes https://github.com/rust-lang/rust/issues/19603
2018-08-30Rollup merge of #53806 - GuillaumeGomez:fix-ui-issues-foreign-type-impls, ↵Pietro Albini-0/+11
r=QuietMisdreavus Fix UI issues on Implementations on Foreign types Fixes #53800. <img width="1440" alt="screen shot 2018-08-29 at 22 06 35" src="https://user-images.githubusercontent.com/3050060/44814733-e9986180-abdd-11e8-97e0-0e3c1816ca04.png"> r? @QuietMisdreavus
2018-08-30Rollup merge of #53747 - GuillaumeGomez:rustdoc-fixes, r=QuietMisdreavusPietro Albini-0/+6
Rustdoc fixes Fixes rustdoc not scrolling to given lines and invalid unstable display: <img width="1440" alt="screen shot 2018-08-27 at 23 28 47" src="https://user-images.githubusercontent.com/3050060/44687252-06535e80-aa51-11e8-8512-d7d34d1cb963.png"> r? @QuietMisdreavus
2018-08-29Prevent duplicated impl on foreign typesGuillaume Gomez-5/+9
2018-08-29Fix UI issues on Implementations on Foreign typesGuillaume Gomez-0/+11
2018-08-28Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc.Eduard-Mihai Burtescu-33/+35
2018-08-27Fix invalid display of unstable messagesGuillaume Gomez-0/+5
2018-08-27Fix source automatic scrollGuillaume Gomez-0/+1
2018-08-26Remove static and const initialization from documentationGuillaume Gomez-17/+4
2018-08-26Rollup merge of #53706 - ehuss:rustdoc-section-anchor, r=GuillaumeGomezGuillaume Gomez-3/+2
rustdoc: Fix gap on section anchor symbol when hovering. Fixes #49485 for section headings.
2018-08-26Rollup merge of #53626 - kzys:hashchange, r=GuillaumeGomezGuillaume Gomez-16/+36
Automatically expand a section even after page load Fixes #52774
2018-08-26Rollup merge of #53043 - GuillaumeGomez:improve-unstable-msg-display, ↵Guillaume Gomez-0/+13
r=QuietMisdreavus Improve unstable message display Fixes #51387. Reopening of #51563. New display: <img width="1440" alt="screen shot 2018-08-04 at 00 01 39" src="https://user-images.githubusercontent.com/3050060/43667793-dc14f708-9779-11e8-9808-f3ff126fc213.png"> r? @QuietMisdreavus
2018-08-25rustdoc: Fix gap on section anchor symbol when hovering.Eric Huss-3/+2
Fixes #49485 for section headings.
2018-08-25Add collapser for associated constGuillaume Gomez-4/+3
2018-08-25Don't show associated const value anymoreGuillaume Gomez-23/+20
2018-08-25Expand a collapsed element on onclickKazuyoshi Kato-16/+21
Doing the expansion on onhashchange seems too late. Fixes #48726
2018-08-25Auto merge of #53577 - GuillaumeGomez:rustdoc-substring-search, ↵bors-10/+10
r=QuietMisdreavus Search a substring instead of start of string in rustdoc search Fixes #49762. r? @QuietMisdreavus
2018-08-23Check null-able variables before using themKazuyoshi Kato-3/+2
2018-08-23use String::new() instead of String::from(""), "".to_string(), "".to_owned() ↵Matthias Krüger-8/+8
or "".into()
2018-08-23Automatically expand a section even after page loadKazuyoshi Kato-16/+32
Fixes #52774
2018-08-22Search a substring instead of start of string in rustdoc searchGuillaume Gomez-10/+10
2018-08-21Rollup merge of #53496 - matthiaskrgr:codespell_08_2018, r=varkorkennytm-1/+1
Fix typos found by codespell.
2018-08-21Rollup merge of #53405 - oconnor663:search_esc, r=GuillaumeGomezkennytm-0/+3
restore the page title after escaping out of a search Currently if I start a search in the docs, but then hit ESC, the "Results for..." title is still there in my browser tab. This is a simple attempt to fix that. I see that there's a separate `var previousTitle = document.title` thing happening in `startSearch()`, but as far as I can tell that's only related to the back stack? I'd also appreciate feedback on the right place to declare the `titleBeforeSearch` variable. Testing-wise, I've confirmed by hand that the tab title restores correctly after building with `./x.py doc --stage 1 src/libstd`, but nothing more involved than that. What else should I test?
2018-08-19fix tidy errorsDonato Sciarra-2/+4
2018-08-19mv codemap source_mapDonato Sciarra-5/+5
2018-08-19mv codemap() source_map()Donato Sciarra-2/+2
2018-08-19mv (mod) codemap source_mapDonato Sciarra-2/+2
2018-08-19mv filemap source_fileDonato Sciarra-1/+1
2018-08-19mv CodeMap SourceMapDonato Sciarra-3/+3
2018-08-19Fix typos found by codespell.Matthias Krüger-1/+1
2018-08-18Use the new Entry::or_default method where possible.Eduard-Mihai Burtescu-4/+4
2018-08-15restore the page title after escaping out of a searchJack O'Connor-0/+3
2018-08-15Fix links' colorGuillaume Gomez-4/+4
2018-08-12Rollup merge of #53267 - GuillaumeGomez:fix-styles, r=QuietMisdreavusGuillaume Gomez-4/+4
Fix styles Fixes #53262. r? @QuietMisdreavus
2018-08-11Fix stylesGuillaume Gomez-4/+4
2018-08-10Remove unwanted console logGuillaume Gomez-1/+0
2018-08-09Rollup merge of #53094 - GuillaumeGomez:automatic-expand, r=nrckennytm-0/+19
Automatically expand section if url id point to one of its component Fixes #52517. r? @nrc
2018-08-09Rollup merge of #52773 - ljedrz:unncecessary_patterns, r=nikomatsakiskennytm-2/+2
Avoid unnecessary pattern matching against Option and Result
2018-08-07Avoid unnecessary pattern matching against Option and Resultljedrz-2/+2
2018-08-05Automatically expand section if url id point to one of its componentGuillaume Gomez-0/+19