mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 16:29:47 +02:00
* 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 |
||
---|---|---|
.. | ||
_dogfooding | ||
blog | ||
community | ||
docs | ||
src | ||
static | ||
versioned_docs | ||
versioned_sidebars | ||
babel.config.js | ||
delayCrowdin.mjs | ||
docusaurus.config-blog-only.js | ||
docusaurus.config.js | ||
netlify.toml | ||
package.json | ||
README.md | ||
sidebars.js | ||
sidebarsCommunity.js | ||
testCSSOrder.mjs | ||
tsconfig.json | ||
versions.json | ||
versionsArchived.json | ||
waitForCrowdin.mjs |
Docusaurus 2 Website
Installation
yarn install
in the root of the repo (one level above this directory).- In this directory, do
yarn start
. - A browser window will open up, pointing to the docs.