Commit graph

2404 commits

Author SHA1 Message Date
Dzung Do
e801d915bf
fix(theme-translations): typo in vi locale (#7694)
Update plugin-ideal-image.json
2022-06-28 10:19:54 +08:00
Ngô Quốc Đạt
b88a915a64
chore(theme-translations): complete vi translations (#7691)
* chore(theme-translations): complete vi translations

* Edit `theme.SearchBar.seeAll`
2022-06-27 23:31:40 +08:00
Ahmed Altomy
8e4f209df9
chore(theme-translations): complete ar translations (#7683)
* Edit Locale "Arabic ar" texts

* chore(theme-translations): complete ar translations #7683
2022-06-27 23:30:30 +08:00
Tom Mrazauskas
bb558ffcb9
test(logger): use jest-serializer-ansi-escapes (#7685)
* chore(logger): use jest-serializer-ansi-escapes

* move serialiser to jest.config
2022-06-27 15:03:51 +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
2c7012f706
refactor(theme-common): rename useDynamicCallback to useEvent (#7671) 2022-06-24 12:10:03 +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
Joshua Chen
4b5a47ba37
feat(client-redirects): make plugin respect onDuplicateRoutes config (#7649) 2022-06-22 13:32:02 +02:00
Joshua Chen
51d7899b0d
fix(theme-common): add a missing generic constraint (#7648) 2022-06-22 13:29:31 +02:00
Joshua Chen
5137543914
chore: upgrade dependencies (#7646) 2022-06-18 17:03:41 +08:00
Joshua Chen
bfba6a8b02
refactor: remove "error" reporting level, move reportMessage to logger (#7642) 2022-06-17 14:51:00 +02:00
Joshua Chen
1b9bec1042
feat: allow customizing localization path of each locale (#7624) 2022-06-17 11:07:35 +02:00
Paul O’Shannessy
39e3e3715e
chore(create): update the facebook template with current assets (#7639) 2022-06-17 12:26:22 +08:00
Hyunseung Lee
331b83ca40
chore(theme-translations): complete ko translations (#7633)
* Update KO i18n translations

* Update ko i18n

* Update algolia i18n

Co-authored-by: 이정환 <king199777@gmail.com>
Co-authored-by: Yongmin Hong <revi@pobox.com>
2022-06-17 10:29:59 +08:00
Sébastien Lorber
6df379ca6f
fix(docs): forward doc frontMatter.sidebar_custom_props to linking sidebar category (#7638) 2022-06-16 19:20:07 +02:00
Joshua Chen
20e8e90762
fix(content-docs): allow translating doc labels in sidebars.js (#7634) 2022-06-16 16:11:21 +02:00
Matthias Koch
5fe33bef06
fix(content-pages): add article wrapper around MDXContent (#7595) 2022-06-16 14:00:22 +02:00
Joshua Chen
89e146f596
fix(utils): allow any non-boundary characters in Markdown heading ID (#7604) 2022-06-16 12:32:42 +02:00
Joshua Chen
0114f00069
refactor(cli): make the CLI an even thinner wrapper around command functions (#7583) 2022-06-15 19:28:07 +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
Alexander Nestorov
b503523f66
feat(core): allow opting out of HTML minification (#7581) 2022-06-15 18:41:03 +02:00
dpang314
1f0440074a
fix(cssnano-preset): disable z-index minification (#7593)
* fix(cssnano-preset): disable z-index minification

* add z-index tests link to pages tests

* revert change to docs
2022-06-15 12:13:25 +02:00
Joshua Chen
e12a2efaeb
docs: normalize capitalization (#7619) 2022-06-15 13:04:33 +08:00
Joshua Chen
aeb6c971c0
docs: normalize capitalization (#7613) 2022-06-14 14:01:06 +08:00
Joshua Chen
56e7c3102e
docs: advise using Node 18 in deployment (#7611) 2022-06-14 11:46:13 +08:00
Joshua Chen
fb3138d722
refactor(client-redirects): elaborate documentation, minor refactor (#7607) 2022-06-13 22:04:39 +08:00
Yangshun Tay
feb9cf01ed
fix: force refresh on chunk preload error (#7600)
* fix: force refresh on preload error

* misc: add comment

* Update PendingNavigation.tsx
2022-06-11 17:03:11 +08:00
Joshua Chen
ec8230b7ba
chore: upgrade dependencies (#7596) 2022-06-11 11:51:09 +08:00
dht
5c9e4a2dcd
docs: make localhost links clickable (#7582)
* docs: clickable localhost links

* revert changes in auto-generated examples folder

Co-authored-by: dht <dht@users.noreply.github.com>
2022-06-08 14:33:50 +08:00
Joshua Chen
7869e74fd7
refactor(pwa): simplify registerSW code, fix ESLint errors (#7579) 2022-06-07 21:42:17 +08:00
Joshua Chen
f8163ff2ee
fix(theme-translations): improve zh translation (#7570) 2022-06-05 22:42:22 +08:00
Joshua Chen
90d2de6baf
chore: upgrade dependencies (#7560)
* chore: upgrade dependencies

* fix
2022-06-04 21:05:53 +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
Sébastien Lorber
17fe43ecc8
fix(theme-classic): code block wrap mode should allow wrapping in the middle of a word (#7551) 2022-06-02 17:40:42 +02:00
Joshua Chen
abe5450526
feat(core): allow customizing the i18n directory path (#7386)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-06-02 17:37:14 +02:00
dpang314
b215ad0e1b
fix(theme-classic): inconsistent code block wrapping (#7485)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-06-02 15:56:54 +02:00
Sébastien Lorber
7dd822becb
chore: use npx --yes (#7549) 2022-06-02 15:07:28 +02:00
Lane Goolsby
1efcfc4671
feat(analytics): allow query/hash changes to be sent to GA (#7545)
Co-authored-by: Lane Goolsby <lanegoolsby@rocketmortgage.com>
2022-06-02 12:47:52 +02:00
JP
f25ee0cbf5
feat(live-codeblock): add support for noInline to interactive code blocks (#7514)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-06-02 10:34:20 +02:00
Sébastien Lorber
6afc902672
chore: update static-site-generator-webpack-plugin (#7547) 2022-06-02 10:09:00 +02:00
dpang314
4f26a1911a
feat(content-docs): last_update front matter (#7461)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-06-01 16:27:58 +02:00
John Reilly
338b819abc
feat: add engines field to templates' package.json (#7520) 2022-06-01 13:34:34 +02:00