about summary refs log tree commit diff
path: root/src/librustdoc/html/static
AgeCommit message (Collapse)AuthorLines
2022-06-03Add "no-self-compare" eslint ruleGuillaume Gomez-0/+1
2022-06-03Add "no-import-assign" eslint ruleGuillaume Gomez-0/+1
2022-06-03Add "no-invalid-regexp" eslint ruleGuillaume Gomez-0/+1
2022-06-03Add "no-fallthrough" eslint ruleGuillaume Gomez-0/+1
2022-05-31Fix theme checksGuillaume Gomez-0/+3
2022-05-31Display empty impl blocks if they have documentationsGuillaume Gomez-1/+4
2022-05-31Rollup merge of #97089 - GuillaumeGomez:improve-settings-theme-display, r=jshaDylan DPC-47/+117
Improve settings theme display This is a follow-up of #96958. In this PR, I changed how the theme radio buttons are displayed and improved their look as well. It now looks like this: ![Screenshot from 2022-05-17 20-46-20](https://user-images.githubusercontent.com/3050060/168887703-a01e3bd5-9644-4012-ac11-2ae7bacd6be6.png) ![Screenshot from 2022-05-17 20-46-12](https://user-images.githubusercontent.com/3050060/168887707-132f8b2d-1163-462f-b7dd-f861121bdee7.png) You can test it [here](https://rustdoc.crud.net/imperio/improve-settings-theme-display/doc/foo/index.html). r? `@jsha`
2022-05-30Fix invalid line number computation when clicking on something else than a ↵Guillaume Gomez-0/+4
line number
2022-05-30Fix display of `<details>`/`<summary>` in doc blocksGuillaume Gomez-10/+3
2022-05-30Improve display of `<details>` in doc blocksGuillaume Gomez-2/+14
2022-05-30Move theme rules out of settings.cssGuillaume Gomez-16/+39
2022-05-30Improve display of settings radio buttonsGuillaume Gomez-31/+78
2022-05-29Add "no-ex-assign" eslint ruleGuillaume Gomez-0/+1
2022-05-29Add "no-duplicate-case" eslint ruleGuillaume Gomez-0/+1
2022-05-29Add "no-dupe-keys" eslint ruleGuillaume Gomez-0/+1
2022-05-29Add "no-dupe-else-if" eslint ruleGuillaume Gomez-0/+1
2022-05-29Add "no-dup-args" eslint ruleGuillaume Gomez-0/+1
2022-05-29Add "no-debugger" eslint ruleGuillaume Gomez-0/+1
2022-05-29Add "no-const-assign" eslint ruleGuillaume Gomez-0/+1
2022-05-27Add "eqeqeq" eslint ruleGuillaume Gomez-6/+7
2022-05-27Add "no-unused-vars" eslint ruleGuillaume Gomez-0/+7
2022-05-27Add "arrow-parens" eslint ruleGuillaume Gomez-0/+1
2022-05-26Rollup merge of #97394 - GuillaumeGomez:more-eslint-rules, r=notriddleGuillaume Gomez-7/+14
Add more eslint rules This PR adds more eslint rules. Here are the explanations for each of them: * [space-infix-ops](https://eslint.org/docs/rules/space-infix-ops) * [space-before-function-paren](https://eslint.org/docs/rules/space-before-function-paren) * [space-before-blocks](https://eslint.org/docs/rules/space-before-blocks) * [comma-dangle](https://eslint.org/docs/rules/comma-dangle) * [comma-style](https://eslint.org/docs/rules/comma-style) * [max-len](https://eslint.org/docs/rules/max-len) * [eol-last](https://eslint.org/docs/rules/eol-last) r? `@notriddle`
2022-05-26Rollup merge of #97317 - GuillaumeGomez:gui-settings-text-click, r=jshaGuillaume Gomez-36/+39
Allow to click on setting text You can test it [here](https://rustdoc.crud.net/imperio/gui-settings-text-click/doc/foo/index.html). This PR allows to click on the text alongside the toggle to change it. r? `@jsha`
2022-05-25Add new eslint rule "eol-last"Guillaume Gomez-0/+1
2022-05-25Add new eslint rule "max-len"Guillaume Gomez-0/+1
2022-05-25Add new eslint rule "comma-style"Guillaume Gomez-0/+1
2022-05-25Add new eslint rule "comma-dangle"Guillaume Gomez-0/+1
2022-05-25Add new eslint rule "space-before-blocks"Guillaume Gomez-0/+1
2022-05-25Add new eslint rule "space-before-function-paren"Guillaume Gomez-7/+8
2022-05-25Add eslint rule "space-infix-ops"Guillaume Gomez-0/+1
2022-05-24Remove unused brush imageGuillaume Gomez-1/+0
2022-05-24Allow to click on toggle text to update itGuillaume Gomez-36/+39
2022-05-22Add new eslint rule to prevent whitespace before function call parenGuillaume Gomez-0/+1
2022-05-20Add eslint key-spacing checkGuillaume Gomez-0/+4
2022-05-20Add eslint arrow-spacing checkGuillaume Gomez-0/+4
2022-05-19Add new lint to enforce whitespace after keywordsGuillaume Gomez-2/+6
2022-05-18Move some DOM generation into the HTML settings file directlyGuillaume Gomez-16/+2
2022-05-18Rollup merge of #97113 - GuillaumeGomez:search-ui-fixes, r=notriddleYuki Okushi-8/+8
Search GUI fixes The first fix is about the duplicated "in": ![Screenshot from 2022-05-17 13-25-53](https://user-images.githubusercontent.com/3050060/168814186-a4e9064f-4325-469c-8bf6-46ea2737a24f.png) The second fix is about the `<select>` broken style: ![Screenshot from 2022-05-17 13-37-03](https://user-images.githubusercontent.com/3050060/168814182-b1c5ae66-d8cf-4fd5-a227-5aa8cd8453ab.png) ![Screenshot from 2022-05-17 13-36-55](https://user-images.githubusercontent.com/3050060/168814184-be9e56f8-fad4-477c-899e-9abff4d4910c.png) You can test it [here](https://rustdoc.crud.net/imperio/search-ui-fixes/doc/foo/index.html?search=test). r? `@notriddle`
2022-05-17rustdoc: make search.js a moduleJacob Hoffman-Andrews-51/+66
Previously, search.js relied on the DOM and the `window` object. It can now be loaded in the absence of the DOM, for instance by Node. The same is true of search-index.js. This allows removing a lot of code from src/tools/rustdoc-js/tester.js that tried to parse search.js and extract specific functions that were needed for testing.
2022-05-17Fix display of search crate filter selectGuillaume Gomez-7/+7
2022-05-17Fix duplicated "in" in the search result textGuillaume Gomez-1/+1
2022-05-15Add new eslint rule about brace styleGuillaume Gomez-33/+57
2022-05-14Remove theme picker buttonGuillaume Gomez-186/+12
2022-05-14Improve settings menu displayGuillaume Gomez-28/+105
2022-05-12rustdoc: fix GUI crash when searching for magic JS property valuesMichael Howell-2/+2
2022-05-12Rollup merge of #96939 - GuillaumeGomez:settings-css, r=notriddleMatthias Krüger-36/+0
Fix settings page CSS In https://github.com/rust-lang/rust/pull/96741, I moved the CSS loading outside of `settings.js`. The result was that on the settings page, there isn't the settings CSS anymore: ![Screenshot from 2022-05-11 11-09-24](https://user-images.githubusercontent.com/3050060/167817969-6750931b-3e6e-4178-b5a9-ee3851e983be.png) I also used this opportunity to remove unused CSS rules (we don't have `<select>` elements anymore in the settings). cc `@jsha` r? `@notriddle`
2022-05-11Remove unused CSS settings rulesGuillaume Gomez-36/+0
2022-05-11Rollup merge of #96900 - GuillaumeGomez:fix-js-error, r=notriddleYuki Okushi-3/+1
Fix js error On the source code pages, we get a JS error: ![Screenshot from 2022-05-10 16-26-53](https://user-images.githubusercontent.com/3050060/167656292-51e0b0e9-6b0c-4f94-82e0-dd8fb77adf52.png) It's fixed in the first commit. The second one is removing an unused CSS rule and the third one is a little cleanup of a GUI test. cc ``@jsha`` r? ``@notriddle``
2022-05-11Rollup merge of #96879 - notriddle:notriddle/search-ranking, r=GuillaumeGomezYuki Okushi-1/+1
rustdoc: search result ranking fix # Before ![image](https://user-images.githubusercontent.com/1593513/167477286-91049761-67f9-4a73-8fb7-09dbb19ca76c.png) # After ![image](https://user-images.githubusercontent.com/1593513/167477345-6733bc0f-4bb2-4625-9f7f-094031e36414.png)