Sébastien Lorber
bc0538f6fa
refactor(theme-common): move useDocsPreferredVersion() to public api ( #7729 )
2022-07-06 17:58:18 +02:00
Joshua Chen
fa22927250
chore: upgrade dependencies ( #7684 )
...
* chore: upgrade dependencies
* fix
* reupgrade
* downgrade
2022-07-04 19:36:43 +08:00
Sébastien Lorber
cebe4840aa
misc: add IDE language annotation comments ( #7678 )
...
add IDE language annotations
2022-06-25 09:55:28 +08:00
Sébastien Lorber
afc08eef4f
refactor(theme): move LayoutProviders to Layout/Provider; composeProviders util ( #7676 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-06-24 18:36:27 +02:00
Sébastien Lorber
90a8ca387e
chore: prevent importing theme components with relative paths ( #7674 )
2022-06-24 17:22:44 +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
Sébastien Lorber
42ab07f62f
feat(theme-classic): themeConfig navbar/footer logos accept className/style + update Meta Open-Source Logo ( #7643 )
2022-06-23 11:22:27 +02:00
Sébastien Lorber
a989a1d17e
chore: upgrade Infima to alpha.40 ( #7664 )
2022-06-23 16:50:19 +08:00
Ben Myers
3990404419
fix(theme-classic): expose empty string alt text in navbar logos ( #7659 )
...
* fix: Expose empty string alt text in brand logos via nullish coalescing
* fix: Update boolean logic for fallbacks
* fix: Dogfood fix on Docusaurus brand logo
* refactor: Un-inline alt logic, and reduce chance of duplication in fallback
2022-06-23 11:42:52 +08:00
Sébastien Lorber
fd87afd249
refactor(docs,theme): split DocItem comp, useDoc hook ( #7644 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-06-22 14:27:23 +02:00
Matthias Koch
5fe33bef06
fix(content-pages): add article wrapper around MDXContent ( #7595 )
2022-06-16 14:00:22 +02:00
Joshua Chen
b4d93b9bd0
chore: upgrade to TS 4.7, compile with NodeNext ( #7586 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-06-15 19:15:11 +02:00
Joshua Chen
ec8230b7ba
chore: upgrade dependencies ( #7596 )
2022-06-11 11:51:09 +08:00
Joshua Chen
7869e74fd7
refactor(pwa): simplify registerSW code, fix ESLint errors ( #7579 )
2022-06-07 21:42:17 +08:00
Le Thi Van
5444a230cf
feat: allow specifying custom target for FooterLogo ( #7557 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-06-03 17:28:27 +02:00
Sébastien Lorber
9d0bf2e090
feat: add admonition type title translations ( #7556 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-06-03 16:40:02 +02:00
Alexey Pyltsyn
5746c58f41
refactor: handle all admonitions via JSX component ( #7152 )
...
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-06-03 14:26:33 +02:00
Joshua Chen
9023b7740c
refactor: remove sub-eslintrc, fix more lint errors ( #7530 )
2022-05-30 14:49:51 +08:00
Joshua Chen
f443e992b9
refactor: mark toc in loaded MDX as non-optional ( #7524 )
2022-05-29 22:36:41 +08:00
Joshua Chen
8b1acb50d1
fix: make type-checking pass in Yarn PnP ( #7521 )
...
* fix: make type-checking pass in Yarn PnP
* fix
* fix?
* fix...
* almost there
* try again
* little fix
* disable
2022-05-28 23:52:05 +08:00
Sébastien Lorber
613d938cfc
chore: prepare v2.0.0-beta.21 release ( #7513 )
...
* add beta 21 version
* v2.0.0-beta.21
* typo
2022-05-27 18:29:11 +02:00
Joshua Chen
9cf2bf1199
fix(core): always treat error boundary fallback as a callback ( #7492 )
...
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-05-26 13:05:03 +02:00
Joshua Chen
e955ae472d
fix(theme-classic): allow nested task lists to preserve the indent ( #7438 )
...
* fix(theme-classic): allow nested task lists to preserve the indent
* add Ul back
2022-05-26 12:41:23 +02:00
Joshua Chen
47a2cca17d
chore: require Node 16.14 ( #7501 )
2022-05-26 11:44:18 +02:00
Joshua Chen
f609acab4f
fix(theme-classic): consistently apply the right active class name for all navbar items ( #7430 )
2022-05-25 19:01:29 +02:00
Jan Peer Stöcklmair
5fcb742aa1
feat(theme-classic): allow className as option for type: "search" ( #7357 )
...
* feat(theme-classic): allow className as option for type: "search"
* fixup! feat(theme-classic): allow className as option for type: "search"
* refactor
Co-authored-by: Jan Peer Stoecklmair <jan.peer.stoecklmair@dynatrace.com>
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-05-25 18:41:05 +08:00
Joshua Chen
d50fe3b670
test: fix ALL type errors in tests ( #7487 )
2022-05-25 14:01:10 +08:00
Joshua Chen
e2e40b8f5f
test: fix some type errors in test files ( #7486 )
2022-05-25 11:46:10 +08:00
Joshua Chen
624735bd92
refactor: fix more type-aware linting errors ( #7479 )
2022-05-24 19:19:24 +08:00
Joshua Chen
bf1513a3e3
refactor: fix a lot of errors in type-aware linting ( #7477 )
2022-05-24 15:40:26 +08:00
Joshua Chen
3666a2ede5
refactor: remove a lot of implicit anys ( #7468 )
2022-05-23 15:40:53 +08:00
Joshua Chen
89b0fff128
refactor: reduce number of leaked anys ( #7465 )
2022-05-23 00:30:32 +08:00
Joshua Chen
9d1a91774a
chore: upgrade dependencies ( #7462 )
2022-05-22 10:40:50 +08:00
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
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
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
c0bd145a29
fix(theme-classic): resolve customCss from site dir ( #7363 )
2022-05-07 18:57:35 +08:00
Sébastien Lorber
26df8c83ce
chore: prepare v2.0.0-beta.20 release ( #7347 )
2022-05-05 20:26:48 +02:00
Joshua Chen
49a9f0345c
fix(theme-classic): properly highlight code block line numbers ( #7341 )
2022-05-05 18:07:46 +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
Alexey Pyltsyn
be0dc6b0c9
chore: upgrade Infima to alpha.39 ( #7306 )
2022-05-04 16:06:54 +02:00