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
e8800b9d49
fix(core): prevent useBaseUrl returning /base/base when on /base ( #6993 )
2022-03-25 09:40:56 +01:00
Sébastien Lorber
dc95cb86ca
feat: lazy-load external images + ability to customize image display ( #6990 )
2022-03-25 09:12:17 +01:00
Joshua Chen
fa50d09d3b
chore: upgrade dependencies ( #6991 )
...
* chore: upgrade dependencies
* fix
2022-03-25 10:47:08 +08:00
Joshua Chen
d3065b8ad2
refactor(lqip-loader): remove unused palette option ( #6992 )
2022-03-25 10:23:42 +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
Sébastien Lorber
c42f22b9bd
refactor: extract MDX components ( #6989 )
2022-03-24 19:23:44 +01:00
Alexey Pyltsyn
4c0914c035
refactor(theme-classic): remove span wrappers from layout links ( #6985 )
2022-03-24 17:03:59 +01:00
Joshua Chen
21ff25eebb
fix(theme-classic): minor code copy button improvements ( #6986 )
2022-03-24 16:52:45 +01:00
Sébastien Lorber
c3e7ecca17
chore: update static-site-generator-webpack-plugin ( #6975 )
2022-03-24 16:09:28 +01:00
Sébastien Lorber
22c031c071
fix(search): bump Infima, fix Docusaurus search issue due to broken CSS selector ( #6983 )
2022-03-24 15:33:21 +01:00
Joshua Chen
2eeb0e46a2
feat(utils): JSDoc for all APIs ( #6980 )
...
* feat(utils): JSDoc for all APIs
* fix tests
2022-03-24 21:34:31 +08:00
Alexey Pyltsyn
b8d2a4e84d
refactor: replace text-based copy code button with icons ( #6964 )
2022-03-24 10:47:56 +01: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
Alois Klink
4d2ab826b8
fix(validation): allow non-object params to remark/rehype plugins ( #6977 )
...
Remark and Rehype plugins allow having options as a non-object type,
such as a string.
For instance, the official MDX docs even have an example of this:
See https://mdxjs.com/docs/extending-mdx/#using-plugins
The official plugin `remarkjs/remark-frontmatter` allows passing
a string, e.g. `"toml"` as the options arg, instead of an object.
2022-03-24 09:19:06 +08:00
Felipe Santos
4b3f568b78
fix(content-docs): suppress git error on multiple occurrences ( #6973 )
2022-03-23 16:35:26 +01:00
Joshua Chen
b456a64f61
feat(theme-common): JSDoc for all APIs ( #6974 )
...
* feat(theme-common): JSDoc for all APIs
* fix tests
2022-03-23 21:39:19 +08:00
Sébastien Lorber
4103fef11e
chore: publish stylelint-copyright again ( #6967 )
2022-03-23 11:57:02 +01:00
Joshua Chen
6e2eb44964
refactor: unify how validateOptions is handled ( #6961 )
...
* refactor: unify how validateOptions is handled
* fix types
* fix again
2022-03-22 19:40:56 +08:00
Joshua Chen
44107fb879
chore(types): remove querystring from dependencies ( #6957 )
...
* chore(types): remove querystring from dependencies
* fix lock
2022-03-22 16:00:05 +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
Joshua Chen
0a5354dc32
refactor(core): move browserContext and docusaurusContext out of client exports ( #6955 )
2022-03-22 14:30:14 +08:00
Yorkie Liu
6b3d94a155
feat(core): allow configureWebpack to return undefined ( #6784 )
...
* plugin: not acquire configureWebpack to return
* type fix
* add test
* remove type
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
2022-03-22 11:53:11 +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
Joshua Chen
c696dc2cd6
test: fix Windows test for gitUtils ( #6951 )
...
* test: fix Windows test for gitUtils
* change this
* fix
2022-03-21 20:13:40 +08:00
Joshua Chen
5ee7e8c48e
test: add tests for gitUtils ( #6949 )
...
* test: add tests for gitUtils
* debug test
* try fix
2022-03-21 18:40:20 +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
4536c20455
fix(content-blog): only create archive route if there are blog posts ( #6947 )
2022-03-21 12:27:56 +08:00
Felipe Santos
e19a4e23e7
fix(content-docs): warn when files are not tracked ( #6937 )
...
* fix(docs): warn when files are not tracked
* chore(devcontainer): use non-root user
* test: fix jest in vscode
* test(docs): improve existing test
* chore(devcontainer): fix jest error on startup
* chore: fix comments
* chore: remove "probably" from error message
2022-03-21 08:42:36 +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
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