Commit graph

2423 commits

Author SHA1 Message Date
Joshua Chen
cba8be01a3
fix(theme-classic): validate options properly (#7755)
* fix(theme-classic): validate options properly

* improve normalization

* fix doc
2022-07-11 19:24:46 +08:00
Joshua Chen
636d47060e
refactor(core): use has instead of get to test for existence in ExecEnv (#7763)
refactor(core): use has instead of get to test for existence
2022-07-11 19:19:17 +08:00
Arthur Brugière
1ad97843ac
fix(algolia-search): test for canUseIntersectionObserver (#7761)
[FIX] Update observer condition

Replace condition canUseDOM to canUseIntersectionObserver as check is done for IntersectionObserver usage
2022-07-11 19:03:54 +08:00
LichLord91
cd7da6113e
fix(theme-classic): fix Layout theme height CSS (#7752)
* fix(theme-classic):  fix Layout theme css height

This fixes html and body tags height from bug report

https://github.com/facebook/docusaurus/issues/7746

* Update styles.module.css

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-07-10 00:32:48 +08:00
Joshua Chen
07641ae53d
chore: upgrade dependencies (#7754) 2022-07-10 00:32:32 +08:00
Sébastien Lorber
f0f97f29f9
chore: prepare v2.0.0-beta.22 release (#7741) 2022-07-08 18:34:05 +02:00
Sébastien Lorber
d3d22d3a72
refactor(theme): nest theme icons under subfolder @theme/Icon/* (#7740) 2022-07-08 16:56:53 +02:00
Sébastien Lorber
c3ff131110
refactor(theme): split BlogPostItem into smaller theme subcomponents (#7716) 2022-07-08 13:28:53 +02:00
Rein van Haaren
c7f18801da
feat(theme-translations): Dutch translation (#7732)
Dutch translation
2022-07-08 13:47:47 +08:00
Forresst
a9406e7cb9
fix(theme-translations): improve fr translation (#7731) 2022-07-07 15:48:47 +08:00
赤城结衣
bb110e5400
fix(theme-translations): improve grammar of zh translation (#7696)
* fix: a grammar mistake

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

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

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-07-07 11:52:00 +08:00
Sunghyun Cho
a25e18ce32
fix(theme): show blog post edit link even when no tag & not truncated (#7727)
Show edit link even when no tag & not truncated.
2022-07-06 18:46:49 +02:00
Forresst
ae2ba5e37a
feat(algolia-search): allow translating search modal (#7666)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-07-06 18:21:55 +02:00
Sébastien Lorber
713dcdf7a8
refactor(types): split into multiple files (#7710) 2022-07-06 18:00:57 +02:00
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
Johnie Hjelm
61f769ea52
feat(theme-translations): Swedish translation (#7715) 2022-07-03 13:32:43 +08:00
Wes McNamee
ee376d19f6
feat(deploy): copy local git config to tmp repo (#7702) 2022-07-01 15:17:23 +02:00
Joe Harrison
825211f41d
fix(content-docs): format last update date as "Jun 19, 2020" (#7673)
* consistent date formatting betweeen docs and blog

* update error message

* use short month names

Co-authored-by: Joe Harrison <jharrison@drwuk.com>
2022-06-29 18:19:29 +02:00
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