Joshua Chen
77662260f8
refactor(core): refactor routes generation logic ( #7054 )
...
* refactor(core): refactor routes generation logic
* fixes
2022-03-29 16:37:29 +08:00
Joshua Chen
5fb09a2946
refactor(core): reorganize files ( #7042 )
...
* refactor(core): reorganize files
* fix types
2022-03-28 21:49:37 +08:00
Joshua Chen
c81d21a641
refactor: minor type improvements ( #7035 )
2022-03-28 11:15:37 +08:00
Sébastien Lorber
73deaa8bf6
chore: prepare v2.0.0-beta.18 release ( #7001 )
2022-03-25 16:16:38 +01: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
Sébastien Lorber
8a1421a938
feat(core,theme): useRouteContext + HtmlClassNameProvider ( #6933 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-18 10:57:32 +01:00
Joshua Chen
da9f38b748
refactor(client-redirects): migrate validation to validateOptions lifecycle ( #6924 )
2022-03-16 17:24:01 +01:00
Joshua Chen
f6baaa6b75
test(theme-common): improve test coverage ( #6902 )
...
* test(theme-common): improve test coverage
* revert
2022-03-12 13:17:21 +08:00
Sébastien Lorber
8dbd656340
chore: prepare v2.0.0-beta.17 release ( #6829 )
2022-03-03 18:44:41 +01:00
Sébastien Lorber
124511f445
chore: prepare v2.0.0-beta.16 release ( #6760 )
2022-02-25 16:00:11 +01:00
Joshua Chen
39b66d82ef
feat(core): rework swizzle CLI ( #6243 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-02-25 14:13:15 +01:00
Sébastien Lorber
ece7399d2e
fix(theme-classic): fix breadcrumb home link bug with new useHomePageRoute() hook ( #6749 )
2022-02-24 11:27:16 +01:00
Joshua Chen
0d14470d54
refactor: unify export directive style ( #6751 )
2022-02-24 17:25:17 +08:00
Joshua Chen
ddad9713e6
refactor: improve client modules types ( #6742 )
2022-02-23 15:45:23 +08:00
Joshua Chen
cfcc8b31f4
chore(module-type-aliases): add react as peer dependency ( #6741 )
2022-02-23 15:00:14 +08:00
Joshua Chen
c38200ba5b
refactor: declare all props as interfaces ( #6730 )
...
* refactor: declare all props as interfaces
* fix
* fix...
2022-02-21 11:52:11 +08:00
Joshua Chen
acf4ae8f96
refactor: reduce exported members of docusaurus router ( #6651 )
2022-02-11 12:16:13 +01:00
Joshua Chen
da9075105a
refactor(module-aliases): remove react-helmet dependency ( #6658 )
2022-02-11 13:08:08 +08:00
Joshua Chen
45f6f8b869
chore: fix ESLint warnings, restrict export all syntax ( #6605 )
...
* chore: fix ESLint warnings, forbid export all syntax
* fix...
* reorder
2022-02-04 21:57:10 +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
Sébastien Lorber
d6cff8c754
chore(v2): prepare v2.0.0-beta.15 release ( #6473 )
2022-01-26 19:28:16 +01:00
Joshua Chen
f0b08f493d
fix(module-type-aliases): fix type def for translate params ( #6469 )
2022-01-26 11:49:29 +08:00
Yaroslav Serhieiev
6f892e20b0
feat(core, theme-classic): allow overriding htmlLang ( #6371 )
2022-01-19 12:38:42 +01:00
Joshua Chen
6c0da3ee4b
refactor: clean up TODO comments ( #6399 )
2022-01-19 12:10:50 +08:00
Sébastien Lorber
8b7ab21d38
fix(core): error boundary should allow no children ( #6338 )
2022-01-14 10:39:24 +01:00
Joshua Chen
cb1aa30286
refactor: enforce type import specifiers ( #6230 )
...
* refactor: enforce type import specifiers
* fix
* Upgrade esbuild
* Fix (haha)
2021-12-31 21:17:09 +08:00
Sébastien Lorber
01b407011a
chore(v2): prepare v2.0.0-beta.14 release ( #6147 )
2021-12-21 17:15:04 +01:00
Sébastien Lorber
ae9a12ff50
chore(v2): prepare v2.0.0-beta.13 release ( #6084 )
2021-12-10 16:56:00 +01:00
Sébastien Lorber
991c1b2832
chore(v2): prepare v2.0.0-beta.11 release ( #6081 )
2021-12-10 14:13:25 +01:00
Sébastien Lorber
43ac7d5da9
chore(v2): prepare v2.0.0-beta.10 release ( #6076 )
2021-12-09 13:32:23 +01:00
Joshua Chen
b4ec7ec011
refactor(core): fix types for client code ( #6064 )
2021-12-07 19:58:36 +01:00
FISH UP
7e955e2fa6
fix(module-type-aliases): add svg declaration ( #5945 )
...
* fix(module-type-aliases): add svg, scss, module.scss, module.sass
* fix(module-type-aliases): css should be declared after module.css
* fix(module-type-aliases): remove scss related declarations
* fix(module-type-aliases): correct svg declaration
Co-authored-by: FISH UP <MisterFISHUP@users.noreply.github.com>
2021-11-15 13:10:45 +08:00
Joshua Chen
ac88d979f1
refactor(ganalytics, gtag): move options out of themeConfig ( #5832 )
...
* refactor(ganalytics, gtag): move options out of themeConfig
* Forbid themeConfig options
* Add PR link
* Add key names to error message
* Fix?
* Doc updates
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-11-10 19:04:43 +08:00
Paden Clayton
fa6d15b35f
feat(core): Add React ErrorBoundary component + theme default boundaries ( #3104 )
...
Co-authored-by: Paden Clayton <paden.clayton@monkedia.com>
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2021-11-04 16:07:32 +01:00
Alexey Pyltsyn
91ec2509b7
chore: prepare v2.0.0-beta.9 release ( #5859 )
...
* chore: prepare v2.0.0-beta.9 release
* v2.0.0-beta.9
2021-11-02 20:40:01 +03:00
Sébastien Lorber
0b2d3483a1
fix: use @docusaurus/react-loadable as package alias + include types ( #5819 )
2021-10-29 11:04:07 +02:00
Joshua Chen
4b2152a964
refactor: clear a few ESLint warnings ( #5808 )
...
* refactor: clear a few ESLint warnings
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Fix
2021-10-28 12:47:40 +08:00
Sébastien Lorber
68a116611f
chore: prepare v2.0.0-beta.8 release ( #5762 )
2021-10-21 18:52:17 +02:00
Joshua Chen
90098ca838
refactor(module-type-aliases): remove fallback aliases ( #5726 )
2021-10-20 15:27:16 +02:00
Alexey Pyltsyn
877373e108
chore: prepare v2.0.0-beta.7 release ( #5713 )
...
* chore: prepare v2.0.0-beta.7 release
* v2.0.0-beta.7
2021-10-15 16:31:01 +03:00
Alexey Pyltsyn
92104c7c3b
feat: make Translate children optional ( #5683 )
...
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-10-14 18:39:41 +02:00
Joshua Chen
7f7b858cd4
refactor: make all Props defined as interface + readonly ( #5636 )
...
* Initial work
* Fix
2021-10-05 19:04:24 +02:00
Joshua Chen
3f1f8255a2
chore: upgrade Prettier + regenerate lock file ( #5611 )
...
* Bump deps
* Run prettier
* Format docs
* Minor refactor
* Collapse objects
* Fix type
* Update lock file
2021-09-30 12:54:17 +02:00
Joshua Chen
e1f4677d04
fix(module-type-aliases): move @type packages to dependencies ( #5601 )
...
* Move devDeps to deps
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Update docs
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Update init template
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
2021-09-22 14:49:25 +02:00
Sébastien Lorber
2611bbb501
chore(v2): prepare v2.0.0-beta.6 release ( #5473 )
...
* add beta.6
* v2.0.0-beta.6
2021-09-02 18:31:42 +02:00
Joshua Chen
6b7f3e8553
refactor(plugin-debug): migrate package to TypeScript ( #5465 )
...
* Complete migration
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Fix JSON root name
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
2021-09-02 15:58:28 +02:00
Sébastien Lorber
f600d5a6d7
chore: prepare v2.0.0-beta.5 release ( #5427 )
...
* beta.5
* v2.0.0-beta.5
2021-08-26 17:33:31 +02:00
Sébastien Lorber
295e77cc09
refactor(core): replace useDocusaurusContext().isClient by useIsBrowser() ( #5349 )
...
* extract separate useIsClient() hook
* for consistency, rename to `useIsBrowser`
* useless return
* improve doc for BrowserOnly
* update snapshot
* polish
2021-08-12 19:02:29 +02:00
Joshua Chen
ee6ebc4877
refactor: better typing + remove unnecessary eslint-disable ( #5335 )
...
* Initial work
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Fix a few errors
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Restore default value
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Update docs
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Use custom route config
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Address a few suggestions
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Revert logo change
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Restore key
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Oops
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Remove use of any
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Remove eslint-disable
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Put type reference back
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
* Remove
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
2021-08-11 16:07:17 +02:00