Joshua Chen
3666a2ede5
refactor: remove a lot of implicit anys ( #7468 )
2022-05-23 15:40:53 +08:00
Joshua Chen
b1cafe73df
refactor: remove long-deprecated routesLoaded lifecycle ( #7257 )
2022-05-04 12:32:49 +02:00
Joshua Chen
b49ae67521
refactor(types): move non-core, non-public types out of the types package ( #7293 )
2022-05-03 17:15:48 +08:00
Joshua Chen
c7a5af7c4d
refactor(core): collocate CLI commands and their option types ( #7292 )
...
* refactor(core): collocate CLI commands and their option types
* fixes
2022-05-03 15:32:12 +08:00
Joshua Chen
5bed55aeda
refactor(types): JSDoc for docusaurus config fields ( #7291 )
2022-05-03 13:57:19 +08:00
Joshua Chen
ae788c536f
feat(core): rework client modules lifecycles, officially make API public ( #6732 )
2022-04-29 15:11:20 +02:00
Joshua Chen
fa1ce230ea
refactor: capitalize comments ( #7188 )
...
* refactor: capitalize comments
* revert...
2022-04-17 16:39:11 +08:00
Joshua Chen
03516dc3a7
fix(sitemap): exclude pages with robots noindex from sitemap ( #7143 )
2022-04-14 11:31:09 +02:00
Joshua Chen
7941a46be3
feat: allow setting calendar for i18n date formatting ( #6430 )
...
* feat: allow setting calendar for i18n date formatting
* fix TS
* add test
2022-04-08 22:34:34 +08:00
Joshua Chen
171927342f
feat(core): fail-safe global data fetching ( #7083 )
2022-04-08 11:08:22 +02:00
Joshua Chen
0a3aad618e
feat(core): allow plugins to declare custom route context ( #7082 )
2022-04-07 18:38:33 +02:00
Joshua Chen
1156be3f20
refactor(content-{blog,docs}): unify handling of tags ( #7117 )
2022-04-07 15:58:21 +02:00
Joshua Chen
f9c0a5a6d5
feat(core): allow plugin/preset config to contain false/null ( #7124 )
2022-04-07 15:27:20 +02:00
Joshua Chen
898611d4ad
refactor(core): code cleanup ( #7084 )
2022-04-01 13:41:39 +08:00
Joshua Chen
24c205a835
refactor: replace non-prop interface with type; allow plugin lifecycles to have sync type ( #7080 )
...
* refactor: replace non-prop interface with type; allow plugin lifecycles to have sync type
* fix
2022-03-31 19:16:07 +08:00
Joshua Chen
3f33e90704
chore: upgrade dependencies ( #7065 )
...
* chore: upgrade dependencies
* fix project words
2022-03-30 11:05:50 +08:00
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
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
Joshua Chen
6e2eb44964
refactor: unify how validateOptions is handled ( #6961 )
...
* refactor: unify how validateOptions is handled
* fix types
* fix again
2022-03-22 19:40:56 +08: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
f70ddf7e69
refactor(core): minor routes type improvement ( #6929 )
2022-03-17 13:38:28 +08:00
Joshua Chen
68aaf9201f
feat(core): allow plugin lifecycles to return relative paths ( #6921 )
...
* feat(core): resolve plugin lifecycles returning relative paths
* fix typo
* fix tests
* revert
* rename path -> entryPath
2022-03-16 20:47:15 +08:00
Joshua Chen
ad88f5cc87
test: improve test coverage; multiple internal refactors ( #6912 )
2022-03-14 21:53:57 +08: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
Joshua Chen
2a7120cc02
docs: mention configureWebpack devServer return value ( #6881 )
2022-03-09 20:23:38 +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
f763ac13a9
test: improve test coverage ( #6857 )
2022-03-06 17:55:21 +08: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
c3370be64d
refactor: make MDX export a flat TOC list instead of tree ( #6729 )
2022-02-23 15:12:04 +01: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
0c7e592d34
chore: upgrade dependencies ( #6660 )
...
* chore: upgrade dependencies
* fix types
2022-02-12 15:29:40 +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
76a8d5f38a
fix(content-blog): generate feed by reading build output ( #6454 )
2022-01-26 16:54:15 +01:00
Yaroslav Serhieiev
6f892e20b0
feat(core, theme-classic): allow overriding htmlLang ( #6371 )
2022-01-19 12:38:42 +01:00
Joshua Chen
37b70e3ab4
refactor(core): convert serverEntry.js to TS ( #6237 )
...
* refactor(core): convert serverEntry.js to TS
* fix
* migrate template to TS
* Move templates
2022-01-05 21:34:24 +08:00
Sébastien Lorber
b393700a61
feat: async plugin creator functions ( #6166 )
2021-12-22 19:10:49 +01:00
Joshua Chen
b4ec7ec011
refactor(core): fix types for client code ( #6064 )
2021-12-07 19:58:36 +01:00
Fernando Maia
b366ba5603
feat: shorthands for themes/plugins/presets configuration ( #5930 )
...
Co-authored-by: Josh-Cena <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2021-12-03 18:23:12 +01:00
Joshua Chen
bfd7fd9d8a
refactor: minor ESLint improvements ( #5981 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2021-12-03 17:38:29 +01:00
Oliver Ullman
1366c31201
feat(core): allow sourcing from multiple static directories ( #4095 )
...
* [WIP] Implementaion of multiple directory static sourcing
* Move default to validation
* Update test
* Refactor
* Port to MDX loader
* Fix
* Move dogfooding assets
* Doc writeup
* Restore assets
* Support absolute paths
* Dogfood absolute path
* Fix
* More tests
* Fix snapshots
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2021-11-18 22:26:26 +08:00
Armano
3bf59a65a9
refactor(types): correct HtmlTags types ( #5959 )
2021-11-17 07:10:44 +08:00
William Poetra Yoga
ca9bd244aa
feat: allow user to specify deploymentBranch property in docusaurus.config.js ( #5841 )
...
* feat: allow user to specify deploymentBranch property in docusaurus.config.js
* docs: remove extra backtick
* docs: fix broken code block
2021-10-31 12:29:22 +08:00
Joshua Chen
7f7b858cd4
refactor: make all Props defined as interface + readonly ( #5636 )
...
* Initial work
* Fix
2021-10-05 19:04:24 +02:00
Bharat Middha
09550b0535
feat: properly type-check the Docusaurus config of new sites ( #5589 )
...
* fix: makes types DocusaurusConfig optional to match docs
* add UserDocusaurusConfig with required keys for user config
* convert UserDocusaurusConfig to use util type
* Docusaurus website config should be type-checked by CI + fix all existing issues
* add doc for config typechecking
* Update template configs for TS autocompletion
* fix last config typechecking bugs
* reapply prettier
* reapply prettier-docs
* Fix TS doc: add missing ()
* fix some docu plugin types
* add "const config" for simpler jsdoc annotation
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-09-30 17:49:44 +02:00