about summary refs log tree commit diff
path: root/src/librustdoc/html/static/storage.js
AgeCommit message (Collapse)AuthorLines
2020-05-26Fix eslint lintsGuillaume Gomez-2/+7
2019-11-07Remove old isHidden functionGuillaume Gomez-4/+0
2019-09-02Fix regex replacement in theme detectionGuillaume Gomez-1/+1
2019-08-30Rollup merge of #63847 - GuillaumeGomez:system-theme-detection, r=kinnisonMazdak Farrokhzad-1/+2
[rustdoc] Fix system theme detection Fixes #63830 The problem is that it returns the property "entirely" (so with the quotes in our case). Removing them fixes the issue. cc @fenhl r? @kinnison
2019-08-28Auto merge of #62941 - GuillaumeGomez:save-crate-filter, r=Mark-Simulacrumbors-1/+1
Save crate filtering on rustdoc Fixes #62929. I added a hashmap and a hash encoding for the current crate list in case you have multiple crates handling on a same website (who talked about docs.rs?!). Like that, for each context, you have the filter crate selected. r? @QuietMisdreavus
2019-08-28Save crate filtering on rustdocGuillaume Gomez-1/+1
2019-08-25Fix system theme detectionGuillaume Gomez-1/+2
2019-08-21Replaced skipStorage with saveTheme variableGuillaume Gomez-3/+3
2019-08-21take into account the system themeGuillaume Gomez-3/+13
2019-06-11Fix storage usage when disabledGuillaume Gomez-3/+1
2018-12-25Remove licensesMark Rousskov-12/+0
2018-12-16Fix invalid JS file generationGuillaume Gomez-1/+1
2018-12-06cleanupGuillaume Gomez-8/+9
2018-12-06Greatly improve rustdoc rendering speed issuesGuillaume Gomez-29/+18
2018-12-04Added a bare-bones eslint config (removing jslint)John Heitmann-0/+3
This change removes the small bit of jslint config, replacing it with eslint. I've currently configured eslint to mostly only report the more serious of lints, although there are still some style nits turned on. Upcoming changes will start fixing lints.
2018-11-24Add source file sidebarGuillaume Gomez-0/+40
2018-10-21Hide items if they use default docsGuillaume Gomez-4/+12
2018-10-16Move usableLocalStorage() above functions that make use of itRoy Wellington Ⅳ-15/+15
2018-10-15Extract localStorage tests out into a helper method; use in getCurrentValue()Roy Wellington Ⅳ-8/+20
1. Extract the tests for whether or not we have workable localStorage out into a helper method, so it can be more easily reused 2. Use it in getCurrentValue() too, for the same reasons, as suggested in code review
2018-10-14Detect if access to localStorage is forbidden by the user's browserRoy Wellington Ⅳ-0/+6
If the user's cookie/persistent storage setting forbid access to localStorage, catch the exception and abort the access. Currently, attempting to use the expand/contract links at the top of the page for structs/consts/etc. fails due to an unhandled error while accessing localStorage, if such access is forbidden, as the exception from the failed access propagates all the way out, interrupting the expand/contract. Instead, I would like to degrade gracefully; the access won't happen (the collapse/expand state won't get persisted) but the actual expanding/contracting of the item will go on to succeed. Fixes #55079
2018-04-04Fix anchors issue when everything is collapsedGuillaume Gomez-1/+2
2018-03-29Rename main theme into light themeGuillaume Gomez-1/+1
2018-03-12Fix blink when main theme is selectedGuillaume Gomez-1/+5
2018-03-05Add resource-suffix option for rustdocGuillaume Gomez-1/+3
2018-02-20Allow to not switch to a theme if it doesn't existGuillaume Gomez-3/+31
2018-02-20Change local storage name for rustdoc because of conflicts with mdbookGuillaume Gomez-1/+1
2018-01-23Fasten even more theme switchGuillaume Gomez-8/+0
2018-01-22Fasten up theme loadingGuillaume Gomez-0/+44