Commit graph

481 commits

Author SHA1 Message Date
Folyd
36e2170ea9 Refractor search statistics page (finer granularity for search metrics) 2020-11-21 18:48:40 +08:00
Folyd
d444ef9d3b Replace crates.io with docs.rs as the default search for ! sign 2020-11-21 18:46:45 +08:00
Folyd
afc7c6c50b Add Rust performance book 2020-11-17 22:57:01 +08:00
Folyd
313929ace1 Add cargo subcommands index and script file 2020-11-16 16:50:46 +08:00
Folyd
808add65f6 Add :cargo command 2020-11-16 16:15:44 +08:00
Folyd
660efe7c16 Add Rust chalk book 2020-11-15 18:38:01 +08:00
Folyd
5b2445f6df Fix #84, feature flags not working in some crate's docs.rs page 2020-11-10 09:20:10 +08:00
Folyd
9e3847e3c7 Add new are we yet websites 2020-11-03 11:37:31 +08:00
Folyd
e84a4e0ca7 Remove alloc crate from std search index 2020-10-31 10:42:13 +08:00
Folyd
71de673c0e Fix docs.rs feature flags inject css selector issus 2020-10-29 18:34:36 +08:00
Folyd
fad000b7b8 Discard index localStorage adoption, use chrome.storage API instead as localStorage's 5M size limit 2020-10-27 17:58:15 +08:00
Folyd
b84cd3907a Trim string quote for caniuse value 2020-10-27 11:29:20 +08:00
Folyd
40ff8b6dfd Support configure auto index updating 2020-10-27 00:06:00 +08:00
Folyd
55419a9bea Update caniuse index 2020-10-26 17:37:37 +08:00
Folyd
550198103f Fix caniuse duplicate flag search issues 2020-10-26 16:16:35 +08:00
Folyd
635225a339 Improve caniuse search user experience 2020-10-23 17:52:49 +08:00
Folyd
66256c064a Support update commands index 2020-10-23 16:09:22 +08:00
Folyd
48a92a616b Refractor commands index management 2020-10-23 15:46:55 +08:00
Folyd
bb5d03971c Update index files 2020-10-23 14:54:39 +08:00
Folyd
3903ba6577 Polish caniuse search code 2020-10-23 13:56:56 +08:00
Folyd
0a9b113e28 Ignore non-markdown files (such as version.toml) when building caniuse index 2020-10-23 13:56:26 +08:00
Folyd
3a120b50c8 Complete update index feature 2020-10-22 13:44:04 +08:00
Folyd
f1a4373496 Add adaptive classes to docs.rs to fix extension menu UI compatibility 2020-10-22 10:20:48 +08:00
Folyd
8e2416bfad Fix Add to extension button position to fit docs.rs new style 2020-10-22 00:09:29 +08:00
Folyd
1f41162c8b Adjust feature flags menu position to fit the docs.rs new header bar style 2020-10-21 23:46:06 +08:00
Folyd
ce37e45080 Listen index-update events 2020-10-15 22:27:31 +08:00
Folyd
c63153fea0 Get crate mapping from IndexManager 2020-10-15 21:53:44 +08:00
Folyd
bc866fa857 Move StatsCommand to core submodule 2020-10-15 21:16:55 +08:00
Folyd
241d244b57 Remove open popup page to update latest crates index code 2020-10-14 22:01:19 +08:00
Folyd
fe6e662dad Make action name more explicit 2020-10-14 21:27:38 +08:00
Folyd
6216ecb9bd Add IndexManager class 2020-10-13 12:09:36 +08:00
Folyd
d82e1bb81d Update caniuse help message and stats strategy 2020-10-11 18:02:20 +08:00
Folyd
c6069db65b Add :update command 2020-10-11 17:54:40 +08:00
LOU Xun
623e2bb790
Add Rust binary to update caniuse.rs index
Also revamp descriptions
2020-10-05 16:22:38 +00:00
LOU Xun
e246a54351
Unset defaultSearch for caniuse queries 2020-10-05 10:08:11 +00:00
LOU Xun
758003b2b6
Initial impl. for caniuse.rs integration 2020-10-02 22:19:51 +00:00
Folyd
45ff7e306b Add Are we IPFS yet 2020-09-25 18:29:04 +08:00
Folyd
de6825ebb9 Add :stats command 2020-09-23 18:56:32 +08:00
Folyd
553469fa84 Fix docs.rs svg icons missing issue 2020-09-23 18:29:17 +08:00
Folyd
7b9ce0f752 Handle onEmptyNavigate event 2020-09-10 17:06:42 +08:00
Folyd
9e49470426 Improve stable version badge 2020-09-09 19:02:15 +08:00
Folyd
df6f9761d5 Support sync stable/nightly std search index automatically 2020-09-09 18:50:24 +08:00
Folyd
804890f8c6 Check version between localStorage and today to ensure update search index once a day 2020-09-09 18:30:33 +08:00
Folyd
2d31895243 Improve std docs content script injection 2020-09-09 17:46:04 +08:00
Folyd
0c207968b7 Inject script to stable std docs page to get the latest search index 2020-09-09 17:29:01 +08:00
Folyd
19f2ae91df Remove deduplicate property 2020-09-03 10:54:36 +08:00
Folyd
3a53eea486 Bump search index to v1.46.0, release v0.11 2020-08-28 10:20:10 +08:00
Folyd
fd408e22eb Update the latest attribute index 2020-08-28 09:58:44 +08:00
Folyd
fe6fd12b3a Move toast to core submodule 2020-08-27 18:51:15 +08:00
Folyd
addecd830e Update some index files 2020-08-27 17:03:43 +08:00
Folyd
ea65f50adb Fix nightly docs onAppend search issue 2020-08-26 17:32:31 +08:00
Folyd
e0630caa21 Remind user to open nightly docs before perform nightly search 2020-08-26 17:17:43 +08:00
Folyd
494fc14f9c Change :help command content to prefix 2020-08-26 16:32:29 +08:00
Folyd
b465f576be Update :help command 2020-08-25 17:58:36 +08:00
Folyd
75dac650eb Add nightly tag for nightly docs search result 2020-08-21 15:55:02 +08:00
Folyd
b401b24bd0 Complete nightly docs search features. #73 2020-08-21 15:21:04 +08:00
Folyd
063499f6da Improve error code regex 2020-08-21 14:36:56 +08:00
Folyd
c4d0ed6bef Always sync nightly docs for each page view 2020-08-21 14:18:23 +08:00
Folyd
756b96dca3 Add nightly search index 2020-08-21 11:27:48 +08:00
Folyd
a42bb973e8 Update url to rust.extension.sh 🎉🎉 2020-08-19 16:16:50 +08:00
Folyd
ca594ded49 Update attributes index 2020-08-06 12:39:10 +08:00
Folyd
1d5223193d Add :mirror command 2020-08-06 12:22:25 +08:00
Folyd
5a5821dc98 Setup adding nightly docs search index 2020-07-24 17:10:48 +08:00
Folyd
fc7b191f2d Update books, lables, and lints index 2020-07-22 19:44:42 +08:00
Folyd
edcf7cd727 Bump search index to v1.45.0 2020-07-22 19:40:08 +08:00
Folyd
f295c70962 Change extension/core to symbolic link 2020-07-01 22:57:25 +08:00
Folyd
0918327b0a Add commands index 2020-06-21 12:12:13 +08:00
Folyd
3553ebb0a6 Change book, yet and tool to SimpleCommand 2020-06-21 12:08:38 +08:00
Folyd
b58df9dbc1 Fix variable typo 2020-06-18 21:06:03 +08:00
Folyd
c1aad16539 Update latest index files 2020-06-05 08:38:04 +08:00
Folyd
dfa95a3701
Merge pull request #67 from shwin0901/master
Fix @ query regexp bug
2020-06-04 21:18:43 +08:00
shwin0901
8e78679c35 Fix @ query regexp bug 2020-06-04 21:16:12 +08:00
Folyd
c729f1bc2f Update readme and version 2020-06-04 16:30:32 +08:00
Folyd
c3793186c8 Keep docs search max levenshtein distance to 2 2020-06-04 11:50:21 +08:00
Folyd
bb722a9357 Error code search return object directly to fix delay format compatibility 2020-06-04 11:14:29 +08:00
shwin0901
46c68c0fe6 Adjust redirect page's directory 2020-06-03 23:50:30 +08:00
shwin0901
bbc9b15f1b Optimize heatmap month ui 2020-06-03 22:31:10 +08:00
shwin0901
8820662fef Refix calendar heat map month overlap bug 2020-06-01 22:44:47 +08:00
shwin0901
882a76496c Add transparence for stats tooltip 2020-05-31 21:53:10 +08:00
Folyd
222365afe8 Optimize popup and stats page UI 2020-05-31 12:07:30 +08:00
shwin0901
1e3b69f0ec Show different appended search url for different ! query 2020-05-31 11:01:04 +08:00
shwin0901
a8d402656b Add info icon 2020-05-31 00:32:44 +08:00
shwin0901
fc573e1441 Use balloon.css to clarify stats metrics 2020-05-30 23:38:02 +08:00
Folyd
85aeee57f9
Merge pull request #58 from shwin0901/master
Distinguish crate name from the crates.io search path
2020-05-30 15:39:04 +08:00
shwin0901
321aad93c6 Distinguish crate name from the crates.io search path 2020-05-30 15:27:42 +08:00
Folyd
b10dcd52c4 Crates search url support custom between crates.io and lib.rs 2020-05-30 15:10:55 +08:00
Folyd
c7d80d4bf5 Improve naming things 2020-05-30 00:14:27 +08:00
Folyd
185b7fa25e Update README.md 2020-05-29 23:55:56 +08:00
shwin0901
515b669407 Fix new URL with invalid format issue 2020-05-29 23:27:27 +08:00
shwin0901
f030d08d80 Exclude crates.io search URL from top searching crates 2020-05-29 14:33:20 +08:00
shwin0901
5e7b436bda Fix repository mode not be included in top crates searchings bug 2020-05-29 11:44:07 +08:00
shwin0901
cd6786738e Fix zero history bug 2020-05-28 23:45:32 +08:00
shwin0901
6c2e87c06c Improve searching stats ui 2020-05-28 23:32:27 +08:00
shwin0901
de454df56c Only count the last week history statistics 2020-05-28 23:13:56 +08:00
shwin0901
b499410ab3 Fix ! prefix query incorrect description bug 2020-05-28 15:04:54 +08:00
shwin0901
fea2cef45f Merge branch 'feature-stats-css' 2020-05-28 12:20:18 +08:00
shwin0901
485a6f487d Add Statistics page entry link 2020-05-28 12:19:38 +08:00
shwin0901
08297719ef Fix firefox redirect bug 2020-05-28 12:19:37 +08:00
shwin0901
40084ddf95 Improve status css 2020-05-27 23:59:10 +08:00
shwin0901
67c9155616 Add Statistics page entry link 2020-05-27 23:26:07 +08:00
shwin0901
78957994f2 Fix firefox redirect bug 2020-05-27 23:16:59 +08:00
Folyd
83f58def12 Fix tide(~) search cause incorrect top crates data stats bug 2020-05-27 00:21:16 +08:00
shwin0901
ee09f850ca Add redirect jump page 2020-05-26 23:53:39 +08:00
shwin0901
2e24275d49 Modify the color gradient of calendar map 2020-05-26 22:54:16 +08:00
Folyd
951000a11d Use extra query parameter to get docMode 2020-05-26 00:48:02 +08:00
shwin0901
66de128641 Fix heatmap date display issue 2020-05-26 00:21:29 +08:00
shwin0901
e6e2f47ded Fix the problem of displaying decimals at horizontal coordinates 2020-05-22 22:32:08 +08:00
Folyd
70608affac
Merge pull request #46 from shwin0901/master
Fix heatmap color dispaly issues
2020-05-22 14:45:24 +08:00
shwin0901
a242af8626 Fix heat map color display bug 2020-05-22 14:41:38 +08:00
Folyd
0ad449d8d2 Fix #44: parse crate info from location.pathname was incorrect in src page 2020-05-22 11:16:24 +08:00
shwin0901
cc3f996e29 Fix calendar color display issue 2020-05-22 10:16:11 +08:00
shwin0901
9f93931a38 Fix heatmap color dispaly issues 2020-05-22 00:56:22 +08:00
shwin0901
273b0ca9da Fix month overlap in calendar charts bug 2020-05-21 23:25:10 +08:00
shwin0901
5557c7a4ac Fix sort behavior different in browsers for Others category issue 2020-05-21 23:04:07 +08:00
Folyd
45e1edbf82 A new way to register Command 2020-05-18 22:59:36 +08:00
Folyd
ac39b19654
Merge pull request #43 from shwin0901/master 2020-05-18 22:25:11 +08:00
shwin0901
1592db888e Add commands 2020-05-18 22:21:27 +08:00
Folyd
34fc64f350 Classify the default searching result in stats page 2020-05-18 15:21:57 +08:00
Folyd
20069c12a0 Optimize searching percentage statistics 2020-05-18 11:54:56 +08:00
shwin0901
f7a4324838 Change style 2020-05-17 21:23:21 +08:00
shwin0901
37aab9bc69 Calculate height dynamically topCratesData bar chart 2020-05-17 19:03:25 +08:00
shwin0901
57137366ed Calculate searching saved time 2020-05-17 18:39:34 +08:00
shwin0901
c18ff5a691 Decouple topCratesData yAxis label logic from barChart.js 2020-05-17 00:27:49 +08:00
shwin0901
89422b68d0 Optimization statistics page 2020-05-16 23:13:56 +08:00
Folyd
45c8ec916b
Merge pull request #40 from shwin0901/master
Optimize stats code
2020-05-16 00:17:18 +08:00
shwin0901
fd2c54ba3b Fix review suggestions 2020-05-16 00:14:08 +08:00
shwin0901
c5b956b0ff Optimize stats code 2020-05-15 22:51:43 +08:00
Folyd
da40380e57
Merge pull request #39 from shwin0901/master
Add crates rank chart and searching functions percentage chart
2020-05-14 11:25:43 +08:00
Folyd
298eb98df4 Integrate core submodule 2020-05-13 23:52:43 +08:00
shwin0901
e4edbb6994 Fix D3js svg chart overflow issues 2020-05-13 23:36:03 +08:00
shwin0901
d79e61a11b Add crates rank chart and searching functions percentage chart 2020-05-13 23:21:20 +08:00
Folyd
d4395d5ba9 Fix docs search offline doc path bug 2020-05-12 11:40:25 +08:00
shwin0901
06b24a7cff Add chart histogram tooltip 2020-05-09 22:39:07 +08:00
Folyd
ee62a79713
Merge pull request #37 from shwin0901/master
Add histogram charts
2020-05-08 23:12:19 +08:00
shwin0901
4c4ae15914 Add histogram charts 2020-05-08 22:56:47 +08:00
Folyd
883b8e0a9f Refresh search index after saved crated docs changed 2020-05-07 10:07:32 +08:00
Folyd
ef6daebfe1
Merge pull request #36 from shwin0901/master
Add Searching Statistics page
2020-05-06 22:49:50 +08:00
shwin0901
93ffea7005 Add Searching Statistics page 2020-05-06 22:39:56 +08:00
shwin0901
e42d8c1dab Add calendar heatmap library 2020-05-06 22:29:22 +08:00
Folyd
75884ddbdd
Merge pull request #34 from shwin0901/master
Add tool command
2020-05-02 17:02:16 +08:00
shwin0901
09ece8fe45 Add tool command 2020-05-02 16:54:55 +08:00
Folyd
b6dffd6a6e Support search all saved crates docs collectively. 2020-05-01 19:25:28 +08:00
Folyd
eb16ed006c Fix offline mode bug 2020-05-01 18:27:47 +08:00
shwin0901
a4af01a565 Support customize crate registry 2020-05-01 11:46:13 +08:00
shwin0901
4b18fb92f6 Remove automatically open changelog tab code 2020-04-27 23:03:34 +08:00
shwin0901
3ecd23a679 Fix firefox omnibox page size 2020-04-27 22:32:03 +08:00
Folyd
ba4b1cf0f7 Fix crates' docs.rs page redirect bug 2020-04-25 23:29:21 +08:00
Folyd
3c05829a92 Distinct browser type strictly 2020-04-25 16:20:25 +08:00
Folyd
8688d486e0 Refix stable command bug, bump search index to v1.43.0 2020-04-25 15:42:09 +08:00
Folyd
0bb7d4801d Update latest index files 2020-04-25 15:15:34 +08:00
Folyd
679830e3e6 Fix semver doesn't work in Firefox bug 2020-04-24 19:36:46 +08:00
Folyd
254fb91dc3 Add semver compare to update the crate docs version 2020-04-20 22:41:37 +08:00
Folyd
62d63e8d62 Show crate version when query with @ prefix 2020-04-20 21:20:21 +08:00
Folyd
591af48266 Transfer the repository to Huhu 2020-04-19 21:31:12 +08:00
Folyd
a7913dceb9 Rename onSelected() to afterNavigated() 2020-04-17 18:50:43 +08:00
Folyd
28f7b0b538 Improve inject script name conventions 2020-04-17 18:50:18 +08:00
Folyd
9a7a541c83 Add beforeNavigate hook for Omnibox 2020-04-17 00:15:07 +08:00
Folyd
22ee8c3dad Omnibox add no cached query API 2020-04-15 23:49:44 +08:00
Folyd
0837a31fbd Increase doc search MAX_LEV_DISTANCE to 3 2020-04-15 23:08:17 +08:00
Folyd
156592d0f0 Fix label command filter bug 2020-04-15 19:32:36 +08:00
Folyd
3285d6991b Move common script logic to lib.js 2020-04-14 19:53:01 +08:00
Folyd
0ff006c6bc Move Deminifier into CrateSearch object 2020-04-14 18:09:10 +08:00
Folyd
4f14e08718 Fix cargo features parse bug 2020-04-14 18:03:59 +08:00
Folyd
77247c5e6c Revert "Fix cargo.toml parse bug"
de3e7e2812
2020-04-14 13:25:20 +08:00
Folyd
97bde0149c Fix regex bug when replace duplicated url flag 2020-04-13 19:30:58 +08:00
Folyd
76f40ff716 Fix cargo.toml parse bug 2020-04-13 19:25:14 +08:00
Folyd
43f8ccc27b Remove max page and max docs result size limitation 2020-04-13 18:45:20 +08:00
Folyd
f5c11acb05 Change to dark-mode compatible rust logo 2020-04-12 13:29:46 +08:00
Folyd
9fa462f313 Separate chromium and firefox action workflow files 2020-04-11 00:03:03 +08:00
Folyd
081212291e Make Firefox support add external crate search index 2020-04-10 23:48:40 +08:00
Folyd
06f132d517 Remove browser variable in Compat 2020-04-08 22:53:38 +08:00
Folyd
5b0fd01987 Update default suggestion, improve crate search UI 2020-04-08 22:37:25 +08:00
Folyd
6c7922ae76 Command support prefix filtering 2020-03-30 23:04:21 +08:00
Folyd
e36a29b921 Add Guide to Rustc Development book, update README 2020-03-28 18:14:41 +08:00
Folyd
0f64785abf Add labels-index.js 2020-03-25 23:44:43 +08:00
Folyd
deb2634fd7 Add :label command 2020-03-25 22:27:23 +08:00
Folyd
e86d3faf35 Command.onBlankResult return [] by default 2020-03-25 22:21:24 +08:00
Folyd
fd7710b0b5 Merge branch 'master' into v0.8.1 2020-03-14 00:55:26 +08:00
Folyd
6649ca0839 Bump version to v0.8.1, upgrade crates and search index 2020-03-14 00:47:23 +08:00
Folyd
964cefe001 Fix stable command calculate wrong version bug 2020-03-13 18:21:56 +08:00
Folyd
298983ec6e Merge pull request #18 from Folyd/bugfix-crates-name
Fix crate result name unnecessary underscore replacement issue
2020-03-10 16:20:01 +08:00
Folyd
cd410fb4ee Fix crate result name unnecessary underscore replacement issue 2020-03-10 15:52:14 +08:00
Folyd
812c7fa489 Fix crate doc name bug 2020-03-09 14:56:52 +08:00
Folyd
781f68221a Add getSearchUrl() method, doc search result add footer 2020-03-08 22:19:04 +08:00
Folyd
a2cd5f51fe Fix doc search index compatiblity 2020-03-08 17:27:11 +08:00
Folyd
d519bc6020 Fix command UI 2020-03-08 16:38:05 +08:00
Folyd
83874d5953 Show crate doc search title, convenient for select crates in the list 2020-03-08 16:28:05 +08:00
Folyd
bed0e1bb7e Change command list content 2020-03-08 15:37:33 +08:00
Folyd
4b694578b9 Show optional crate list when perform crate doc search 2020-03-08 12:43:01 +08:00
Folyd
5e7286880f Fix parse crate name bug 2020-03-08 12:29:01 +08:00
Folyd
aa27ccff92 Change crate local storage structure to object 2020-03-08 11:31:55 +08:00
Folyd
786ee72b38 Add third party crate doc search 2020-03-08 10:59:37 +08:00
Folyd
cee11ef52a Add CrateDocSearcher and manager, crate docs change to immediately invoke function 2020-03-08 10:49:40 +08:00
Folyd
674428441f Fix search index compatibility, sync with official code 2020-03-08 01:00:06 +08:00
Folyd
d023db11f9 Extract base doc search file 2020-03-07 17:13:18 +08:00
Folyd
9a8bd643bd Optimize add to extension UI 2020-03-07 16:12:56 +08:00
Folyd
699fcdbf39 Support toggle add to extension state 2020-03-07 12:52:13 +08:00
Folyd
12a638bd33 Implement add search index to extension feature 2020-03-07 00:33:48 +08:00
Folyd
6fe58a7936 Clean token when minify js 2020-03-06 00:54:12 +08:00
Folyd
6aad602f55 Add clippy lints search 2020-03-05 23:33:32 +08:00