Commit graph

2109 commits

Author SHA1 Message Date
Joshua Chen
aa5a2d4c04
test: enable a few jest eslint rules (#6900)
* test: enable a few jest eslint rules

* more
2022-03-12 08:43:09 +08:00
Sébastien Lorber
1efc6c6091
refactor(theme-classic): split theme footer into smaller components + swizzle config (#6894)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-11 14:55:53 +01:00
Joshua Chen
c9ee6e467c
refactor: import jest as global; unify import style of some modules (#6898)
* refactor: import jest as global

* fix react
2022-03-11 19:04:27 +08:00
Sébastien Lorber
e97dc0d37e
refactor(theme-classic): split sidebar into smaller parts (#6844)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-10 16:55:30 +01:00
Joshua Chen
e08777c9c5
refactor(theme-classic): avoid using clsx class dict with CSS modules (#6891) 2022-03-10 20:49:52 +08:00
Joshua Chen
ff0d981853
fix(content-docs): give context about sidebar loading failure (#6887) 2022-03-10 11:21:10 +08:00
Joshua Chen
e842b40a54
fix(theme-algolia): declare content-docs as dependency (#6888) 2022-03-10 11:20:59 +08:00
Sébastien Lorber
e203001758
feat(theme-classic): MDXContent wrapper component (#6842) 2022-03-09 19:38:31 +01:00
Joshua Chen
86861ea0f3
refactor(theme-classic): consistently add span wrapper for layout links (#6846) 2022-03-09 16:41:12 +01:00
Joshua Chen
2a7120cc02
docs: mention configureWebpack devServer return value (#6881) 2022-03-09 20:23:38 +08:00
Joshua Chen
23a34c1a07
refactor: prefer fs.outputFile to ensureDir + writeFile (#6880)
* refactor: prefer fs.outputFile to ensureDir + writeFile

* fix test

* fix
2022-03-09 17:50:33 +08:00
Roberto Vidal
73df485aec
fix(core): ensure stable webpack theme aliases sorting (#6878) 2022-03-09 09:40:47 +08:00
Joshua Chen
99b1fb90d5
chore: upgrade dependencies (#6879) 2022-03-09 07:34:35 +08:00
Ngô Quốc Đạt
d34c8ae694
chore(theme-translations): complete Vietnamese translations (#6877) 2022-03-09 07:18:05 +08:00
Joshua Chen
61290c4374
test(core): improve test coverage (#6876) 2022-03-08 22:10:07 +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
44d73f7230
refactor: make JS executables included in the tsconfig for editor hints (#6861)
* refactor: make JS executables included in the tsconfig for editor hints

* oops
2022-03-06 23:07:23 +08:00
tae
a6e72192fa
fix(create): load entry file after node version checking (#6860)
* refactor(create): add exception handling if external command is fails

refers #4870

85e87b560e

* fix(create): load entry file after node version checking
2022-03-06 22:18:38 +08:00
Joshua Chen
5e2168ea22
refactor(lqip-loader): split test files (#6858) 2022-03-06 18:34:04 +08:00
Joshua Chen
f763ac13a9
test: improve test coverage (#6857) 2022-03-06 17:55:21 +08:00
Joshua Chen
4db0c620de
refactor: enable a few TS flags (#6852)
* refactor: enable a few TS flags

* refactor

* revert to working version

* fix

* better

* change
2022-03-06 13:09:10 +08:00
Evan
9f925a42bf
fix(core): fix swizzle legend typo (#6854)
* fix(core): fix swizzle legend typo

* Update packages/docusaurus/src/commands/swizzle/tables.ts

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-06 11:05:17 +08:00
tae
2e163a9ec4
feat(content-docs): allow custom props through _category_.json (#6780)
* feat(content-docs): allow custom props through _category_.json

* refactor

* documentation

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-05 18:52:36 +08:00
Joshua Chen
b2d6e453e3
fix(core): make plugin lifecycles consistently bound to the plugin instance (#6850) 2022-03-05 17:57:10 +08:00
Joshua Chen
a756ddb7e1
fix(cli): write-heading-id should not generate colliding slugs when not overwriting (#6849) 2022-03-05 17:25:47 +08:00
Tsz W. TAM
027e8f506b
fix: minor Chinese translation fixes (#6847)
Before: {count} 篇文件帶有標籤 篇帶有標籤「{tagName}」
After: {count} 篇文件帶有標籤「{tagName}」
2022-03-05 15:51:59 +08:00
Sam Gutentag
aa5c9f5064
docs: make tutorial code block directly copyable (#6833)
* code block included diff +,- 

Sample code block could not be copy/pasted as the tutorial mentions with the lines that appear to be from a diff tool.

* add highlight

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-04 09:04:02 +08:00
Sébastien Lorber
8dbd656340
chore: prepare v2.0.0-beta.17 release (#6829) 2022-03-03 18:44:41 +01:00
Sébastien Lorber
7eaec081e8
fix(theme-classic): restore docusaurus search meta (#6827) 2022-03-03 15:56:44 +01:00
Joshua Chen
c387a177e8
refactor(theme-common): unify missing context errors (#6826)
* refactor(theme-common): unify missing context errors

* update test

* more robust
2022-03-03 22:26:56 +08:00
Sébastien Lorber
2144db0f58
fix(theme-common): breadcrumbs home bug in docs-only (#6824) 2022-03-03 20:20:02 +08:00
Joshua Chen
c90d25ca2f
fix(content-docs): always sort autogenerated sidebar items by file/folder name by default (#6700) 2022-03-03 12:39:54 +01:00
Joshua Chen
f04cb7abb9
test(content-docs): refactor navigation test snapshot (#6821)
* test(content-docs): refactor navigation test snapshot

* format
2022-03-03 14:00:42 +08:00
Sébastien Lorber
fb201313b9
fix(theme-common): docs breadcrumbs not working with baseUrl (#6816) 2022-03-02 18:09:05 +01:00
Joshua Chen
6cbc58943e
feat: allow blog authors email (#6783) 2022-03-02 16:28:17 +01:00
Joshua Chen
7ec44bb32c
refactor(theme-classic): replace color mode toggle with button; remove switchConfig (#6771)
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
2022-03-02 15:57:17 +01:00
Joshua Chen
b1492135c2
refactor(theme-classic): use Material icon for language dropdown (#6769) 2022-03-02 13:04:40 +01:00
Joshua Chen
c1fb3deace
fix(theme-classic): allow code tags containing inline elements to stay inline (#6767) 2022-03-02 13:01:58 +01:00
David Stotijn
2e3eec2d08
fix: consistently use max-width: 996px in media queries (#6815)
* fix: consistently use `max-width: 996px` in media queries

Follow `docusaurus-theme-classic` and use `996px` as the cutoff
between desktop and mobile screen width.

* revert example changes

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-02 19:43:44 +08:00
Joshua Chen
8a24d56783
fix(mdx-loader): allow image paths to be URL encoded (#6792) 2022-03-02 12:14:53 +01:00
Joshua Chen
954e4d42fc
fix(core): remove hash/query when filtering existing files for broken link check (#6812)
* fix(core): remove hash/query when filtering existing files for broken link check

* fix tests
2022-03-02 12:46:38 +08:00
Joshua Chen
a4dc03edee
chore: upgrade dependencies (#6789)
* chore: upgrade dependencies

* upgrade setup-node
2022-03-01 10:40:34 +08:00
Joshua Chen
9d7ed31661
fix(mdx-loader): suppress image reading warning in Yarn PnP; log warning instead of error (#6779) 2022-02-28 10:49:53 +08:00
Joshua Chen
3e5da386ce
refactor: move test utils into test folder (#6777) 2022-02-27 19:05:44 +08:00
Alex Nicholls
68a55f0d11
fix(create): update broken SVG paths in templates (#6762)
* fix: Update broken URL in typescript template example

* fix SVG images; improve a11y

* format

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-02-27 07:44:50 +08:00
Joshua Chen
670f2e5268
refactor(utils): categorize functions into separate files (#6773) 2022-02-26 21:17:21 +08:00
Joshua Chen
e101acd132
chore: various internal fixes (#6761) 2022-02-25 23:18:08 +08:00
Sébastien Lorber
124511f445
chore: prepare v2.0.0-beta.16 release (#6760) 2022-02-25 16:00:11 +01:00
Sébastien Lorber
17b8eded79
refactor(theme-classic): merge CSS files for Heading (#6759) 2022-02-25 15:08:45 +01:00