Guillaume Gomez
4aa526f809
Improve sidebar styling to make its integration easier
2019-10-01 10:32:45 +02:00
Guillaume Gomez
c076d30ce4
take into account the system theme
2019-08-21 10:08:29 +02:00
Dmitry Murzin
11a4d6ed9c
Prevent shrinking of "crate select" element on Firefox
2019-07-07 18:46:24 +03:00
Guillaume Gomez
e861efd9f9
Fix code block information icon position
2019-06-29 18:28:39 +02:00
Mazdak Farrokhzad
bf54251f90
Rollup merge of #60487 - GuillaumeGomez:fix-search-sidebar-width-colors, 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-20 23:02:57 +02:00
Mazdak Farrokhzad
daf8aca0e3
Rollup merge of #60383 - 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-20 23:02:52 +02:00
bors
a5000c5098
Auto merge of #60272 - Jakst:patch-1, r=Manishearth
...
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-19 21:36:15 +00:00
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
e2a25007be
Fix search sidebar width when no crate select is present
2019-05-02 23:31:50 +02:00
Guillaume Gomez
87d1c17683
Cleanup media queries
2019-04-30 10:06:21 +02:00
Guillaume Gomez
67ca448dac
Improve file sidebar in source code view page on mobile
2019-04-30 10:03:38 +02:00
Guillaume Gomez
10b9370286
Fix line number display in source view
2019-04-29 23:13:30 +02:00
Guillaume Gomez
9db0fd7fd6
Fix image position and display
2019-04-29 13:27:02 +02:00
Jakob Ståhl
184e3a3f92
Wrap logo in container to prevent layout reflow
2019-04-29 10:38:58 +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