about summary refs log tree commit diff
path: root/src/librustdoc/html/static
AgeCommit message (Collapse)AuthorLines
2022-05-10Remove unused CSS ruleGuillaume Gomez-1/+0
2022-05-10Fix JS error in source code pagesGuillaume Gomez-2/+1
2022-05-09rustdoc: search result ranking fixMichael Howell-1/+1
2022-05-08Remove unused param from search.js::checkPathMichael Howell-2/+2
2022-05-08Enforce no trailing spaces with eslintGuillaume Gomez-0/+1
2022-05-08Enforce linebreak style in js source codeGuillaume Gomez-0/+4
2022-05-07Enforce quote rule for JS source codeGuillaume Gomez-52/+56
2022-05-07Change eslint rules from configuration comments to configuration filesFolyd-30/+4
2022-05-06Rollup merge of #96754 - notriddle:notriddle/impl-dups, r=GuillaumeGomezGuillaume Gomez-1/+7
rustdoc: ensure HTML/JS side implementors don't have dups Fixes #94641 Rendered: - https://notriddle.com/notriddle-rustdoc-test/impl-dups/std/iter/trait.Iterator.html - https://notriddle.com/notriddle-rustdoc-test/impl-dups/core/iter/trait.Iterator.html
2022-05-06Rollup merge of #96748 - GuillaumeGomez:reexports-in-search, r=notriddleGuillaume Gomez-0/+3
Fixes reexports in search Fixes #96681. At some point we stopped reexporting items in search so this PR fixes it. It also adds a regression test. r? ```@notriddle```
2022-05-06Rollup merge of #96590 - notriddle:notriddle/tab-bar-fn-search, ↵Guillaume Gomez-25/+49
r=GuillaumeGomez,jsha rustdoc: when running a function-signature search, tweak the tab bar # Before ![In Names (7) / In Parameters (0) / In Return types (0)](https://user-images.githubusercontent.com/1593513/166122875-ffdeafe6-8d4d-4e61-84a6-f5986b50ac35.png) # After ![In Function Signature (7)](https://user-images.githubusercontent.com/1593513/166122883-9a3d7515-3235-4ee3-8c4b-5401d109e099.png)
2022-05-06Fix reexports missing from the search indexGuillaume Gomez-0/+3
2022-05-05Rollup merge of #96741 - GuillaumeGomez:improve-settings-loading-strategy, ↵Michael Goulet-4/+4
r=jsha Improve settings loading strategy I learned about this thanks to ```@jsha``` who suggested this approach: It improves the settings loading strategy by loading CSS and JS at the same time to prevent the style to be applied afterwards on slow connections. r? ```@jsha```
2022-05-05Rollup merge of #96704 - GuillaumeGomez:rotation-animation, r=jshaMichael Goulet-0/+14
Add rotation animation on settings button when loading As discussed, I added an animation when the settings JS file is loading (I voluntarily made the timeout at the end of the `settings.js` super long so we can see what the animation looks like): https://user-images.githubusercontent.com/3050060/166693243-816a08b7-5e39-4142-acd3-686ad9950d8e.mp4 r? ````@jsha````
2022-05-05rustdoc: ensure HTML/JS side implementors don't have dupsMichael Howell-1/+7
2022-05-05Improve settings loading strategy by loading CSS and JS at the same time to ↵Guillaume Gomez-4/+4
prevent the style to be applied afterwards on slow connections
2022-05-05rustdoc: fix JS error when rendering parse errorMichael Howell-0/+4
2022-05-05rustdoc: fix keyboard shortcuts and console log on search pageMichael Howell-12/+24
2022-05-05rustdoc: change the "In Function Signatures" to context-sensitiveMichael Howell-1/+5
* If it's just `-> a`, use "In Function Return Types" * If it's just `a b`, use "In Function Parameters" * Otherwise, still use "In Function Signatures"
2022-05-05rustdoc: when running a function-signature search, tweak the tab barMichael Howell-13/+17
2022-05-05Add rotation animation on settings button when loadingGuillaume Gomez-1/+14
2022-05-05Use "strict" mode in JS scriptsGuillaume Gomez-5/+15
2022-05-04Move callback to the () => {} syntax.Folyd-112/+109
Fix lint Fix main.js Restore anonymous functions Fix Fix more
2022-05-01* Add documentation for settings page rendering functions.Guillaume Gomez-55/+65
* Improve code. * Fix some documentation argument types. * Make settings order the same as before this PR. * Change timeout to 0 so that browser will render it as fast as possible.
2022-04-30Move settings into full JSGuillaume Gomez-53/+329
2022-04-29Rollup merge of #96390 - GuillaumeGomez:es6-part2, r=notriddleDylan DPC-245/+233
Switch JS code to ES6 - part 2 Part of #93058. It's based on https://github.com/rust-lang/rust/pull/96361 so it needs to wait for it to be merged first. r? `@notriddle`
2022-04-26Remove dead code in main.jsGuillaume Gomez-23/+0
2022-04-26Migrate scrape-examples.js to ES6Guillaume Gomez-21/+24
2022-04-26Migrate storage.js to ES6Guillaume Gomez-22/+25
2022-04-26Migrate source-script to ES6Guillaume Gomez-44/+45
2022-04-26Migrate main.js to ES6Guillaume Gomez-128/+130
2022-04-26Migrate externs.js to ES6Guillaume Gomez-7/+10
2022-04-26Small JS code improvementsGuillaume Gomez-6/+5
2022-04-26Update rustdoc search parser to handle `!` correctlyGuillaume Gomez-2/+13
2022-04-26Rollup merge of #96361 - GuillaumeGomez:es6, r=notriddleGuillaume Gomez-224/+216
Switch JS code to ES6 Considering it's already quite big, I'll do the remaining files in another PR. Part of #93058. r? ``@notriddle``
2022-04-26Rollup merge of #96279 - GuillaumeGomez:remove-woff-fonts, r=camelid,jshaDylan DPC-25/+12
rustdoc: Remove .woff font files Copying `@jsha's` great comment: > Right now we ship 1.5MB of woff files in the rustdoc binary, and 1MB of woff2 files, for a total of 2.5MB. > > Per: > > https://caniuse.com/woff > https://caniuse.com/woff2 > > The only listed browser that supports woff and not woff2 is IE, which is not supported per https://github.com/rust-lang/rfcs/blob/master/text/1985-tiered-browser-support.md. > > I propose we stop shipping woff files and save 1.5MB from the rustdoc binary (and from each doc build). r? `@jsha`
2022-04-24Update settings.js to ES6Guillaume Gomez-6/+9
2022-04-24Update search.js to ES6Guillaume Gomez-218/+207
2022-04-21Remove .woff font filesGuillaume Gomez-25/+12
2022-04-20Extend `handleSingleArg` documentationGuillaume Gomez-0/+4
2022-04-18Correctly handle single `:`Guillaume Gomez-10/+6
2022-04-18Add an extra check over filter typeGuillaume Gomez-3/+30
2022-04-18Fix some corner casesGuillaume Gomez-5/+3
2022-04-18Parse idents the same way in both quote string elements and "normal" elementsGuillaume Gomez-32/+44
2022-04-18Remove unnecessary `elem.name.length === 0` since the rustdoc search eBNF ↵Guillaume Gomez-1/+1
does not allow elements without a name
2022-04-18Update the eBNF to allow generics bracket to not be closed if it's EOFGuillaume Gomez-1/+1
2022-04-18Handle separators in their own functions and fix missing handling of tabsGuillaume Gomez-3/+18
2022-04-18Improve the BNF description a bit and fix some issuesGuillaume Gomez-18/+44
2022-04-18Forbid rustdoc search query to end with ->Guillaume Gomez-0/+3
2022-04-18Add isIdentCharacter function to ensure that unexpected characters are ↵Guillaume Gomez-10/+29
handled correctly