docusaurus/website/docs
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
..
advanced docs: add basic documentation about client modules (#6772) 2022-02-26 18:25:19 +08:00
api refactor(theme-classic): replace color mode toggle with button; remove switchConfig (#6771) 2022-03-02 15:57:17 +01:00
assets
guides docs: simplify imported code blocks syntax (#6830) 2022-03-04 07:09:16 +08:00
i18n
migration feat(core): rework swizzle CLI (#6243) 2022-02-25 14:13:15 +01:00
blog.mdx feat: allow blog authors email (#6783) 2022-03-02 16:28:17 +01:00
browser-support.md
cli.md feat(core): rework swizzle CLI (#6243) 2022-02-25 14:13:15 +01:00
configuration.md
deployment.mdx docs: fix broken links (#6817) 2022-03-03 07:02:57 +08:00
docusaurus-core.md
installation.md
introduction.md
playground.mdx
search.md
seo.md
static-assets.md
styling-layout.md fix: consistently use `max-width: 996px` in media queries (#6815) 2022-03-02 19:43:44 +08:00
swizzling.md feat(core): rework swizzle CLI (#6243) 2022-02-25 14:13:15 +01:00
typescript-support.md
using-plugins.md feat(core): rework swizzle CLI (#6243) 2022-02-25 14:13:15 +01:00