Commit graph

1082 commits

Author SHA1 Message Date
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
Folyd
55d0057266 Integrate omnibox search into manage page 2024-05-26 17:02:53 -07:00
Folyd
3879fc9c95 Remove unnecessary js module file declaration 2024-05-26 16:38:01 -07:00
Folyd
88b9fd197a Fix crates export 2024-05-26 16:11:13 -07:00
Folyd
8b07c6b695 Fix import path 2024-05-26 15:58:35 -07:00
Folyd
bd7d3abe02 Migrate index to ESM 2024-05-26 15:51:11 -07:00
Folyd
fedf88fcdb Migrate manage pages to ESM 2024-05-26 15:39:15 -07:00
Folyd
65fc7cad8d Migrate to ESM 2024-05-26 00:47:23 -07:00
Folyd
d787033b7a Remove legacy code 2024-05-25 16:33:14 -07:00
Folyd
98c6f74ea6 Bump minifier to 0.3 2024-04-28 23:13:54 -07:00
Folyd
854e416120 Use db-dump crate to get top crates 2024-04-28 23:06:01 -07:00
Folyd
d2ddecd8f5 Update mange page 2024-04-14 17:11:35 -07:00
Folyd
5b9561b859 Fix optional dependency nowrap, close #274 2024-04-14 17:00:38 -07:00
Scallop Ye
cfe8d20d0e
Fix crate indexing by upgrading item types for old crate doc (#277) 2024-04-15 07:34:22 +08:00
Benedikt Werner
2e4b0c25f7
Fix docs.rs TOC if headings contain inline code (#278)
Headings that contain inline code have more than two child nodes since each inline code and text between them is a separate child, so only taking the node value from the second child is not enough. `header.innerText` gets the complete rendered text of the whole heading across all children.
2024-04-12 23:23:03 -07:00