| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2025-05-06 | Rollup merge of #140135 - GuillaumeGomez:sidebars-image, r=rustdoc | Guillaume Gomez | -21/+22 | |
| Unify sidebar buttons to use the same image Part of https://github.com/rust-lang/rust/issues/139832. The source sidebar looks like this with the new image:  You can test it [here](https://rustdoc.crud.net/imperio/sidebar-images/src/foo/foo.rs.html). r? `@notriddle` | ||||
| 2025-04-24 | Fix indent of impl docs | Guillaume Gomez | -1/+4 | |
| 2025-04-23 | Unify sidebar buttons to use the same image | Guillaume Gomez | -21/+22 | |
| 2025-04-21 | Use correct annotation for CSS pseudo elements | Guillaume Gomez | -20/+20 | |
| 2025-04-07 | Fix CSS | Guillaume Gomez | -1/+1 | |
| 2025-04-05 | Rollup merge of #139274 - lolbinarycat:rustdoc-js-less-expect-error-part5, ↵ | Stuart Cook | -46/+100 | |
| r=notriddle Rustdoc: typecheck settings.js This makes the file fully typechecked with no instances of ``````@ts-expect-error`````` and no type casts. r? `````@notriddle````` | ||||
| 2025-04-02 | rustdoc js: satisfy eslint | binarycat | -4/+4 | |
| 2025-04-02 | rustdoc: make settings checkboxes always square | binarycat | -0/+3 | |
| 2025-04-02 | settings.js: fix whitespace | binarycat | -1/+1 | |
| 2025-04-02 | settings.js: add elemContainsTarget utility function | binarycat | -6/+15 | |
| this allows us to eliminate the last 3 @ts-expect-error in this file. | ||||
| 2025-04-02 | main.js: make hideAllModals docs clearer | binarycat | -1/+1 | |
| "true" looks like a string value, `true` makes it more clear that we are talking about the actual boolean value. | ||||
| 2025-04-02 | settings.js: make top-level code typecheck | binarycat | -9/+13 | |
| With this, almost the entire file is fully typechecked, the only exception being the Element.contains(EventTarget) pattern that is used several times, those are annotated with @ts-expect-error | ||||
| 2025-04-02 | settings.js: add some null checks to buildSettingsPage | binarycat | -2/+8 | |
| 2025-04-02 | settings.js: refactor settingsBlurHandler | binarycat | -5/+14 | |
| changes: * Add type signature * Add null checks * getHelpButton and getSettingsButton are only called once, which should marginally improve performance due to less queries. unfortunatly 2 @ts-expect-error was needed, as typescript is unaware the EventTarget is likely an Element. | ||||
| 2025-04-02 | settings.js: remove dead code for adding <hr> to settings page | binarycat | -5/+0 | |
| 2025-04-02 | settings.js: add new rustdoc.Setting interface | binarycat | -17/+36 | |
| 2025-04-02 | settings.js: begin typechecking migration | binarycat | -7/+19 | |
| this also makes `changeSetting` more robust in case it somehow gets called before `main.js` has finished loading. | ||||
| 2025-03-27 | search.js: revert usage of nonundef for now (not available under test) | binarycat | -2/+3 | |
| specifically, `storage.js` is not loaded during `rustdoc-js` and `rustdoc-js-std` tests. | ||||
| 2025-03-26 | satisfy eslint | binarycat | -3/+3 | |
| 2025-03-24 | search.js: fix whitespace | binarycat | -1/+1 | |
| 2025-03-24 | search.js: give type annotation to newSolutions | binarycat | -2/+2 | |
| 2025-03-24 | search.js: give type to unifiedGenericsMgens | binarycat | -2/+1 | |
| 2025-03-24 | search.js: fix return type of unifyFunctionTypes | binarycat | -2/+1 | |
| 2025-03-24 | search.js: use @type instead of @ts-expect-error | binarycat | -5/+1 | |
| 2025-03-24 | search.js: fix signature of pushText | binarycat | -9/+5 | |
| 2025-03-24 | search.js: refactor transformResults | binarycat | -14/+27 | |
| 2025-03-24 | search.js: remove another Map.has() and @ts-expect-error | binarycat | -3/+3 | |
| 2025-03-24 | search.js(query parser): rethrow error if it isn't a string array | binarycat | -3/+7 | |
| only errors that are string arrays are intended to be shown to the user, other errors are bugs, and will be shown in the console as usual. | ||||
| 2025-03-24 | search.js: add undef2null and eliminate more @ts-expect-error | binarycat | -10/+21 | |
| 2025-03-24 | search.js: refactor handling of rawPaths in buildIndex | binarycat | -20/+22 | |
| 2025-03-24 | search.js: improve typechecking by avoiding Map.has | binarycat | -13/+8 | |
| 2025-03-24 | rustdoc js: add nonundef and use it to remove a ts-expect-error | binarycat | -5/+28 | |
| 2025-03-14 | rustdoc js: add nonnull helper and typecheck src-script.js | binarycat | -9/+70 | |
| 2025-03-10 | main.js: remove searchState from globals. | binarycat | -1/+1 | |
| 2025-03-10 | main.js: typecheck things related to window.register_type_impls | binarycat | -8/+10 | |
| 2025-03-10 | rustdoc.d.ts: add window.{register_implementors,pending_implementors} | binarycat | -3/+17 | |
| 2025-03-10 | rustdoc.d.ts: window.SIDEBAR_ITEMS may exist. | binarycat | -1/+2 | |
| 2025-03-10 | main.js: handle document.activeElement being null | binarycat | -2/+2 | |
| this is technically possible if someone sticks rustdoc in an iframe, i think? | ||||
| 2025-03-10 | main.js(isDisplayed): coerce truthy values to boolean | binarycat | -3/+2 | |
| 2025-03-10 | main.js: always refer to searchState through window.searchState | binarycat | -10/+5 | |
| 2025-03-10 | main.js: handleEscape and handleShortcut accept KeyboardEvent | binarycat | -2/+6 | |
| 2025-03-10 | main.js: give type signatures to a few helper functions | binarycat | -4/+8 | |
| 2025-03-10 | main.js: don't set mouseMovedAfterSearch, as it is never read | binarycat | -1/+0 | |
| 2025-03-10 | main.js: insertAfter needs non-root referenceNode | binarycat | -4/+1 | |
| 2025-03-04 | Rollup merge of #137981 - lolbinarycat:rustdoc-js-less-expect-error, r=notriddle | Jubilee | -45/+41 | |
| rustdoc search: increase strictness of typechecking r? `@notriddle` The signature of `makePrimitiveElement` is now more accurate. I believe the intent of the code is that `name` cannot be null if `bindingName.name` is null, and I believe typescript is expressive enough to encode this, but I'm not quite sure how, or if this would be desirable. I'm also introducing mapped types into `rustdoc.d.ts`, but I think it's worth it in order to avoid keeping two interfaces in sync. I may add more commits onto this to remove more ``@ts-expect-error`` instances. | ||||
| 2025-03-04 | search.js: remove incorrect outdated comment | binarycat | -2/+0 | |
| 2025-03-04 | search.js: give RawSearchIndexCrate.a an index signature | binarycat | -4/+2 | |
| 2025-03-04 | search.js: allow empty result arrays | binarycat | -4/+3 | |
| 2025-03-04 | search.js: give buildIndex a proper return type | binarycat | -2/+5 | |
| some of the fields of rustdoc.Row were confusing null and undefined. | ||||
| 2025-03-04 | search.js: give local `where` a type | binarycat | -2/+1 | |
