Commit graph

2320 commits

Author SHA1 Message Date
Joshua Chen
ba0d94d02b
chore: normalize naming of admin scripts (#7448) 2022-05-18 21:34:34 +08:00
Joshua Chen
b31220032b
refactor(theme-classic): migrate to tsc for build (#7447)
* refactor(theme-classic): migrate to tsc for build

* fix
2022-05-18 20:08:09 +08:00
Joshua Chen
6b53d4263d
misc: make copyUntypedFiles work for watch mode (#7445) 2022-05-18 19:18:32 +08:00
Joshua Chen
5c3d3cfef1
chore: replace concurrently with npm-run-all (#7444) 2022-05-18 18:24:14 +08:00
Joshua Chen
a555fd1dcb
refactor: make each tsconfig explicitly declare module and include/exclude (#7443) 2022-05-18 12:48:28 +08:00
Joshua Chen
a0b0477dee
refactor(stylelint-copyright): migrate to TS (#7441) 2022-05-17 22:13:47 +08:00
Joshua Chen
71b5901bcd
refactor(cssnano-preset): migrate to TS (#7440)
* refactor(cssnano-preset): migrate to TS

* fix
2022-05-17 21:41:30 +08:00
Joshua Chen
7613ecb9ea
refactor: use TS project references instead of running tsc multiple times (#7437)
* refactor: use TS project references instead of running tsc multiple times

* deduplicate

* dedup

* eliminate --project

* add swc config

* add target
2022-05-17 15:21:44 +08:00
Joshua Chen
1bec5f673a
chore: upgrade dependencies (#7436) 2022-05-17 13:11:20 +08:00
Joshua Chen
7ea59b4e55
refactor(pwa): migrate client modules to TS (#7421) 2022-05-15 12:47:33 +08:00
Joshua Chen
0838884f67
chore: enable import/order rule (#7418) 2022-05-14 23:39:50 +08:00
Joshua Chen
c17d745533
refactor(theme-classic): always collocate stylesheets with components in one folder (#7415) 2022-05-14 14:08:10 +08:00
Pranab Das
3f110a36bd
fix(theme-classic): autocollapse sidebar categories when navigating with paginator (#7411)
* fix: autocollapse sidebar categories

Auto collapse sidebar categories when navigating via paginator.

* Add autoCollapseCategories in dependency array

* restore collapse button behavior

* simplify

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>

* hopefully a better fix

* refactor

* try this

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-05-14 13:37:59 +08:00
Joshua Chen
d2ca4a171c
refactor(core): properly code-split NotFound page (#7405) 2022-05-12 16:21:28 +08:00
Massoud Maboudi
bcf3813dca
chore(theme-translations): complete Farsi translations (#7400) 2022-05-12 10:38:49 +08:00
Joshua Chen
d3788bd126
fix(mdx-loader): use React.Fragment as fragment factory (#7392) 2022-05-11 11:02:41 +08:00
Joshua Chen
60960b471d
chore: upgrade dependencies, fix lint-staged not outputting formatted log (#7388)
* chore: upgrade dependencies, fix lint-staged not outputting formatted log

* fix

* fix lock...
2022-05-10 22:42:45 +08:00
Joshua Chen
6e10a48059
fix(content-docs): restore functionality when a category only has index page (#7385)
* fix(content-docs): restore functionality when a category only has index page

* use this internally
2022-05-10 14:50:43 +08:00
Joshua Chen
c3880cc342
refactor(create): clean up logic when prompting for unspecified arguments (#7374) 2022-05-08 22:00:28 +08:00
Joshua Chen
7c9892888d
refactor: normalize error logging (#7370) 2022-05-08 13:40:34 +08:00
Joshua Chen
87c7639a52
fix(cli): output correct path when swizzling bare-file component in subfolder (#7369)
* fix(cli): output correct path when swizzling bare-file component in subfolder

* fix snapshot
2022-05-08 13:23:40 +08:00
Joshua Chen
f29bb73300
fix(core): make error boundary fallback a component instead of a callback (#7368) 2022-05-07 22:35:57 +08:00
Joshua Chen
5bc50ff71f
chore: upgrade dependencies (#7366) 2022-05-07 19:46:21 +08:00
Joshua Chen
c0bd145a29
fix(theme-classic): resolve customCss from site dir (#7363) 2022-05-07 18:57:35 +08:00
Michael Hughes
204b9a386f
fix(core): allow githubPort in config validation (#7360)
* Update configValidation.ts

Proposed fix for #7359

* add test case

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-05-07 13:41:45 +08:00
Romain Dejoux
e32ff04d93
fix(types): declare missing peerDependencies 2022-05-06 17:12:04 +08:00
Sébastien Lorber
26df8c83ce
chore: prepare v2.0.0-beta.20 release (#7347) 2022-05-05 20:26:48 +02:00
Sébastien Lorber
dfe743c660
fix: avoid flash of page scrolling to top on refresh (#7342) 2022-05-05 19:39:10 +08:00
Joshua Chen
49a9f0345c
fix(theme-classic): properly highlight code block line numbers (#7341) 2022-05-05 18:07:46 +08:00
Reece Dunham
d3f526fd8a
fix(core): inject docusaurus version into SSR as local (#7329)
* Revert "fix(core): handle case where package.json is not available at CWD (#7187)"

This reverts commit 3b32a41f22.

* properly fix

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-05-05 09:10:47 +08:00
Alexey Pyltsyn
6fa51890f0
chore: prepare v2.0.0-beta.19 release (#7325)
* chore: prepare v2.0.0-beta.19 release

* v2.0.0-beta.19
2022-05-04 18:38:45 +03:00
Alexey Pyltsyn
7944fdd9a2
refactor: minor improvements for breadcrumbs (#7299)
* refactor: minor improvements for breadcrumbs

* Apply suggestions from code review

* Update packages/docusaurus-theme-translations/locales/fr/theme-common.json

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-05-04 17:54:47 +03:00
Joshua Chen
b3feb01009
fix(theme-classic): remove breadcrumb items without href from microdata (#7304) 2022-05-04 16:54:24 +02:00
Joshua Chen
35b0f0d0aa
refactor(create): add i18n config in init template (#7290) 2022-05-04 16:09:08 +02:00
Alexey Pyltsyn
be0dc6b0c9
chore: upgrade Infima to alpha.39 (#7306) 2022-05-04 16:06:54 +02:00
Joshua Chen
b1cafe73df
refactor: remove long-deprecated routesLoaded lifecycle (#7257) 2022-05-04 12:32:49 +02:00
Joshua Chen
51815c12c9
feat(theme-classic): extensible code block magic comment system (#7178) 2022-05-04 12:31:13 +02:00
Joshua Chen
785fed723f
refactor(theme-classic): move all sidebar-related config under themeConfig.docs.sidebar (#7277) 2022-05-04 12:08:19 +02:00
Joshua Chen
881430078e
refactor(create): update screenshots in quick start tutorial (#7286) 2022-05-04 12:00:12 +02:00
Joshua Chen
7a3894e664
docs: update docs for logger, add API docs to website (#7305)
* docs: update docs for logger, add API docs to website

* fix broken image
2022-05-04 17:59:47 +08:00
Joshua Chen
1a9bdd1a4e
refactor: use export = syntax for utility packages (#7295) 2022-05-03 20:22:22 +08:00
Joshua Chen
a2c993bf9a
fix(*): make TypeScript realize that each plugin package has a default export (#7294) 2022-05-03 18:23:34 +08: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
e1b7171bb1
fix(core): allow empty static directories (#7285)
* fix(core): allow empty static directories

* improve comment

* add empty directory
2022-05-02 16:34:30 +08:00
Joshua Chen
53564f33ab
refactor(core): prefetch/preload refactor (#7282) 2022-05-02 12:56:58 +08:00
Joshua Chen
afc72480ab
refactor(eslint-plugin): migrate to TS-ESLint infrastructure (#7276)
* refactor(eslint-plugin): migrate to TS-ESLint infrastructure

* fix lock
2022-04-30 17:57:57 +08:00
Joshua Chen
f063e9add5
chore: upgrade dependencies (#7274)
* chore: upgrade dependencies

* remove nodemon
2022-04-30 14:32:37 +08:00
Joshua Chen
710f898703
refactor(theme-classic): multiple re-arrangements (#7273)
* refactor(theme-classic): enforce collocated JSX and module CSS

* refactor
2022-04-30 12:29:54 +08:00