Guillaume Gomez
f7240e1c74
Improve error display for codeblocks in rustdoc
2018-09-29 18:14:34 +02:00
Guillaume Gomez
6aed133ebd
Rollup merge of #54097 - GuillaumeGomez:remove-keyword-namespace, r=QuietMisdreavus
...
rustdoc: Remove namespace for keywords
Fixes #54084 .
r? @QuietMisdreavus
2018-09-18 10:21:35 +02:00
Guillaume Gomez
3466d8044f
Rollup merge of #53941 - kzys:sort-impls, r=GuillaumeGomez
...
rustdoc: Sort implementors
Fixes #53812
2018-09-16 12:25:41 +02:00
bors
e7f1880921
Auto merge of #52962 - GuillaumeGomez:few-things, r=QuietMisdreavus
...
Fix trait item doc setting, add new setting, start hiding elements by default and then showing them up
r? @QuietMisdreavus
2018-09-14 01:07:21 +00:00
Kazuyoshi Kato
3dbb741a4b
rustdoc: Sort implementors
...
Fixes #53812
2018-09-12 21:01:14 -07:00
bors
f2302daef3
Auto merge of #53409 - GuillaumeGomez:associated-const-value, r=QuietMisdreavus
...
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-12 21:20:05 +00:00
Guillaume Gomez
1a0e8f95f5
Remove namespace for keywords
2018-09-10 11:27:21 +02:00
Oliver Middleton
d3e56854e1
rustdoc: Remove generated blanket impls from trait pages
2018-09-09 18:27:05 +01:00
Guillaume Gomez
c1b1d6804b
Don't show default docs
2018-09-06 23:32:30 +02:00
Guillaume Gomez
1b3382f2b9
Fix implementors generation as well
2018-09-06 23:32:30 +02:00
Guillaume Gomez
d65c8636d9
Fix hover on impls
2018-09-06 23:32:30 +02:00
Guillaume Gomez
e1ec05584c
Apply method docs collapse to all impl-items sections
2018-09-05 23:25:28 +02:00
kennytm
f37081499b
Rollup merge of #53801 - GuillaumeGomez:duplicated-foreign-type-impls, r=QuietMisdreavus
...
Prevent duplicated impl on foreign types
Fixes #53689 .
r? @QuietMisdreavus
2018-09-01 21:14:15 +08:00
bors
aaa170bebe
Auto merge of #51384 - QuietMisdreavus:extern-version, r=GuillaumeGomez
...
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-31 17:39:28 +00:00
Pietro Albini
6b1fffae20
Rollup merge of #53806 - GuillaumeGomez:fix-ui-issues-foreign-type-impls, 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-30 20:15:48 +02:00
Pietro Albini
2e2980b722
Rollup merge of #53747 - GuillaumeGomez:rustdoc-fixes, r=QuietMisdreavus
...
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-30 20:15:40 +02:00
Guillaume Gomez
3b98571b32
Prevent duplicated impl on foreign types
2018-08-29 23:02:05 +02:00
Guillaume Gomez
e08a84a0c1
Fix UI issues on Implementations on Foreign types
2018-08-29 22:48:37 +02:00
Eduard-Mihai Burtescu
93f3f5b155
Use FxHash{Map,Set} instead of the default Hash{Map,Set} everywhere in rustc.
2018-08-28 17:04:04 +03:00
Guillaume Gomez
04b4c40682
Fix invalid display of unstable messages
2018-08-27 21:52:10 +02:00
Guillaume Gomez
1d79d8be56
Fix source automatic scroll
2018-08-27 21:51:56 +02:00
Guillaume Gomez
86141797db
Remove static and const initialization from documentation
2018-08-26 12:08:30 +02:00
Guillaume Gomez
f9eef71986
Rollup merge of #53706 - ehuss:rustdoc-section-anchor, r=GuillaumeGomez
...
rustdoc: Fix gap on section anchor symbol when hovering.
Fixes #49485 for section headings.
2018-08-26 12:05:27 +02:00
Guillaume Gomez
9c20f06f73
Rollup merge of #53626 - kzys:hashchange, r=GuillaumeGomez
...
Automatically expand a section even after page load
Fixes #52774
2018-08-26 12:05:25 +02:00
Guillaume Gomez
49944aea3f
Rollup merge of #53043 - GuillaumeGomez:improve-unstable-msg-display, 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-26 12:05:21 +02:00
Eric Huss
1c888d51f9
rustdoc: Fix gap on section anchor symbol when hovering.
...
Fixes #49485 for section headings.
2018-08-25 14:15:49 -07:00
Guillaume Gomez
a00706a3b9
Add collapser for associated const
2018-08-25 15:30:47 +02:00
Guillaume Gomez
a54594430f
Don't show associated const value anymore
2018-08-25 15:30:47 +02:00
Kazuyoshi Kato
2c61f3ce9e
Expand a collapsed element on onclick
...
Doing the expansion on onhashchange seems too late.
Fixes #48726
2018-08-25 03:36:17 -07:00
bors
f87d9135b4
Auto merge of #53577 - GuillaumeGomez:rustdoc-substring-search, r=QuietMisdreavus
...
Search a substring instead of start of string in rustdoc search
Fixes #49762 .
r? @QuietMisdreavus
2018-08-25 02:40:14 +00:00
Kazuyoshi Kato
1f441a0905
Check null-able variables before using them
2018-08-23 08:15:23 -07:00
Matthias Krüger
ede1f7d2a5
use String::new() instead of String::from(""), "".to_string(), "".to_owned() or "".into()
2018-08-23 10:14:52 +02:00
Kazuyoshi Kato
917cdd295d
Automatically expand a section even after page load
...
Fixes #52774
2018-08-23 00:45:43 -07:00
Guillaume Gomez
e87b4b3100
Search a substring instead of start of string in rustdoc search
2018-08-22 00:21:08 +02:00
kennytm
b5519db323
Rollup merge of #53496 - matthiaskrgr:codespell_08_2018, r=varkor
...
Fix typos found by codespell.
2018-08-21 17:51:49 +08:00
kennytm
2a0d72075e
Rollup merge of #53405 - oconnor663:search_esc, r=GuillaumeGomez
...
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-21 17:51:42 +08:00
Donato Sciarra
6138c82803
fix tidy errors
2018-08-19 23:01:01 +02:00
Donato Sciarra
062bfbf39b
mv codemap source_map
2018-08-19 23:01:01 +02:00
Donato Sciarra
d3fe97f3d3
mv codemap() source_map()
2018-08-19 23:01:01 +02:00
Donato Sciarra
82607d2cf3
mv (mod) codemap source_map
2018-08-19 23:01:00 +02:00
Donato Sciarra
cbd0595710
mv filemap source_file
2018-08-19 23:00:59 +02:00
Donato Sciarra
c655473378
mv CodeMap SourceMap
2018-08-19 23:00:59 +02:00
Matthias Krüger
71120ef1e5
Fix typos found by codespell.
2018-08-19 17:41:28 +02:00
Eduard-Mihai Burtescu
14aed81d9a
Use the new Entry::or_default method where possible.
2018-08-18 20:19:45 +03:00
Jack O'Connor
207550981f
restore the page title after escaping out of a search
2018-08-15 23:05:52 -04:00
Guillaume Gomez
cf5ee8f59b
Fix links' color
2018-08-15 15:07:07 +02:00
Guillaume Gomez
34956ac0f6
Rollup merge of #53267 - GuillaumeGomez:fix-styles, r=QuietMisdreavus
...
Fix styles
Fixes #53262 .
r? @QuietMisdreavus
2018-08-12 23:27:02 +02:00
Guillaume Gomez
5a801c89d0
Fix styles
2018-08-11 13:34:15 +02:00
Guillaume Gomez
e37391b389
Remove unwanted console log
2018-08-10 18:48:36 +02:00
kennytm
dad5b6c554
Rollup merge of #53094 - GuillaumeGomez:automatic-expand, r=nrc
...
Automatically expand section if url id point to one of its component
Fixes #52517 .
r? @nrc
2018-08-09 16:58:41 +08:00