about summary refs log tree commit diff
path: root/src/librustdoc/html/static
AgeCommit message (Collapse)AuthorLines
2021-07-07Clean up rustdoc static filesGuillaume Gomez-0/+0
2021-07-05Auto merge of #86663 - fee1-dead:use-rustdoc-css, r=GuillaumeGomezbors-3/+2
Use rustdoc.css for error index Closes #86512.
2021-07-01fix(rustdoc): generics searchMichael Howell-18/+62
This commit adds a test case for generics, re-adds generics data to the search index, and tweaks function indexing to use less space in JSON. This reverts commit 14ca89446c076bcf484d3d05bd991a4b7985a409.
2021-07-01Rollup merge of #86746 - GuillaumeGomez:query-type-filter, r=notriddleYuki Okushi-1/+2
Fix rustdoc query type filter I realized while reviewing #86659 that the type filter was broken on search so I'd prefer it to get merged before merging #86659. r? `@notriddle`
2021-06-30Enforce search typed queriesGuillaume Gomez-1/+2
2021-06-30Auto merge of #86650 - GuillaumeGomez:fix-boldness, r=Nemo157bors-3/+9
Fix boldness (put it back where needed) I realized that I created a GUI test that wasn't run because it had ".rs" extension instead of ".goml" so I moved its content into `font-weight.goml` (since it was checking font weight).
2021-06-30Fix some style regressions due to normalize.css 8Yuki Okushi-2/+23
2021-06-30Upgrade normalize.css to v8.0.1Yuki Okushi-1/+1
2021-06-28Move stab_tags to symbol in tablesStefan Schindler-1/+1
2021-06-28Auto merge of #85876 - jeanlucthumm:master, r=GuillaumeGomezbors-4/+4
Add `go_to_first` query param to jump to first result Fixes #84214 Note that while the issue initially wanted to navigate to an entry on exact match, the discussion settled on using a query parameter (`&go_to_first=true`) instead, regardless of exact or partial match. Demonstration is attached https://user-images.githubusercontent.com/4934853/120258768-7ff28980-c247-11eb-8c8f-1a2ceb242788.mp4
2021-06-27Auto merge of #86589 - JohnTitor:add-triangle-to-summary, r=jshabors-4/+6
Show triangle on the "Details" disclosure element in all cases Re-submission of #82805, fixes the style issue by applying the same margin as `<p>`. <details><summary>Before</summary> ![before 1](https://user-images.githubusercontent.com/25030997/123215032-e4c99880-d502-11eb-9ccc-6df58f3a6b0b.png) ![before 2](https://user-images.githubusercontent.com/25030997/123215035-e5622f00-d502-11eb-9275-6c6dfcfdf72e.png) </details> <details><summary>After</summary> ![after 1](https://user-images.githubusercontent.com/25030997/123215037-e5fac580-d502-11eb-9b49-c99d1eafb1b4.png) ![after 2](https://user-images.githubusercontent.com/25030997/123215040-e5fac580-d502-11eb-8afc-ab713d3dc658.png) </details> r? `@GuillaumeGomez`
2021-06-27Add go_to_first boolean query param to immeidately jump to the first search ↵Jean-Luc Thumm-4/+4
result
2021-06-27Use rustdoc.css for error indexDeadbeef-3/+2
2021-06-27Add FIXME commentYuki Okushi-0/+1
2021-06-26Fix font weight on types, methods and associated types/constsGuillaume Gomez-3/+9
2021-06-26Auto merge of #86586 - Smittyvb:https-everywhere, r=petrochenkovbors-1/+1
Use HTTPS links where possible While looking at #86583, I wondered how many other (insecure) HTTP links were in `rustc`. This changes most other `http` links to `https`. While most of the links are in comments or documentation, there are a few other HTTP links that are used by CI that are changed to HTTPS. Notes: - I didn't change any to or in licences - Some links don't support HTTPS :( - Some `http` links were dead, in those cases I upgraded them to their new places (all of which used HTTPS)
2021-06-25Show triangle on the "Details" disclosure element in all casesYuki Okushi-4/+5
Co-authored-by: Miguel Ojeda <ojeda@kernel.org>
2021-06-24Migrate from custom elements to divs with classes to be compatible with safariStefan Schindler-8/+8
2021-06-24Hide Crate Version on narrow ScreensStefan Schindler-2/+17
2021-06-24Implement Desktop and Mobile version with gridlayoutStefan Schindler-1/+32
* implement sans-serif #85621
2021-06-23Use HTTPS links where possibleSmitty-1/+1
2021-06-23Fix search filter updateGuillaume Gomez-0/+4
2021-06-22Rollup merge of #86402 - tspiteri:source-woff2, r=jshaYuki Okushi-11/+24
rustdoc: add optional woff2 versions of Source Serif and Source Code This provides woff2 versions of Source Serif and Source Code similar to how #82545 provides woff2 versions of Fira Sans. The total byte count for the six files (three for each font family) is reduced by 25% from 476 KiB to 358 KiB.
2021-06-22Rollup merge of #86274 - alexander-melentyev:spaces, r=bjorn3Yuki Okushi-2/+2
Spaces
2021-06-21Delete spacesAlexander Melentyev-2/+2
2021-06-19Rollup merge of #86370 - ↵Yuki Okushi-0/+6
matteo-briani:fix-rustdoc-stabilized-versions-layout, r=GuillaumeGomez Fix rustdoc stabilized versions layout Fixes #86342 r? `@GuillaumeGomez`
2021-06-17include reference to woff2 files in COPYRIGHT.txtTrevor Spiteri-5/+9
2021-06-17rustdoc: add optional woff2 versions of Source Serif and Source CodeTrevor Spiteri-6/+15
2021-06-17Fix rustdoc stabilized versions layoutMatteo Briani-0/+6
2021-06-16Fix target highlighting in rustdoc.Jacob Hoffman-Andrews-3/+16
Also factor out outer_version and const_outer_version into render_rightside.
2021-06-16Factor out render_rightsideJacob Hoffman-Andrews-8/+0
This covers rendering of stability_since and the srclink across methods and trait implementations, so their DOM representation is consistent.
2021-06-16Make portability part of the summary.Jacob Hoffman-Andrews-9/+3
That means it will be visible under "Implementors" on trait pages, and under "Implementations" on struct/enum pages, even when all methods are collapsed. Switch to a float layout for rightside elements.
2021-06-16Remove methods under Implementors on trait pagesJacob Hoffman-Andrews-5/+0
These were hidden by default, and duplicated information already on the page anyhow. Also remove the "Auto-hide trait implementors of a trait" setting, which is not needed anymore.
2021-06-16Open trait implementations' toggles by default.Jacob Hoffman-Andrews-7/+7
This makes it possible to use Ctrl-F to find methods defined in traits.
2021-06-13Fix font-weightGuillaume Gomez-3/+3
2021-06-08Rollup merge of #86095 - GuillaumeGomez:search-description-codeblock, r=jshaYuki Okushi-1/+1
Search description codeblock The codeblocks are not displayed correctly: ![Screenshot from 2021-06-07 11-11-53](https://user-images.githubusercontent.com/3050060/120991915-5fb05680-c782-11eb-9b32-973a64b1f631.png) This PR interprets the HTML correctly (and still prevent invalid HTML because of how it inserts it): ![Screenshot from 2021-06-07 11-12-00](https://user-images.githubusercontent.com/3050060/120991919-6048ed00-c782-11eb-8ac5-c3aa6508bc8b.png) r? ```@jsha```
2021-06-08Rollup merge of #86078 - GuillaumeGomez:type-page-font-weight, r=jshaYuki Okushi-1/+1
Type page font weight Fixes https://github.com/rust-lang/rust/issues/86069. r? ```@jsha```
2021-06-07Fix integration of codeblocks in search result descriptionGuillaume Gomez-1/+1
2021-06-06Fix invalid weight for type pagesGuillaume Gomez-1/+1
2021-06-05Fix display for search resultsGuillaume Gomez-0/+2
2021-06-03Auto merge of #84834 - GuillaumeGomez:sidebar-unification, r=jshabors-53/+57
Sidebar unification This PR does a few things: * Put crates list at all levels (before, it was only on the "top" items) * Fix bug in module sidebar: the list of items was from the parent module. The other changes (on bootstrap mostly) were to allow to generate multiple crates in a same folder so that we can ensure that clicking on the crates in the sidebar works as expected. I added a rustdoc-gui test to ensure everything is where it should be. r? `@jyn514`
2021-06-02Replace h3 for notable traits with divGuillaume Gomez-15/+23
2021-06-02Remove data-level selectors from CSS.Jacob Hoffman-Andrews-71/+13
2021-06-01Remove invalid usage of aria-levelGuillaume Gomez-18/+18
2021-06-01Replace h3 and h4 containing invalid DOMGuillaume Gomez-34/+75
2021-05-31Fix details rustdoc toggle for blanket implIvan Tham-2/+1
In the meantime, allow all of the details to have the same top.
2021-05-31Improve display of the separation between page items and siblings in the sidebarGuillaume Gomez-1/+4
2021-05-31Only list crates on the crate pageGuillaume Gomez-1/+5
2021-05-31Remove unneeded file to load sidebar items at crate levelGuillaume Gomez-2/+0
2021-05-31* Put crates list at all levelsGuillaume Gomez-50/+49
* Fix bug in module sidebar: the list of items was from the parent module