Sébastien Lorber
2f75979bc5
fix(search): search page should react to querystring changes + cleanup/refactor ( #8757 )
2023-03-10 19:13:58 +01:00
Devansu Yadav
90e7e321d1
feat(eslint-plugin): new prefer-docusaurus-heading rule ( #8384 )
2023-01-19 17:08:24 +01:00
mturoci
0985fa0af3
fix(search-algolia): pass custom transformItems function to SearchBar ( #8462 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
closes undefined
Closes https://github.com/facebook/docusaurus/pull/8462
Closes https://github.com/facebook/docusaurus/issues/8461
2022-12-29 13:29:00 +01:00
Anders Bech Mellson
19ba0ff49d
feat(theme-algolia): add option.replaceSearchResultPathname to process/replaceAll search result urls ( #8428 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-12-22 18:24:28 +01:00
Viktor Malmedal
4a448773b6
feat: add eslint plugin no-html-links ( #8156 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Viktor Malmedal <viktor.malmedal@eniro.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-12-14 18:28:29 +01:00
Markshawn
f6835898bc
chore: fix CSS import order ESLint rule ( #7852 )
...
* enhance: added ESLint ruler for CSS import
* chore: added ruler for default import of css, and fixed all exsting files
* chore: reverted changes on css header rulers
2022-08-01 00:05:00 +08:00
Arthur Brugière
1ad97843ac
fix(algolia-search): test for canUseIntersectionObserver ( #7761 )
...
[FIX] Update observer condition
Replace condition canUseDOM to canUseIntersectionObserver as check is done for IntersectionObserver usage
2022-07-11 19:03:54 +08:00
Forresst
ae2ba5e37a
feat(algolia-search): allow translating search modal ( #7666 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-07-06 18:21:55 +02:00
Sébastien Lorber
2c7012f706
refactor(theme-common): rename useDynamicCallback to useEvent ( #7671 )
2022-06-24 12:10:03 +02:00
Sébastien Lorber
9473508c33
refactor(theme-common): split package into public/internal API entrypoints ( #7660 )
...
* add theme-common/internal export
* Split @docusaurus/theme-common into public/internal apis
* fixes
* public <-> private
* public <-> private
* public <-> private
* fix
* add "removeThemeInternalReexport" CI script
* :s windows CI check not working: not that useful
* remove bad import
* refactors
* reorder
* make useBackToTopButton internal
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-06-24 11:21:27 +02:00
Joshua Chen
cd21a31005
test: strengthen internal types ( #7488 )
2022-05-25 15:38:44 +08:00
Joshua Chen
624735bd92
refactor: fix more type-aware linting errors ( #7479 )
2022-05-24 19:19:24 +08:00
Joshua Chen
3666a2ede5
refactor: remove a lot of implicit anys ( #7468 )
2022-05-23 15:40:53 +08:00
Joshua Chen
0838884f67
chore: enable import/order rule ( #7418 )
2022-05-14 23:39:50 +08:00
Joshua Chen
fa1ce230ea
refactor: capitalize comments ( #7188 )
...
* refactor: capitalize comments
* revert...
2022-04-17 16:39:11 +08:00
Alexey Pyltsyn
fe064a87a6
fix: adjust spacing for custom search properly ( #7164 )
2022-04-14 11:53:47 +02:00
Joshua Chen
2a7820582c
chore: upgrade dependencies ( #7138 )
...
* chore: upgrade dependencies
* reorg
* update comment
2022-04-09 12:36:10 +08:00
Joshua Chen
87592bca03
refactor: ensure all types are using index signature instead of Record ( #6995 )
...
* refactor: ensure all types are using index signature instead of Record
* kick CI
2022-03-25 18:06:30 +08:00
Sébastien Lorber
74f653dd82
refactor(theme-{classic,common}): change how site/page/search metadata is handled ( #6925 )
2022-03-18 18:53:00 +01:00
Joshua Chen
d85cee576d
test: improve test coverage; properly test core client APIs ( #6905 )
...
* test: improve test coverage
* fix
2022-03-12 23:15:45 +08:00
Joshua Chen
4db0c620de
refactor: enable a few TS flags ( #6852 )
...
* refactor: enable a few TS flags
* refactor
* revert to working version
* fix
* better
* change
2022-03-06 13:09:10 +08:00
Joshua Chen
0d14470d54
refactor: unify export directive style ( #6751 )
2022-02-24 17:25:17 +08:00
Sébastien Lorber
a6f53aa9d2
refactor(theme-classic): bias again search metadata toward Algolia DocSearch ( #6707 )
2022-02-17 14:24:31 +01:00
Alexey Pyltsyn
53c2c118c4
feat(search-algolia): allow disabling search page and configuring path ( #6692 )
2022-02-16 19:07:01 +01:00
Joshua Chen
661bc32402
chore(deps): bump all dependencies; regenerate lockfile ( #6580 )
2022-02-02 13:00:31 +08:00
Joshua Chen
aa446b7a9c
chore: clean up ESLint config, enable a few rules ( #6514 )
...
* chore: clean up ESLint config, enable a few rules
* enable max-len for comments
* fix build
2022-01-31 10:31:24 +08:00
Joshua Chen
2553f1fb5a
refactor: improve internal typing ( #6507 )
...
* refactor: improve internal typing
* fix
* fix test
2022-01-29 22:58:40 +08:00
Joshua Chen
0e13356e1b
feat: mark some text labels as translatable ( #6482 )
...
* feat: mark some text labels as translatable
* tweak
2022-01-27 19:36:37 +08:00
Nick Schonning
521eb119a7
chore: add cSpell for spell checking ( #6456 )
...
* chore: Add cSpell for spell checking
* chore: exclude map files and remove dups
* chore: exclude more binary files
* chore: remove MD headings
* Update .cspell.json
* fix a few spellings
* fix more
* fix
Signed-off-by: Joshua Chen <sidachen2003@gmail.com>
* fix a few
* oops
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-25 09:40:02 +08:00
Joshua Chen
e40cafccd5
chore: enable stylelint standard config ( #6442 )
...
* chore: enable stylelint standard config
* remove empty line
* fix
2022-01-22 21:26:35 +08:00
Sébastien Lorber
4004f5b68b
chore: regenerate yarn.lock ( #6341 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-01-14 15:52:12 +01:00
Joshua Chen
cf265c051e
refactor: move exported type definitions to declaration file ( #6300 )
...
* refactor: move exported type definitions to declaration file
* fix
* fix
2022-01-09 22:02:31 +08:00
Sébastien Lorber
f87a3ead46
refactor: move @theme/hooks to @docusaurus/theme-common ( #6289 )
2022-01-07 19:19:35 +01:00
Sébastien Lorber
024f2bf49b
refactor: new @docusaurus/plugin-content-docs/client interface ( #6287 )
2022-01-07 17:04:21 +01:00
Joshua Chen
0374426ce3
chore: upgrade TypeScript & other ESLint related deps ( #5963 )
...
* chore: upgrade ESLint related deps
* Upgrade TS
* Fix lock
* Bump Babel
* Update config
2021-11-18 21:15:37 +08:00
Armano
425144afc7
refactor(theme-search-algolia): migrate package to TS ( #5935 )
2021-11-16 20:35:09 +01:00
Swalah Amani
c541e2d83c
misc: replace all "Metadatas" with "Metadata" ( #5871 )
...
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
2021-11-09 19:46:10 +01:00
Sergio Moreno
adbc02ea38
feat(search-algolia): algolia externalUrl regex to navigate with window.href ( #5795 )
2021-10-29 19:53:47 +02:00
Sébastien Lorber
d799405ace
fix: stable callbacks in useSearchQuery + refactor ( #5751 )
2021-10-20 17:36:33 +02:00
Sébastien Lorber
098f210890
chore: Enable ESLint rules of hooks + fix new lint errors ( #5714 )
2021-10-20 16:09:52 +02:00
Alexey Pyltsyn
d0bbdd0535
refactor(v2): improve markup and styling on search page ( #4919 )
2021-06-09 13:30:01 +02:00
Alexey Pyltsyn
dc0336a34f
chore(v2): update @docsearch/react ( #4867 )
2021-05-29 11:37:13 +03:00
Alexey Pyltsyn
a9343a1916
fix(v2): adjust padding for custom search box location ( #4856 )
2021-05-28 11:01:26 +03:00
Sébastien Lorber
070b3fc1e8
fix(v2): search page results localization ( #4339 )
...
* Fix search page localization
* Fix search page localization
2021-03-03 18:10:20 +01:00
Sébastien Lorber
364d4dbf01
fix(v2): fix bad theme pluralization rules for some labels ( #4304 )
...
* Pluralization test!
* Simplify usePluralForm usage with | plural message separator
* fix interpolate bug with falsy values like 0
* fix interpolate bug with falsy values like 0
* Order plural forms + allow to not provide the last plural forms if they are not used
* fix typo
* revert test!
* plurals and typo of the SearchPage
* update some labels
* improve the update-code-translations cli + update translations
* pluralize blog reading time label
* ensure base.json contains message descriptions: helps the user to provide the translations
* remove russian production locale
2021-03-03 17:05:21 +01:00
Yamagishi Kazutoshi
99d83995a5
feat(v2): add japanese translations ( #4303 )
2021-03-01 18:35:07 +01:00
Alexey Pyltsyn
08fa318599
refactor(v2): add more translatable strings ( #4219 )
...
* refactor(v2): add more translatable strings
* Apply suggestions from code review
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
* Fixes
* Updates
* Localize direct link to heading
* typo + add french translations
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-18 11:29:51 +01:00
Alexey Pyltsyn
d6510b63ae
fix(v2): prepend docsearch modal to body element ( #4188 )
2021-02-08 15:57:03 +01:00
François Chalifour
915f949c25
fix(v2): fix DocSearch keyboard navigator ( #3853 )
...
* fix(v2): fix DocSearch keyboard navigator
* Update index.js
* Update index.js
* Update index.js
* Update index.js
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2020-12-01 17:49:14 +01:00
Bartosz Kaszubowski
21572ccd37
feat(v2): extract site title formatter to theme-common util ( #3838 )
2020-11-30 15:41:09 +01:00