| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2025-07-19 | Add code comment explaining better what `Row.name` is for doc aliases | Guillaume Gomez | -0/+2 | |
| 2025-07-16 | Make aliases search support partial matching | Guillaume Gomez | -73/+82 | |
| 2025-07-03 | setup CI and tidy to use typos for spellchecking and fix few typos | klensy | -2/+2 | |
| 2025-06-27 | Rollup merge of #142270 - lolbinarycat:rustdoc-search-Results-type, ↵ | Guillaume Gomez | -77/+43 | |
| r=GuillaumeGomez Rustdoc js: even more typechecking improvements I noticed some oddities when I went to start working on type aliases, so I've gone and cleaned up a bunch of stuff. Notably `fullId` was nearly always an integer in practice, but tsc was being told it should be a string. r? ``@notriddle`` | ||||
| 2025-06-26 | rustdoc js: several typechecking improvments | binarycat | -77/+43 | |
| non-exhaustive list of changes: * rustdoc.Results has a max_dist field * improve typechecking around pathDist and addIntoResults * give handleNameSearch a type signature * typecheck sortQ * currentCrate is string and not optional * searchState is referenced as a global, not through window | ||||
| 2025-06-24 | Rollup merge of #142354 - gstjepan2:firefox_copy_paste_issue, r=GuillaumeGomez | Guillaume Gomez | -1/+29 | |
| Fixes firefox copy paste issue | ||||
| 2025-06-23 | Fixes firefox copy paste issue | gstjepan2 | -1/+29 | |
| 2025-06-20 | Rollup merge of #142497 - GuillaumeGomez:fix-random-search-failure, ↵ | Trevor Gross | -37/+41 | |
| r=lolbinarycat Fix random failure when JS code is executed when the whole file was not read yet Very randomly (and rarely), when I arrived on a page with `?search=something` in the URL, I got this error:  Moving the `initSearch` function at the bottom to ensure everything has been loaded fixes the issue. PS: Sorry for the noise. Pushed to the wrong branch and https://github.com/rust-lang/rust/pull/142496 closed. >< | ||||
| 2025-06-17 | Rollup merge of #142618 - GuillaumeGomez:eslint-no-console, r=lolbinarycat | Jacob Pratt | -0/+1 | |
| Lint about `console` calls in rustdoc JS As discussed [here](https://github.com/rust-lang/rust/pull/142100#discussion_r2151764395), this PR enforces that `console` is not used in rustdoc JS by default. cc `@lolbinarycat` | ||||
| 2025-06-17 | Lint about `console` calls in rustdoc JS | Guillaume Gomez | -0/+1 | |
| 2025-06-16 | rustdoc: make srcIndex no longer a global variable | binarycat | -8/+7 | |
| this is one-time initialization data, it can just be a function parameter. we also move the json parsing into createSrcSidebar to save a few bytes. | ||||
| 2025-06-16 | Add comment to prevent having code other than `initSearch` at the end of ↵ | Guillaume Gomez | -0/+4 | |
| `search.js` | ||||
| 2025-06-14 | Fix random failure when JS code is executed when the whole file was not read yet | Guillaume Gomez | -37/+37 | |
| 2025-05-10 | rustdoc: Fix links in trait impl docs | SpecificProtagonist | -1/+3 | |
| 2025-04-02 | rustdoc js: satisfy eslint | binarycat | -4/+4 | |
| 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 | |
