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 chore: fix Crowdin again (#5825) 2021-10-29 15:37:45 +02:00
guides docs: simplify imported code blocks syntax (#6830) 2022-03-04 07:09:16 +08:00
i18n fix(cli): allow passing a list of file names to write-heading-ids (#6500) 2022-01-29 12:21:15 +08:00
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 chore: add cSpell for spell checking (#6456) 2022-01-25 09:40:02 +08:00
cli.md feat(core): rework swizzle CLI (#6243) 2022-02-25 14:13:15 +01:00
configuration.md refactor: make MDX export a flat TOC list instead of tree (#6729) 2022-02-23 15:12:04 +01:00
deployment.mdx docs: fix broken links (#6817) 2022-03-03 07:02:57 +08:00
docusaurus-core.md docs: add advanced guides (#6296) 2022-01-25 11:29:18 +08:00
installation.md feat(create): new --package-manager option; interactive package manager selection (#6750) 2022-02-24 11:50:37 +01:00
introduction.md docs(website): fix video responsiveness (#6709) 2022-02-17 14:22:36 +01:00
playground.mdx feat: docusaurus.new + improved StackBlitz playground (#5235) 2021-07-28 19:27:58 +02:00
search.md refactor(theme-classic): bias again search metadata toward Algolia DocSearch (#6707) 2022-02-17 14:24:31 +01:00
seo.md docs: use BrowserWindow for Markdown demos (#6215) 2021-12-29 13:49:09 +08:00
static-assets.md fix(cli): allow passing a list of file names to write-heading-ids (#6500) 2022-01-29 12:21:15 +08:00
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 docs: mention that all official themes are TypeScript-covered (#6675) 2022-02-14 23:33:37 +08:00
using-plugins.md feat(core): rework swizzle CLI (#6243) 2022-02-25 14:13:15 +01:00