Commit graph

1096 commits

Author SHA1 Message Date
Folyd
b9480e74e0 Fix docs.rs svg icons size 2024-10-15 23:43:28 +08:00
Folyd
e9ecfe4453 Improve add to extension icons 2024-06-23 13:08:43 -07:00
Folyd
1014055803 Fix auto prepend file:// to offline doc path 2024-06-23 12:43:20 -07:00
Folyd
681e159d2c Fix external crates desc shards 2024-06-23 11:44:01 -07:00
Folyd
12bc6f0620 Fix searchIndex updating format 2024-06-23 11:17:28 -07:00
Folyd
1a37ed1c44 Feat std stable and nightly desc shards 2024-06-23 11:13:11 -07:00
Folyd
bda7ca3e82 Dependency injection DocSearch's searchState 2024-06-23 10:52:13 -07:00
Folyd
fd6140ac38 Fix inject script error 2024-06-23 00:15:26 -07:00
Folyd
c376f09eeb Support all stdlib crates 2024-06-23 00:10:46 -07:00
Folyd
f2705bc5e0 Fix dynamic offline mode and offline path 2024-06-22 23:22:46 -07:00
Folyd
3558333752 Fix result.others 2024-06-22 22:43:41 -07:00
Folyd
68b6d2cb57 Reinit DescShards index after new crate added 2024-06-22 22:30:59 -07:00
Folyd
f6f5da2e38 Lazy clear dropdown to avoid dropdown flash 2024-06-22 17:57:37 -07:00
Folyd
43c4e37167 Don't replace : for @crate query searching
Since rustdoc support `fn:`, `trait:` special searching
2024-06-22 17:36:43 -07:00
Folyd
4ccbf8d99a Remove legacy testings 2024-06-22 17:24:22 -07:00
Folyd
53efe34f96 Always return crate search index as Map 2024-06-22 17:18:29 -07:00
Folyd
3597c311a0
Support description shards (#285)
* Load desc shards

* Add searchState compatible js

* Bump std search index

* Feat DescShardManager

* Integrate DocSearchV2

* Store desc shards into storage

* Remove legacy DocSearch

* Fix nightly search index

* Add std desc shards

* Split desc shards setter

* Compatible with libdocrust DocSearch for searchState

* Polish desc shards index format

* Load search.js to get descShards

* Store searchIndex as json array format

* Support source mode for std docs search

* Support add new crate's searchIndex

* Move loadScript to script/lib.js

* Check crate version compatibility in docs.rs
2024-06-23 08:01:37 +08:00
Folyd
46afbd0e1d Remove rustc search statistics 2024-06-22 00:19:41 -07:00
Folyd
a6983ae342 Revert "Load search index for rustc"
abc2ec49a9
2024-06-21 22:53:30 -07:00
Folyd
a14ac8edcd Bump version to 2.0.0 2024-06-20 00:00:35 -07:00
Folyd
f0a477c659 Update core module 2024-06-19 23:05:32 -07:00
Folyd
fb4cb133e7 Get settings from async function 2024-06-15 16:33:35 -07:00
Folyd
7fe32096a5 Eagerly get offline doc path 2024-06-15 15:40:03 -07:00
Folyd
68d011e310 Add RustSearchOmnibox class 2024-06-15 14:53:33 -07:00
Folyd
2cd58ec1d6 Replace path separator for windows when set offline doc path 2024-06-14 23:13:37 -07:00
Folyd
5e48da1cb6 Merge import to export.js 2024-06-14 23:05:54 -07:00
Folyd
179c47d93b Add constants 2024-06-07 00:11:23 -07:00
Folyd
4b679bd1bc Add source code query event 2024-06-06 23:47:16 -07:00
Folyd
d9d4d02823 Move some codes to servie-worker 2024-06-06 23:34:00 -07:00
Folyd
f5b8eb2a56 Show search hint 2024-06-06 23:12:25 -07:00
Folyd
85da5da028 Distinguish omnibox extension and webpage 2024-06-06 00:23:47 -07:00
Folyd
f3cf5909fb Remove rustc docs search 2024-06-04 09:37:57 -07:00
Folyd
8fb9e0f6cc Move onMessage listener outside start function 2024-06-04 00:08:49 -07:00
Folyd
90016b2aff
Sunset rustc docs search (#281) 2024-06-04 14:53:05 +08:00
Folyd
56039cd56a Fix source code mode and levenshtein bug 2024-06-03 23:32:46 -07:00
Folyd
55b2a7ba8f Use base64 rust icon 2024-06-02 15:57:53 -07:00
Folyd
729c669ab3 Move chart functions into one file 2024-06-02 15:36:16 -07:00
Folyd
007e7bae45 Show rust icon 2024-06-02 15:23:41 -07:00
Folyd
bcf3164f8e Fix 2024-06-02 13:56:16 -07:00
Folyd
1d95e7e2c4 Migrate compat functions 2024-06-02 13:15:54 -07:00
Folyd
568f0ad863 Migrate match/dim tags 2024-06-02 13:09:32 -07:00
Folyd
49949736da Migrate Firefox version to Manifest V3. close #201 2024-06-01 16:38:32 -07:00
Folyd
77454c042e Update juice theme 2024-06-01 00:45:48 -07:00
Folyd
27b1992cb2 Update attributes index 2024-05-28 00:21:22 -07:00
Folyd
cf98c0e085 Polish search loading speed 2024-05-27 23:46:20 -07:00
Folyd
c7bc9c7a0d Add placeholder for search bar in manage page 2024-05-27 17:36:32 -07:00
Emanuel Czirai
81ccb44440
typo hihstory -> history (#279) 2024-05-28 06:03:04 +08:00
Folyd
c0a377bfad Bundle content scripts 2024-05-27 00:55:55 -07:00
Folyd
a1f06ea5ea Split IndexSetter from IndexManager 2024-05-26 23:41:35 -07:00
Folyd
00bd872add Update manifest 2024-05-26 20:09:58 -07:00