bors
963184bbb6
Auto merge of #60093 - GuillaumeGomez:fix-attrs-pos, r=Manishearth
...
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-18 20:49:22 +00:00
Mazdak Farrokhzad
4e233583d0
Rollup merge of #60489 - GuillaumeGomez:remove-hamburger, r=QuietMisdreavus
...
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-07 19:30:05 +02:00
Andy Russell
8fc6e420d1
use span instead of div for since version
2019-05-03 12:55:31 -04:00
Guillaume Gomez
2e20da5c2c
Remove hamburger button from source code page
2019-05-03 00:13:39 +02:00
Guillaume Gomez
10b9370286
Fix line number display in source view
2019-04-29 23:13:30 +02:00
Guillaume Gomez
5971266301
Fixes attributes position in types decl
2019-04-18 00:02:12 +02:00
Guillaume Gomez
4fed94bf0d
Remove unwanted z-index change
2019-04-17 10:42:10 +02:00
vlad-boroda
9e171937b6
change word wrapping mode
2019-04-15 20:18:53 +03:00
vlad-boroda
40536548f9
Fix rustdoc sidebar z-index
2019-04-14 22:54:08 +03:00
Guillaume Gomez
825a11ea3b
Fix attributes position in type declaration
2019-04-10 22:31:42 +02:00
Guillaume Gomez
6a4cced10c
Fix moving text in search tabs headers
2019-03-08 20:12:17 +01:00
Guillaume Gomez
b53305df7f
Fix tables display
2019-02-19 11:07:16 +01:00
Guillaume Gomez
f22c445053
Rollup merge of #58086 - GuillaumeGomez:rustdoc-file-list-improvement, r=Manishearth
...
[rustdoc] Improve file list display
Improve a bit the arrows to show a folder's file and the arrow to show/hide the left panel.
r? @QuietMisdreavus
2019-02-07 14:28:36 +01:00
Guillaume Gomez
d80a558e4a
Improve file list display
2019-02-03 00:14:32 +01:00
Andy Russell
ea2b1b035b
rustdoc: wrap stability tags in colored spans
2019-01-31 15:15:59 -05:00
Guillaume Gomez
25189874fb
Fix non-clickable urls
2019-01-17 21:28:23 +01:00
Mazdak Farrokhzad
6d00124b85
Rollup merge of #56874 - JohnHeitmann:docs-spacing, r=GuillaumeGomez
...
Simplify foreign type rendering.
Simplified foreign type rendering by switching from tables to flexbox. Also, removed some seemingly extraneous elements like “ghost” spans.
Reduces element count on the `std::iter::Iterator` page by 30%. On my laptop it drops Iterator page load time from ~15s to ~10s. Frame times during scrolling are a hair lower too.
Known visual changes (happy to tweak based on feedback):
* The main `impl ...` headers are now getting the default, larger, h3 font size. This was an accident, but I liked how it turned out so I didn't fix it.
* There's a hair less vertical spacing between the end of a where block and the start of the next fn. Now, all spacing is consistent. I think this looks a bit worse. I may tweak vertical spacing more here or in a follow-up that cleans up vertical spacing more broadly.
* "[src]" links are all sized at 17px. A few were 19px in the original.
I haven't yet done heavy cross-browser or cross-crate testing. I was hoping to get a quick thumbs up or thumbs down here at this first draft, then if this is on the right track I'll spend some time on that testing.
TODO:
- [x] Test on Chrome
- [x] Test on Firefox
- [ ] ~~Test on UC Android~~
- [x] Test on Edge
- [x] Test on iOS safari
- [x] Test on desktop safari
- [x] Update automated tests
- [x] Increase vertical margin
- [x] Fix "Important traits for" hover overlap
- [x] Wait for #55798 to land & merge it
2019-01-13 21:18:09 +01:00
Trevor Spiteri
aa257ec73e
Replace Heuristica with Source Serif Pro italic in rustdoc.css
2019-01-07 14:03:46 +01:00
bors
43d26b1f35
Auto merge of #57006 - GuillaumeGomez:no-crate-filter, r=QuietMisdreavus
...
Add no-crate filter option on rustdoc
@onur asked me about it so here it is!
r? @QuietMisdreavus
2018-12-29 01:22:04 +00:00
John Heitmann
34bd2b845b
Simplify foreign type rendering.
...
Simplified foreign type rendering by switching from tables to flexbox. Also, removed some seemingly extraneous elements like “ghost” spans.
Reduces element count on std::iter::Iterator by 30%.
2018-12-27 21:22:27 -08:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
Guillaume Gomez
dbcf68951c
Add no-crate filter option on rustdoc
2018-12-24 18:19:36 +01:00
bors
24667aa19d
Auto merge of #56824 - euclio:internal-apis, r=QuietMisdreavus
...
rustdoc: display rustc_private APIs as "Internal"
This PR updates the display of `rustc_private` APIs to be "Internal" instead of "Experimental", and changes the colors appropriately. It also updates the copy of the `rustc_private` feature to sound more informative and less like a compiler suggestion.
The PR additionally contains a significant refactor of the `short_stability` function to remove duplication and fix a few rendering bugs due to extra or missing spaces.
Before:

After:

2018-12-22 04:21:30 +00:00
bors
6d34ec18c7
Auto merge of #55798 - GuillaumeGomez:version-display-associated-const, r=QuietMisdreavus
...
Add version display for associated consts
Fixes #54030 .
<img width="1440" alt="screenshot 2018-11-08 at 23 57 29" src="https://user-images.githubusercontent.com/3050060/48232648-99decf00-e3b2-11e8-9f41-6bd12a161c7d.png ">
r? @QuietMisdreavus
2018-12-21 01:58:16 +00:00
Andy Russell
8d393bf797
display rustc_private APIs as "Internal"
2018-12-20 13:47:39 -05:00
John Heitmann
1182f09b1c
Fix mobile menu rendering collision with tooltip.
...
Bring the mobile-mode menu in front of the ⓘ icon.
2018-12-18 13:55:30 -08:00
Guillaume Gomez
2968a5a398
Fix DOM errors
2018-12-18 01:04:23 +01:00
Guillaume Gomez
122684d393
Improve CSS rule
2018-12-15 12:42:10 +01:00
bors
7f04a646c6
Auto merge of #56005 - GuillaumeGomez:speedup-doc-render, r=QuietMisdreavus
...
Greatly improve rustdoc rendering speed issues
Fixes #55900 .
So a few improvements here:
* we're switching to `DOMTokenList` API when available providing a replacement if it isn't (should only happen on safari and IE I think...)
* hide doc sections by default to allow the whole HTML generation to happen in the background to avoid triggering DOM redraw all the times (which killed the performances)
r? @QuietMisdreavus
2018-12-15 06:42:27 +00:00
Guillaume Gomez
bbc2654830
Fix right arrow size for crate filter
2018-12-08 16:35:51 +01:00
Guillaume Gomez
edfe2a893e
Greatly improve rustdoc rendering speed issues
2018-12-06 23:34:35 +01:00
Pietro Albini
a88feabac4
Rollup merge of #56332 - GuillaumeGomez:specifi-crate-search, r=QuietMisdreavus
...
[rustdoc] Specific crate search
Reopening of #54706 .
Fixes #54616 .
<img width="1440" alt="screenshot 2018-11-29 at 01 29 11" src="https://user-images.githubusercontent.com/3050060/49191372-979adf80-f376-11e8-963e-e4feb927c1da.png ">
r? @QuietMisdreavus
2018-12-06 07:48:50 +01:00
Pietro Albini
39d4c0caa4
Rollup merge of #56498 - GuillaumeGomez:line-numbers, r=QuietMisdreavus
...
Fix line numbers display
Thanks to @talchas for finding the bug and suggesting the solution!
r? @QuietMisdreavus
2018-12-05 23:54:37 +01:00
Pietro Albini
d07d299cba
Rollup merge of #56476 - GuillaumeGomez:invalid-line-number-match, r=QuietMisdreavus
...
Fix invalid line number match
If a code line is longer than the width, it then gets to the next line making the line number not matching it anymore.
r? @QuietMisdreavus
2018-12-05 23:54:34 +01:00
Pietro Albini
66ba6b3a66
Rollup merge of #55563 - GuillaumeGomez:doc-search-sentence, r=QuietMisdreavus
...
Improve no result found sentence in doc search
Fixes #55531 .
Look:
<img width="1440" alt="screenshot 2018-11-01 at 02 21 56" src="https://user-images.githubusercontent.com/3050060/47827257-f6236c80-dd7c-11e8-9ea9-99c8cb4b2de5.png ">
r? @QuietMisdreavus
2018-12-05 23:54:22 +01:00
Guillaume Gomez
e41e85cb5c
Fix line numbers display
2018-12-04 11:33:57 +01:00
bors
596e10fd32
Auto merge of #55707 - GuillaumeGomez:file-sidebar, r=QuietMisdreavus
...
Add source file sidebar
This is just a start currently but that gives a good overview of what it'll look like:
<img width="1440" alt="screenshot 2018-11-06 at 01 39 15" src="https://user-images.githubusercontent.com/3050060/48035592-05336180-e165-11e8-82e1-5ead0c345eb9.png ">
r? @QuietMisdreavus
2018-12-04 07:00:19 +00:00
kennytm
17f6fc78c5
Rollup merge of #56416 - GuillaumeGomez:css-body, r=QuietMisdreavus
...
Remove unneeded body class selector
r? @QuietMisdreavus
2018-12-03 18:07:13 +08:00
Guillaume Gomez
23abd182d8
Fix invalid line number match
2018-12-02 19:12:37 +01:00
Guillaume Gomez
08a6cf30f0
Remove unneeded body class selector
2018-12-01 18:20:43 +01:00
Guillaume Gomez
afe41078ad
Add arrow to the crate select box
2018-11-29 01:29:49 +01:00
Guillaume Gomez
dd717deccb
Add crate filtering
2018-11-28 19:33:33 +01:00
Lyndon Brown
c013de4f9b
rustdoc: add margin-bottom spacing to nested lists
...
set to zero meant that the nested list was squished up against
subsequent list items/paragraphs
this changes the bottom margin to .6em, same as for paragraphs
an example demonstrating the difference with screenshots is given in the
pull request
2018-11-28 16:05:43 +00:00
Guillaume Gomez
e87f8cc49b
Source sidebar improvements
2018-11-24 09:49:57 +01:00
Guillaume Gomez
93520d2ad1
Add source file sidebar
2018-11-24 09:49:57 +01:00
Guillaume Gomez
c209ed8435
Improve no result found sentence in doc search
2018-11-21 19:45:04 +01:00
Pietro Albini
12556a4b8f
Rollup merge of #55926 - cynecx:fix-rustdoc-mobile-css, r=GuillaumeGomez
...
Change sidebar selector to fix compatibility with docs.rs
Fix for #55883 .
2018-11-15 11:04:43 +01:00
cynecx
2f7b95d932
Change sidebar selector to fix compatibility with docs.rs
2018-11-13 17:23:30 +01:00
kennytm
828dd17a91
Rollup merge of #55858 - GuillaumeGomez:fixes-rustdoc-codeblocks, r=QuietMisdreavus
...
Small fixes on code blocks in rustdoc
It currently has a little margin issue with the `i` and there were js errors.
r? @QuietMisdreavus
2018-11-13 19:20:37 +08:00
Guillaume Gomez
0edc9e8395
Small fixes on code blocks in rustdoc
2018-11-10 21:58:47 +01:00