Commit graph

1750 commits

Author SHA1 Message Date
Joshua Chen
87592bca03
refactor: ensure all types are using index signature instead of Record (#6995)
* refactor: ensure all types are using index signature instead of Record

* kick CI
2022-03-25 18:06:30 +08:00
Joshua Chen
fa50d09d3b
chore: upgrade dependencies (#6991)
* chore: upgrade dependencies

* fix
2022-03-25 10:47:08 +08:00
Kayce Basques
395136a731
docs: fix example admonition syntax (#6988)
* Fix example admonition syntax

There was a space between `::: info` should be `:::info` or else Docusaurus does not render it as an admonition.

* kick CI

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-25 08:54:27 +08:00
Jadon N
19d2a18817
docs: npm run tsc -> npx tsc (#6978)
* Correct npm run tsc to npm run typecheck

According to this page, you should run `npm run tsc` to run `tsc` and do a type check. However, in the package.json file for Docusaurus version 2.0.0-beta.17 the command is actually `npm run typecheck`, which runs `tsc`.

This update only replaces `tsc` with `typecheck` so the npm script will run correctly.

* Recommend npx tsc for type-checking

Based on feedback for the original change to replace `npm run tsc` with `npm run typecheck`, a better solution that was suggested was to use npx to run tsc instead of an npm script. `npx tsc` should work regardless of the template/presets you installed when you installed Docusaurus.
2022-03-24 11:14:09 +08:00
Joshua Chen
948271a0ff
test: improve test coverage; reorder theme-common files (#6956)
* test: improve test coverage; reorder theme-common files

* no need for this
2022-03-22 15:33:55 +08:00
Alessandro Festa
1777fc4d76
docs: add K3ai to showcase (#6952)
* Add files via upload

* Update users.tsx

* Delete logo.jpg

* Add files via upload

* Update users.tsx

* Delete k3ai.jpg

* Add files via upload

* Update users.tsx

* k3ai website PR

* lots of changes (!)

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-21 23:47:37 +08:00
Kyohei Fukuda
3c7b39b739
docs: add pdfme docs to showcase (#6948)
* Add pdfme docs to showcase

* minor tweaks

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-21 17:25:14 +08:00
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
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
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
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
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
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
Joshua Chen
ff1b7168ba
chore: upgrade dependencies (#6916) 2022-03-15 13:16:21 +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
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
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
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
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
2a7120cc02
docs: mention configureWebpack devServer return value (#6881) 2022-03-09 20:23:38 +08:00
Joshua Chen
99b1fb90d5
chore: upgrade dependencies (#6879) 2022-03-09 07:34:35 +08:00
Ariful Alam
567b03d63d
docs: add Reddit Image Fetcher site to showcase (#6856)
* Add reddit-image-fetcher.png to showcase

* Add Reddit Image Fetcher to users.tsx

* Update reddit-image-fetcher.png with correct dimension

* optimize image

* Set Reddit Image Fetcher's source as `null` and remove open source tag

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-08 13:42:28 +08:00
moonrailgun
2059e53e5d
docs: update TRPG Engine showcase (#6875) 2022-03-08 12:34:04 +08:00
Joshua Chen
5ea76f2376
docs: mark clutch and gulp as opensource (#6871) 2022-03-08 07:34:35 +08:00
Joshua Chen
7fc134ba0e
docs: update showcase data (#6862) 2022-03-07 13:11:30 +08:00
Evan
edb4d00096
docs: update Evan Tay personal site showcase (#6855)
* docs: update evantay showcase image

* docs: update evnatay showcase title

* fix test

* retake photo

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-06 13:59:42 +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
Sébastien Lorber
3e38380b69
fix(website): changelog plugin leads to CI bugs on release (#6838) 2022-03-04 10:58:54 +01:00
seladb
52fa4514f7
docs: add PcapPlusPlus to showcase (#6837)
* Add PcapPlusPlus to users.tsx

* Add PcapPlusPlus preview

* optimize image

* retake picture

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-04 17:24:56 +08:00
Afonso Jorge Ramos
31fcc293e2
docs: add Spicetify site to showcase (#6832)
* fix: website sorting

* add `spicetify.png`

* add spicetify entry to showcase

* optimize image

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-04 09:03:49 +08:00
nate contino
5f1edd5ac8
docs: simplify imported code blocks syntax (#6830)
* refactor: simplify imported code blocks

- Use `language=<lang>` prop instead of "className="language-<lang>" for imported code blocks

I've been using this in my personal projects ([example](https://raw.githubusercontent.com/nathan-contino-mongo/docusaurus-realm/9a2ebb6a43bbbd7b38899fcc86c903dcc1f61283/docs/sdk/kotlin/migrate-from-java-sdk.mdx)) since it is less verbose.
If this interface is somehow less stable than the `className` prop, feel free to close this. But if both will work going forward
we should probably recommend the simpler of the two.

* Update markdown-features-react.mdx
2022-03-04 07:09:16 +08:00
Sébastien Lorber
8dbd656340
chore: prepare v2.0.0-beta.17 release (#6829) 2022-03-03 18:44:41 +01:00
Nayan Patel
1c91d2f20e
docs: fix broken links (#6817)
* Fix a broken showcase GitHub URL

* Seems like this site is no longer Open Source?

* Seems like this site is no longer open source?

* Fix as previous link leaded to a 404

* Replaces the 404 error of previous page.

Not sure if this is the correct link to be placed there.

* Fixes 404 error ;)
2022-03-03 07:02:57 +08: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
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
Dmitry Vinnik
1ac41132e3
docs: add homepage banner in support of Ukraine (#6811)
* Adding social banner in support of Ukraine

* Adding flag to the banner

* Updating donation URL

* Updating URL for the fundraiser
2022-03-01 22:50:24 -08:00
Vaibhav Shinde
cfdd120dc4
docs: mark dyte as opensource in showcase (#6813) 2022-03-02 14:11:23 +08:00