Commit graph

4742 commits

Author SHA1 Message Date
Joshua Chen
e8a2f66a0f
chore: upgrade dependencies (#6946)
* chore: upgrade dependencies

* reformat
2022-03-21 07:45:29 +08:00
Billy Chan
92fcc0ddc5
docs: add SeaORM docs to showcase (#6943)
* Add SeaORM docs to showcase

* minor tweak

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-19 21:21:11 +08:00
Joshua Chen
19942f990a
chore: migrate Jest and website to SWC (#6944)
* chore: migrate Jest and website to SWC

* ignore template
2022-03-19 20:56:30 +08:00
Joshua Chen
53f152c42d
refactor(core): improve error message when a page has no default-export (#6941) 2022-03-19 09:30:31 +08:00
Sébastien Lorber
74f653dd82
refactor(theme-{classic,common}): change how site/page/search metadata is handled (#6925) 2022-03-18 18:53:00 +01:00
Alexey Pyltsyn
74e37e86ba
fix: remove semicolon from HTML output (#6936) 2022-03-18 19:16:32 +03:00
Sébastien Lorber
a1d333e96b
refactor(theme-{classic,common}): split navbar into smaller components + cleanup + swizzle config (#6895) 2022-03-18 16:21:53 +01:00
Alexey Pyltsyn
ecbe0b26c5
refactor(theme-{classic,common}): refactor ColorModeToggle + useColorMode() hook (#6930)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
Co-authored-by: sebastienlorber <lorber.sebastien@gmail.com>
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2022-03-18 15:28:35 +01:00
Sébastien Lorber
8a1421a938
feat(core,theme): useRouteContext + HtmlClassNameProvider (#6933)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-18 10:57:32 +01:00
Alexey Pyltsyn
9b4ba78f45
refactor(theme-classic): little breadcrumbs improvements (#6932) 2022-03-17 19:48:04 +01:00
Joshua Chen
cc0bceab9c
chore: tighten ESLint config (#6931)
* chore: tighten ESLint config

* more refactor

* refactor push

* fix
2022-03-17 17:59:41 +08:00
Joshua Chen
f70ddf7e69
refactor(core): minor routes type improvement (#6929) 2022-03-17 13:38:28 +08:00
Joshua Chen
bfe7ca6237
chore(pwa, sitemap, client-redirects, ideal-image): JSDoc for types (#6928)
* chore(pwa, sitemap, client-redirects, ideal-image): JSDoc for types

* fix
2022-03-17 12:05:23 +08:00
Kayce Basques
284649c7c8
docs: clarify the usage of slug (#6926)
* Clarify the usage of slug

As a new user it was unclear whether setting `slug` would change the URL relative to the root directory or relative to the docs directory. The example I added should make that clear without needing to test out the functionality in a Docusaurus instance (which is what I had to do).

* editorial changes

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-17 07:54:18 +08:00
Joshua Chen
da9f38b748
refactor(client-redirects): migrate validation to validateOptions lifecycle (#6924) 2022-03-16 17:24:01 +01:00
Joshua Chen
68aaf9201f
feat(core): allow plugin lifecycles to return relative paths (#6921)
* feat(core): resolve plugin lifecycles returning relative paths

* fix typo

* fix tests

* revert

* rename path -> entryPath
2022-03-16 20:47:15 +08:00
Joshua Chen
8d1c1954c1
refactor(content-blog): clean up type definitions; in-code documentation (#6922)
* refactor(content-blog): clean up type definitions; in-code documentation

* add doc
2022-03-16 19:36:57 +08:00
WonChul Heo
46b1027c4a
fix(content-blog): remove double leading slash in blog-only paginated view (#6918)
* fix(content-blog): Fix permalink function of paginateBlogPosts

* add test

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-15 16:45:05 +08:00
Pawel Kowaluk
f4f4c1dfd8
feat(theme-classic): set aria-expanded on expandable sidebar categories (#6914) 2022-03-15 16:31:55 +08:00
Joshua Chen
ff1b7168ba
chore: upgrade dependencies (#6916) 2022-03-15 13:16:21 +08:00
Joshua Chen
ad88f5cc87
test: improve test coverage; multiple internal refactors (#6912) 2022-03-14 21:53:57 +08:00
Joshua Chen
12a7305238
feat: add SEO microdata for doc breadcrumbs (#6697)
* feat: add SEO microdata for doc breadcrumbs

* refactor

* refactor
2022-03-14 08:45:47 +08:00
Bugo
4e4cc0cc17
feat(theme-translations): complete Russian translations (#6781) 2022-03-14 08:44:50 +08:00
Joshua Chen
dc975fecbf
refactor: convert Jest infrastructure to TS (#6910) 2022-03-14 08:43:51 +08:00
Ariful Alam
1305977098
docs: add Reactive Button site to showcase (#6911)
* Add reactive-button.png to showcase

* Add `Reactive Button` to users.tsx

* optimizt image

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-14 08:43:39 +08:00
Joshua Chen
009d87cbd9
refactor(content-blog): improve error message of authors map validation (#6909) 2022-03-14 08:16:12 +08:00
Joshua Chen
8c1e518ba2
chore: do not print prototype in jest snapshot (#6908) 2022-03-13 19:34:50 +08:00
Joshua Chen
3a4b9b4c30
refactor: install eslint-plugin-regexp (#6906)
* refactor: install eslint-plugin-regexp

* simplify

* simplify

* fix
2022-03-13 18:32:17 +08:00
Nayan Patel
127183e70e
docs: update image for digital support services (#6904)
* Delete digitalsupportservices.png

* add new image

* Delete digitalsupportservices.png

* Compressed version

* Delete digitalsupportservices.png

* add image correct res

* optimize image

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-13 11:50:56 +08:00
Joshua Chen
d85cee576d
test: improve test coverage; properly test core client APIs (#6905)
* test: improve test coverage

* fix
2022-03-12 23:15:45 +08:00
Joshua Chen
76cb012209
chore: spell-check test files (#6903) 2022-03-12 15:24:56 +08:00
Joshua Chen
f6baaa6b75
test(theme-common): improve test coverage (#6902)
* test(theme-common): improve test coverage

* revert
2022-03-12 13:17:21 +08:00
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
Odarpi
e412d367a0
docs: add EduLinks site to showcase (#6892)
* Add EduLinks to users.tsx and edulinks.png to showcase

* optimize image

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-10 21:16:19 +08: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
2648ec090e
docs: editorial fixes (#6889) 2022-03-10 13:43:22 +08:00
Begula
63caeb6073
docs(cli): add info about development on github codespaces (#6883)
* docs: add info about development on github codespaces

* docs: move from installation to cli

* docs: fix grammar

* Update cli.md

* add word

* Update cli.md

* Update cli.md

* format

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-10 11:22:21 +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