Commit graph

37 commits

Author SHA1 Message Date
Sam Zhou
6e43c9bd34
chore(v2): Fix more eslint errors (#2976) 2020-06-21 15:09:00 +08:00
Alexey Pyltsyn
afe9ff91a4
chore(v2): replace classnames with clsx (#2895) 2020-06-07 13:40:06 +08:00
tetunori
e63c468b0f
fix(v2): use base url to navigate to search page (#2838)
* fix: consider baseUrl

Add baseUrl to search page query URL.

* fix: use `useBaseUrl()`

* Revert "fix: use `useBaseUrl()`"

This reverts commit 72b319a293.

* fix: add link to PR
2020-06-02 10:51:54 +03:00
Alexey Pyltsyn
f23d03bd3b
refactor(v2): align search icon to center on mobiles (#2814) 2020-05-27 16:36:13 +08:00
Alexey Pyltsyn
604f9f5b25
refactor(v2): increase search input on medium screens (#2799)
* refactor(v2): show only search icon on mobiles

* refactor(v2): increase search input on medium screens
2020-05-24 12:45:38 +08:00
Alexey Pyltsyn
83f980cadf
refactor(v2): show only search icon on mobiles (#2791) 2020-05-23 05:02:18 +08:00
Alexey Pyltsyn
463efec20d
fix(v2): avoid duplication search input in navbar (#2762) 2020-05-17 23:24:17 +08:00
Alexey Pyltsyn
778adb2d26
refactor(v2): improve UX of search page (#2761) 2020-05-17 22:53:21 +08:00
Alexey Pyltsyn
3ad4550854
feat(v2): add search page (#2756) 2020-05-17 15:55:40 +08:00
Alexey Pyltsyn
1f00d15c74 chore(v2): fix code style (revert previous changes) 2020-04-05 17:38:12 +03:00
Alexey Pyltsyn
6965a668cd chore(v2): fix code style 2020-04-05 17:30:59 +03:00
Yangshun Tay
b07507c9cc
chore(v2): upgrade devDependencies (#2538)
* chore(v2): upgrade devDependencies

* chore(v2): upgrade devDependencies

* chore: prettier
2020-04-05 19:07:44 +08:00
Alexey Pyltsyn
70ba0a4bc7
refactor(v2): clean up and improve Algolia styles (#2376) 2020-03-08 21:25:27 +08:00
Alexey Pyltsyn
31b0ce6e27
chore(v2): upgrade Infima and remark-admonitions (#2372)
* chore(v2): upgrade Infima and remark-admonitions

* Update algolia.css
2020-03-08 00:10:13 +08:00
Yangshun Tay
32c1a92b17
chore: yearless copyright headers for source code (#2320)
* chore: yearless copyright headers for source code

* update snapshots
2020-02-25 23:12:28 +08:00
Yangshun Tay
996b115199
misc(v2): clean up comments in code (#2294) 2020-02-18 21:29:23 +08:00
Alexey Pyltsyn
de4a25c297
fix(v2): remove focus on search input when hovering over it (#2262)
* fix(v2): remove focus on search input when hovering over it

* Fix deps

* Improve naming
2020-02-01 20:21:45 +08:00
Alexey Pyltsyn
5252111fa0 fix(v2): fix input losing focus on init (#2188)
* fix(v2): fix input losing focus on init

* fix(v2): add onMouseOver handler
2020-01-08 23:08:03 +08:00
Yangshun Tay
8065e5f9dd
fix(v2): make search bar not lose focus after clicking on it after initial load (#2178) 2020-01-04 20:38:45 +08:00
Alexey Pyltsyn
b36316eab2 fix(v2): load Algolia styles for mobiles immediately (#2174)
* fix(v2): load Algolia styles for mobiles immediately

* Add copyright
2020-01-02 21:37:15 +08:00
Endi
dcf1fef001
feat(v2): lazy load algolia css so its not render blocking (#2125)
* perf(v2): algolia css should not be render blocking

* tweak

* lazy load css

* tweak

* tweak

* review
2019-12-15 16:43:46 +07:00
Endi
dd6b10da30 feat(v2): algolia search result no longer cause full page refresh (#2079) 2019-12-03 21:40:31 -08:00
Endi
cc2201e997 perf(v2): load algolia JS only when user interacts with search (#2076)
* perf(v2): lazy load algolia JS when the user interacts with the search input

* useref
2019-12-02 01:15:43 -08:00
Alexey Pyltsyn
4c7de3b5f1 fix(v2): improve UI of search (#2001) 2019-11-16 08:11:39 -08:00
Endi
3be2e86546
chore: bump dev dependencies (#1955)
* chore: bump devdeps

* upd infima url
2019-11-11 17:44:26 +07:00
Endi
6fcee6dde4 fix(v2): missing/hidden algolia search suggestion result (#1915) 2019-10-30 08:52:36 +08:00
Endi
64871b76e4 fix(v2): custom searchbar should appear even if themeconfig.algolia is undefined (#1909)
* fix(v2): custom searchbar should appear even if themeconfig.algolia is undefined

* nits

* Docs docs

* inaccuracy

* changelog

* nits
2019-10-30 08:51:53 +08:00
Endi
84462e218e fix(v2): align search icon on small width device (#1893)
* fix(v2): align search icon on small width device

* nits

* nits
2019-10-27 07:11:09 -07:00
Endi
9fdda55672 styles(v2): update infima and fix styles (#1892) 2019-10-25 22:06:06 -07:00
Alexey Pyltsyn
0e66c908a9 fix(v2): fix search input blur on desktop (#1874) 2019-10-23 22:00:51 -07:00
Shirshendu Bhowmick
0bbf7b8202 refactor(v2): convert SearchBar to hooks (#1755)
* Refactored with Hooks

* refactored for improvements

* Added classnames for conditional CSS rendering
2019-09-14 11:32:46 -07:00
Shirshendu Bhowmick
abc80e9b00 fix(v2): responsive search bar (#1741)
* Fix search bar on smaller devices

* Update packages/docusaurus-theme-search-algolia/src/theme/SearchBar/styles.css

Removed blank line

Co-Authored-By: Endi <endiliey@gmail.com>
2019-08-06 11:49:28 +07:00
Yangshun Tay
6a814ac64a
refactor(v2): change plugin api (#1547)
* misc(v2): new plugin format example

* refactor(v2): make all plugins a function returning objects

* misc: add CHANGELOG

* misc(v2): update CHANGELOG

* misc(v2): fix tests

* misc(v2): convert swizzle command

* misc(v2): convert sitemap back to commonjs
2019-06-02 20:37:22 -07:00
endiliey
ffdd3e60fc chore(v2): remove docsearch a11y workaround 2019-05-13 22:19:31 +08:00
Endi
070723697f fix(v2): docsearch a11y issue (#1449) 2019-05-11 08:47:22 -07:00
Endi
174ad279a6
refactor(v2): move headerLinks -> themeConfig & rm dead code (#1442)
* refactor(v2): move headerLinks -> themeConfig & rm dead code

* rm -rf dead code
2019-05-08 15:47:32 +07:00
Yangshun Tay
384fd5708f feat(v2): Algolia search theme (#1440)
* feat(v2): Algolia search plugin

* patch PR #1440 (#1441)

* alternative implementation

* typo

* refactor noop

* rename SearchAlgolia -> SearchBar

* changes.md
2019-05-08 15:21:11 +07:00