Commit graph

1106 commits

Author SHA1 Message Date
Folyd
59953b5fcf Add extension id for firefox 2024-10-16 15:18:49 +08:00
Folyd
2d2916975c Release version 2.0.0 2024-10-16 14:06:52 +08:00
Folyd
55b39ff79b Update latest index 2024-10-16 13:47:13 +08:00
Folyd
de5b322eea Fix lint task 2024-10-16 12:27:41 +08:00
Folyd
bcfc93f5d7 Revert "Filter out aws sdk crates"
2acd9ac201
2024-10-16 12:00:12 +08:00
Folyd
1cc6a4e1bd Fix check crate svg icon 2024-10-16 11:52:51 +08:00
Folyd
e37d206e62 Link to query.rs 2024-10-16 11:41:15 +08:00
Folyd
2acd9ac201 Filter out aws sdk crates 2024-10-16 11:39:31 +08:00
Folyd
a09c271b55 Fix docs.rs svg icons 2024-10-16 11:35:08 +08:00
Folyd
5ed224d361 Update latest search core 2024-10-16 01:04:11 +08:00
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