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
Joshua Chen
aa5a2d4c04
test: enable a few jest eslint rules ( #6900 )
...
* test: enable a few jest eslint rules
* more
2022-03-12 08:43:09 +08:00
Joshua Chen
c9ee6e467c
refactor: import jest as global; unify import style of some modules ( #6898 )
...
* refactor: import jest as global
* fix react
2022-03-11 19:04:27 +08:00
Joshua Chen
23a34c1a07
refactor: prefer fs.outputFile to ensureDir + writeFile ( #6880 )
...
* refactor: prefer fs.outputFile to ensureDir + writeFile
* fix test
* fix
2022-03-09 17:50:33 +08:00
Roberto Vidal
73df485aec
fix(core): ensure stable webpack theme aliases sorting ( #6878 )
2022-03-09 09:40:47 +08:00
Joshua Chen
99b1fb90d5
chore: upgrade dependencies ( #6879 )
2022-03-09 07:34:35 +08:00
Joshua Chen
61290c4374
test(core): improve test coverage ( #6876 )
2022-03-08 22:10:07 +08:00
Joshua Chen
a4e37c4054
refactor: improve types ( #6866 )
2022-03-07 22:14:50 +08:00
Joshua Chen
8e934450d8
refactor: remove unnecessary default values normalized during validation ( #6864 )
...
* refactor: remove unnecessary default values normalized during validation
* more
2022-03-07 19:23:30 +08:00
Joshua Chen
44d73f7230
refactor: make JS executables included in the tsconfig for editor hints ( #6861 )
...
* refactor: make JS executables included in the tsconfig for editor hints
* oops
2022-03-06 23:07:23 +08:00
Joshua Chen
f763ac13a9
test: improve test coverage ( #6857 )
2022-03-06 17:55:21 +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
Evan
9f925a42bf
fix(core): fix swizzle legend typo ( #6854 )
...
* fix(core): fix swizzle legend typo
* Update packages/docusaurus/src/commands/swizzle/tables.ts
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-06 11:05:17 +08:00
Joshua Chen
b2d6e453e3
fix(core): make plugin lifecycles consistently bound to the plugin instance ( #6850 )
2022-03-05 17:57:10 +08:00
Joshua Chen
a756ddb7e1
fix(cli): write-heading-id should not generate colliding slugs when not overwriting ( #6849 )
2022-03-05 17:25:47 +08:00
Sébastien Lorber
8dbd656340
chore: prepare v2.0.0-beta.17 release ( #6829 )
2022-03-03 18:44:41 +01:00
Joshua Chen
954e4d42fc
fix(core): remove hash/query when filtering existing files for broken link check ( #6812 )
...
* fix(core): remove hash/query when filtering existing files for broken link check
* fix tests
2022-03-02 12:46:38 +08:00
Joshua Chen
a4dc03edee
chore: upgrade dependencies ( #6789 )
...
* chore: upgrade dependencies
* upgrade setup-node
2022-03-01 10:40:34 +08:00
Joshua Chen
3e5da386ce
refactor: move test utils into test folder ( #6777 )
2022-02-27 19:05:44 +08: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
Joshua Chen
f903422617
refactor: unify error handling behavior ( #6755 )
...
* refactor: unify error handling behavior
* revert
* normalize paths
* test...
* change
* does this work...
* fix...
* maybe fix
* maybe fix
* fix
* fix...
2022-02-25 15:07:13 +08:00
Joshua Chen
dcbf9f644e
chore: upgrade docsearch-react to v3 stable, bump dependencies ( #6752 )
...
* chore: upgrade dependencies
* revert
* validation
* fix blog
* reformat
2022-02-24 19:39:32 +08:00
Joshua Chen
0d14470d54
refactor: unify export directive style ( #6751 )
2022-02-24 17:25:17 +08:00
Joshua Chen
9562a5d203
refactor: remove deprecated Webpack utils & validation escape hatch ( #6740 )
2022-02-23 11:40:58 +01:00
Joshua Chen
ddad9713e6
refactor: improve client modules types ( #6742 )
2022-02-23 15:45:23 +08:00
Joshua Chen
671873a681
refactor(core): reduce code verbosity ( #6734 )
...
* refactor(core): reduce code verbosity
* fix
* fix
2022-02-21 19:31:22 +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
c6d0d812eb
refactor: convert all fs methods to async ( #6725 )
...
* refactor: convert all fs methods to async
* fix snap
2022-02-20 10:21:33 +08:00
Joshua Chen
ea6ceaa371
refactor: ensure lodash is default-imported ( #6716 )
2022-02-19 18:15:02 +08:00
Joshua Chen
47c9a37c5f
chore: upgrade dependencies ( #6715 )
...
* chore: upgrade dependencies
* upgrade Node
2022-02-19 11:47:44 +08:00
Joshua Chen
405d5d1a3e
fix(cli): disable directory listing in serve ( #6701 )
2022-02-17 14:53:40 +01:00
Joshua Chen
67918e35e2
refactor: convert CLI entry points to ESM; migrate create-docusaurus to ESM ( #6661 )
...
* refactor: convert CLI entry points to ESM
* fix
* fix
* fix
* fix!
* create-docusaurus ESM
* fix lock
* final touchups
* fix lodash
* fix
* use lodash
* fix hasYarn
2022-02-16 23:00:35 +08:00
Joshua Chen
0c7e592d34
chore: upgrade dependencies ( #6660 )
...
* chore: upgrade dependencies
* fix types
2022-02-12 15:29:40 +08:00
Joshua Chen
acf4ae8f96
refactor: reduce exported members of docusaurus router ( #6651 )
2022-02-11 12:16:13 +01:00
Konstantin Tarkus
916e4f1a26
fix(core): forward ref to Link's anchor element ( #6644 )
...
* feat(core): allow to pass ref into the Link component
* refactor
* add dogfood
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-11 12:34:13 +08:00
Joshua Chen
fbbec7fef8
fix(cli): make docusaurus clear also remove .yarn/.cache folder ( #6646 )
...
* fix(cli): make clear also remove .yarn/.cache folder
* refactor
2022-02-10 12:54:32 +08:00
Joshua Chen
ed34a92957
fix(cli): log error itself on unhandled rejection ( #6607 )
2022-02-04 23:33:34 +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
seyoon20087
a615ab3999
feat(core): use react-helmet-async ( #6306 )
...
* Use React Strict Mode
Even though Strict Mode is not required a WARNING icon now displays
on all components that do not use React.StrictMode on React DevTools extension.
Signed-off-by: Shinwon Elizabeth Yoon <24852454+seyoon20087@users.noreply.github.com>
* Utilize react-helmet-async instead of react-helmet
react-helmet is NOT thread safe, as explained in https://open.nytimes.com/the-future-of-meta-tag-management-for-modern-react-development-ec26a7dc9183#fdc2
Therefore, it's better if react-helmet-async is utilized instead of react-helmet.
Even though react-helmet-async is being utilized, most users will not require any code changes to @docusaurus/Head since it uses the same API as react-helmet.
Signed-off-by: Shinwon Elizabeth Yoon <24852454+seyoon20087@users.noreply.github.com>
* Include HelmetProvider inside client entry
I forgot to do this before.
Signed-off-by: Shinwon Elizabeth Yoon <24852454+seyoon20087@users.noreply.github.com>
* format
* fix TS
* address reviews
* Remove forked react-loadable package in favor of @react-loadable/revised
Both unforked react-loadable and @docusaurus/react-loadable uses legacy React APIs.
However, @react-loadable/revised (https://github.com/react-loadable/revised ) is actively maintained and widely used in production, thus replaced with this package.
Signed-off-by: Shinwon Elizabeth Yoon <24852454+seyoon20087@users.noreply.github.com>
* remove unused comma
* Address reviews from https://github.com/facebook/docusaurus/pull/6306#pullrequestreview-864745191
Signed-off-by: Shinwon Elizabeth Yoon <24852454+seyoon20087@users.noreply.github.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-02 14:52:44 +08:00
Joshua Chen
661bc32402
chore(deps): bump all dependencies; regenerate lockfile ( #6580 )
2022-02-02 13:00:31 +08:00
Joshua Chen
1cefb643dd
refactor: enforce named capture groups; clean up regexes ( #6524 )
...
* refactor: enforce named capture groups; clean up regexes
* fixes
* fix
2022-02-01 17:43:15 +08:00
Joshua Chen
c56e6194b4
refactor: mark all functions that import external modules as async ( #6521 )
2022-01-31 13:04:45 +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
8f69f633e6
refactor(core): convert theme-fallback to TS ( #6511 )
...
* refactor(core): convert theme-fallback to TS
* add missing type
* fix snapshot
2022-01-30 18:41:13 +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
c1e3801ee7
fix(cli): allow passing a list of file names to write-heading-ids ( #6500 )
2022-01-29 12:21:15 +08:00
Sébastien Lorber
f5f598a921
fix(core): configValidation should allow inline theme functions ( #6496 )
2022-01-28 17:49:25 +01:00
Nick Schonning
37be796aa8
test: rename 'fixtures' to '__fixtures__' ( #6474 )
...
* test: rename 'fixutes' to '__fixtures__'
* test: rename '__test' to '__tests__'
* test: update snapshot
2022-01-27 09:30:09 +08:00
Sébastien Lorber
d6cff8c754
chore(v2): prepare v2.0.0-beta.15 release ( #6473 )
2022-01-26 19:28:16 +01:00